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...
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...
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...
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?
...
In jquery how do you save variable which can only be true/false into a hidden field and retrieve a value after postback?
...
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...
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...
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.
...
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...
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:
...
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...
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.
...
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...
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...
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.
...
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...
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...
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.
...
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?
...