I see another problem with your code also. When you copy the html code of the select element, you will get more than one element with the same id, which is not allowed.
Also, you are replacing all the html code in the div element when you add or remove items. That means that you remove all the elements and then add new elements that are identical, but still they are not the same elements. You might consider it an error that the new elements doesn't get the same state as the old elements, but someone else might consider it an error if they do.
You can use the appendChild and removeChild methods of the div element to add and remove elements inside it. That way you won't be replacing all the elements in it.
whenever I try to Open New Asp2.0 Application under Http option and try to run that application , browser display error IIS Metabase Error.
Also whenever I hover over toolbox , Statusbar show initialising Toolbox and application hangs .
I'm working on a datgrid that inserts data. But there is a column of name that I want when a user inserts data the user's login name should appear in the column. I'm trying using Windows Authentication But The example I got is not helping me. This is a code on webconfig:
After trying the example I'm getting this mistake While compiling:
The type or namespace name 'GridViewRowEventArgs' could not be found (are you missing a using directive or an assembly reference?)
i made it using this line document.getelementById("controlid").
Unfortunately, you can't get js to talk to the server unless you use AJAX....the way to get around it is to use asp:HiddenFields on your page. If you need access to a server side variable, store it in one when you process on the server, then at the client, use document.getElementById to retrieve the value...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
With more towards Tabbed browsing and popup blockers getting powerful, I just thought there should be a way for us to target our links to open links in New Tab instead of New Window. Basically, at the code level, instead of _blank there should be a way of _blankTab.
Can somebody if come across already, throw some light on it?
Another option is you can compre url such while you are showing the login page first time and after logout you will have the same url. So just compare both if both are same than again put the user on login page.
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
I want to use a dropdownlist server control with a datagrid server control sothat when i change the dropdownlist the grid changes but using AJAX. I can do it if the datagrid is a simple html table but i can't implement it if the grid is a server control datagrid. Is there anyway to display the grid as a server control using AJAX or it must be html table to display it with AJAX?