Changing the value of an HTML element through C# code
Posted on 2011-09-15
Please let me know how I can change the value of an HTML element (say, an HTML textbox) on my ASP.NET page through C# code.
The problem in using "ScriptManager.RegisterClientScriptBlock" is that though I am able to change the value when the page loads, if the user tries to change the value of the element to something else, it automatically changes to what was defined using "ScriptManager.RegisterClientScriptBlock".
If possible, please provide some sample code. Thanks!