Monday, February 25, 2008

VS 2005 screwing me with VsWebSite.Interop

I've been having trouble with the following line below in my asp.net application:




I think it is because I've got a web deployment project as part of my solution (to allow for remote debugging). If I remove the line above from my web.config and rebuild my solution, it is automatically re-added by VS. I've just been removing the line after I deploy the app to the webserver. This is an issue that appears will resolve itself once I finish debugging and remove the web deployment project from my solution.

Friday, January 18, 2008

ClientID value

Asp.Net form items that are run server side get their ids changed when they are rendered in the HTML sent to the client. Not a huge deal, but a bit of a pain to reference in javascript and keep everything in check.

Then I stumbled across the "ClientID" property on server controls, which is a very convenient way to reference their resulting clientID value. For example:

aspnetForm.<%=myTextBox.ClientID %>.value = "the new value";