asp.net-2.0

ASP.NET 2.0 -how do I include files containing server-side code?

I want to be able to load a customized log in page depending on a couple of parameters passed into the querystring. Each customized login page needs to be able to dynamically display log in errors and possibly have other variables passed in. Let's say the dynamic login page looks like this (over-simplification here): <form> <% if (has_...

Splitting Titles in DropDown

My application Drop-down consist of lengthy titles, which exceeds the drop-down beyond the page. Example Title: Enter your Name Up to 250 Char Enter your Name Up to 250 Char Enter your Name Up to 250 Char Enter your Name Up to 250 Char. i can split half of the title with sub string(). Is it possible to bring the next half of the title ...

Create File Upload control using HTML controls

I am facing an issue with asp.net file upload control inside update panel. That is FileUploadControl.HasFile always return "true". Can we create a "file upload" control (which has "browse button") using html controls...and use it inside asp.net 2.0 ??? ...

C# check value exist in constant

Hi there, I have declared my c# application constant this way: public class Constant public struct profession { public const string STUDENT = "Student"; public const string WORKING_PROFESSIONAL = "Working Professional"; public const string OTHERS = "Others"; } public struct gender { public const string MALE = "M"; publi...

asp.net webforms - how to handle multiple pages with the same name in one web project?

I have a web application with several different top-level directories, and some of the pages with different directories have the same name - for example: foo/ search.aspx list.aspx bar/ search.aspx list.aspx baz/ search.aspx list.aspx etc. The problem is that the class names for the code-behind files conflicts - each se...

Validate HTML missing div,table tags ?

Is there a way to validate my ASPX page code? I have plenty of missing div tags, missing td tags etc on my page. How can I catch all my html errors ? The Visual Studio aspx editor won't help that much. Is there any tool to facilitate this ? How would you guys go about these tasks ? ...

Custom validator error text through javascript ?

I want to set ASP.net custom validator error parameter text through client side javascript. How can access it via sender, args parameters in my function? ...

How to include CSS in master pages ?

How do I include CSS reference in only certain pages on my asp.net website? If I include the reference in my master page, all pages of the website share the CSS reference. ...

Display message afer save is successful BlockUI Update Panel.

I want to display a status message after a server side postback. Currently to do this, I use blockUI for blocking a div while the save is in progress I unblock the div with a custom End request handler for my update panel To display status messages, I use scriptmanager's registerstartupscript() in my try catch block on server side code...

Writing a server in C# .NET to handle custom requests/response

I need to write a 'server' in c# (.Net 2.0) which would process requests in a specific format and produce a corresponding response in a pre-defined format. request: (userid);(userpwd);+ response: (user_purchase1);(user_purchase2);(user_purchase3);+ As, I understand this correctly, the server is a standalone module in itself. It should...

Problem with asp.net web site?

I have created a web site. At home page, I am saving lots of data in caching and session. It has process button on click of that it does lots of calculation on the basis of caching and session and display the result on result page. Result page has back button on click of that it goes to home page. Sometimes (not frequently) when i go to ...