asp.net-3.5

How do I add a server control to an existing solution?

I want to add a server control to an existing web application but cannot figure out how to add the Server Control to a web page or show up in the Tool Box. All the documentation seems to create the user control first and then add a web application to the solution and that works fine. So how would I add a server control to an existing w...

jQuery autopostback problem

I am working on ASP.NET 3.5 website project and using jQuery to warn users if they modified a page and attempt to leave the page without saving, so doing something like this: var warning = "Please save changes you made."; var isDirty = false; $(document).ready(function() { $('input:text,input:checkbox,input:radio').bind('change...

How To Insert and Update into database table using LinqTemplate?

I have a problem while creating a web application using LinqTemplate here is the explanation step wise.... (1) I have created a database Database1 with a table name UserTest with one column name UserId with (uniqidentifier,not null) datatype , username (nvarchar2(20),null) (2) I have created a classLiberary Project where i have used Li...

Why is @MasterType directive not implied when setting @Page masterPageFIle?

The docs for @MasterType have this example. <%@ Page masterPageFile="~/MasterPage.master"%> <%@ MasterType virtualPath="~/MasterPage.master"%> Why is @MasterType even needed? Couldn't the compiler automatically take the same actions based solely on @Page masterPageFile? When would you not want to use both? ...

jQuery hidden field

In jquery how do you save variable which can only be true/false into a hidden field and retrieve a value after postback? ...

How to retrieve tha datas from the DB to the Gridview based on the value i have selected in the anither Gridview control?

Hai Pupils, I am a beginner in Dot net Domain.Presently Im creating a web portal for one of our client.In my portal i have displayed the News headline and a button for details in a Grid view. when i click on the button it has to show the detailed news from DB in another grid view. I have done a code on it.,but it shows some error.I...

Errors running Visual Web Developer 2008 Express

Hello, I downloaded the free Visual Web Developer 2008 Express for my Windows XP machine and when I make a new Web Site, with no code of my own yet added, it fails to run, first saying that it isn't configured for ASP.Net 2.0 and that I must do it myself, and then, when trying to run it anyway I get the error "Unable to start debugg...

Insert the values from the Popup Window to DB

Hai Pupils, Im a beginner to ASP.NET.I've got a doybt in Pop-Up Window. I have created a pop-up window with some fields which i enter the fields and submit it, it has to be stored in Database. Please help me in this process. ...

How to avoid multiple Page Load event on the pages with History Points?

Hello, I have page with UpdatePanel, ListView, ScriptManager and Navigate event. It shows a list of companies depending on the country selected. I've added HistoryPoint with the selected country. When I try to load this page with history point in new browser window (i.e. country/browse.aspx#&&location=1) Page Load event fires before...

ASP.NET get hidden value from list view on ItemCommand

Hi, I have LinkButton and HiddenField in a list view. I want to get the hidden value from HiddenField, so I can store it in Session and when a LinkButton is clicked it transfer the hidden value ( stored in Session) to another page. But I get this error message "Object reference not set to an instance of an object." Here's the function: ...

ASP.Net Themes, UserControls and CSS

I'm building a Web application with rougly 30 pages, 12 user controls and 3 masterpages. I've centralized all the CSS in a Theme called Default. The application will expand in the near future. What is a best practice in separating css files? Should I: A - Put everything in one big CSS file separated by comment sections (every page ha...

Random COMException on Web App "The handle is invalid"

...

how to remove item from one combobox

hi i m using 5 combobox in my asp.net 3.5 c# project .here i want remove item from other combobox which item is selected in other combobox. ...

ASP.NET mysterious compile error

When I compile .NET solution, which is an ASP.NET 3.5 website project and a few class libraries, sometimes we get COMPILE error "Object reference not set to an instance of an object". Doesn't give you any additional information, like it usually does - which project, file, line of code or anything like that. Usually if you stop and re-com...

Is there a way to call a method on an HTTPModule from a web page?

I'm using an HTTPModule to do some simple work in the background of a web application. I'm using a timer similar to what is described in this article: Using an HTTPModule to run a Background Service. The problem is that the worker process never seems to terminate on its own, if no one's accessed the site in a long while. I figure the...

CheckBox inside ListBox

Hi, How to add checkbox inside the listbox. Where ChechBoxList controls is not good for more records, By using listbox user can easily scroll to choose the item. Geetha. ...

Button command firing twice with ButtonField inside GridView inside UpdatePanel with FireFox

I have an update panel which contains a GridView, inside which is a ButtonField. Whenever I press the button I see Firefox doing two POST's (via Firebug). One gets aborted right away, but does reach the server. This causes problems on my server side code as the command (a copy) gets executed twice. IE6 and IE8 do not exhibit this behavi...

stuck binding xml to Model Class

I am experimenting with using xml as a database for small CMS, like gallery or staff profiles etc however being all subsonic minded i am stuck on how i bind my xml document to a modelclass so that i can then use that class for strongly typed views: here is my model class: [XmlRoot("employee")] public class EmployeesModel { [Req...

ASP.net DropDownList with no selected item.

I have a ASP DropDownList with item added to it. all what I want is to make the selection after the page loaded empty so there should not be selected item. How can I do that. ...

RegularExpression validator: Should not allow single zero

How do I restrict single zero in a numeric textbox? Textbox can accept any number but it should not accept only zero as value. Example: "1984500" is valid but "0" is invalid. Edited: Is it possible to give maximumvalue as infinity? ...