asp.net

Using Linq To Convert ListBox Items Values to int

I display the contents of a table in the database using a ListBox. Each listbox item is populated with the Text property set to a friendly name, and the Value property set to the unique ID column. The database structure might look similar to the following: CREATE TABLE GENERIC { FRIENDLY_NAME TEXT, ID INT } I tried for almost an hour ...

Multiple updatepanels --> loading and displaying one by one

Here I put my sample code. Please correct the mistake. In the sample code I want to load the update panels “UpdatePanelBodySub1”, “UpdatePanelBodySub2”, “UpdatePanelBodySub3” and “UpdatePanelBodySub4” one by one. If one updatepanel loaded all records then immediately that will come to display, then next updatepanel will start work … . Pl...

Have both HTML and ASPX web page in one site

I have an existing website that has only static HTML pages. I have one page where someone can email their information, but would like to code this page using .NET. I've never mixed both before and thought if I published the pages needed from .NET and put it in the root of the existing website that is all I needed, but I am receiving ...

LINQ datacontext lifetime managment for web application

Hi, I read http://stackoverflow.com/questions/226127/multiple-single-instance-of-linq-to-sql-datacontext and http://www.west-wind.com/weblog/posts/246222.aspx I'm developing a web application. In my blclass that has many methods that do some query against the DB, in each and every method, I declare : Dim db As New DemoDataClassesDa...

ASP.NET MVC ,What is the Models Folder for?

Another repository of App_Code? Inside the NerdDinner sample, it contains some share interface, function , class with property etc. Not much different with App_Code. ...

Error regarding AjaxControlToolKit

Hi guys, While iam running a page iam getting following parse error. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file or assem...

How do you put an entire asp.net website into one dll?

I am building a web application framework in C# for Asp.Net. The framework consists of mix of dll files, aspx files with codebehind files, code files in App_Code, css files and images. I've looked at the "Web Application" project in Visual Studio 2008. This helps to remove all code files and put them into one dll in the bin folder. But,...

How to get asp.net Session value in jquery method?

I want to access a Session value in jquery method in the ASP.NET MVC view page. See the below code, $('input[type=text],select,input[type=checkbox],input[type=radio]').attr('disabled', '<%= Session["CoBrowse"].ToString() %>'); Please advice how can I get the Session value in jquery. ...

how to authenticate into google account service from web application for using google data

Can some body please tell me the way to access the google service such as the user feed items in google reader through the web application using username and password. I do not want the user to authenticate. I want the solution in ASP.net. There is already a solution avaible in Python at http://dalelane.co.uk/blog/?p=303 But I do not ...

problem with laoding image at run time in asp.net

hi evaryone I'm having an image that i have added to the image folder in app_data folder of my application. now problem is that it's showing the image at design time but at runtime it don't show.now if page is postback now it shows the image. what's the prob with this.? ...

Why would the debugger not be stopping at a breakpoint in my ASP.NET application?

I'm trying to debug a large ASP.NET application. I set a breakpoint on the first line in Page_Load in Default.aspx.cs. When I start the application, my breakpoint briefly turns into a red round outline with an exclamation in it, then turns back into a regular breakpoint, then the application starts without ever stopping at my breakpoin...

LinkButton in nested UserControls not firing Command event

I have a nested UserControl (this control is dynamicall loaded by another UserControl that is dynamically loaded by an aspx page inside a MasterPage) in which I would like to use a LinkButton and the OnCommand Event. This button must be added to some panel, so I hooked up to the OnLoad event of the panel (it needs to be created before e...

Migration: ASP.NET 1.1 to ASP.NET 2.0, broken postback

We just recently migrated our web application from .NET 1.1 to .NET 2.0. The web application was originally written in .NET 1.1 using Visual Studio 2003. To migrate it, we converted the solutions to VS2005. Aside from some minor problems like RESX incompatibility and broken Calendar Controls, the Web Application worked. However, we ju...

Which distributed cache?

I needed to find a way that two applications can use the same cache, and after some quick research it seems that we will need a distributed cache to achieve this. Further Googling turns up a number of solutions, NCache, SharedCache, Velocity, memcached. This cache will be used for caching webpages in a Microsoft Enviroment using Asp.Ne...

Need to run BCP utility through .net code

How can I run the Bulk Copy Program (BCP) utility of SQL Server through .Net code? ...

Retreving Client Username by using Windows authentication

I'm attempting to retrieve the user name and client machine name of the person logged on to a computer on our intranet in ASP.NET. This is just for logging purposes. I retrieve the user name "System.Security.Principal.WindowsIdentity.GetCurrent().Name", problem is whoever accessing this site showing the same username (that is server nam...

HtmlAgilityPack selecting childNodes not as expected

I am attempting to use the HtmlAgilityPack library to parse some links in a page, but I am not seeing the results I would expect from the methods. In the following I have a HtmlNodeCollection of links. For each link I want to check if there is an image node and then parse its attribures but the SelectNodes and SelectSingleNode methods o...

Adding admin subdomain in asp.net

I have a website that i am hosting from home. I want to add a subdomain to my website, for example: admin.mywebsite.com Would it be best to create a new project and point DNS to that project, or should i rather create the admin application in a folder under the current project? ...

Auto populate / screen scrape multipage webform

Hi, Firstly apologies if this is a duplicate question, I have spent a while searching and can't find anything that looks to be the same. I need to automate the completion of a multi page web form and then process the result from within an asp.net system. The ideal solution would be to create a web service which takes in some data, the...

Unlimited diskspace/Bandwidth for hosting ASP.NET vs PHP website?

We are thinking to use Dotnetnuke(ASP.NET) as platform for creating asp.net based social networking site. Surprisingly, Its difficult to find webhost with unlimited diskspace/badnwidth to store/stream lots of photos/videos. On the other hand, PHP based webhosting companies do provide unlimited diskspace/bandwidth. Check it here So, I ...