How to set html input type text value using ASP.NET C#?
问题 I have an html control which I want to set its value .... here's the control: <input runat="server" id="first_name_txt" type="text" placeholder="First Name" /> in code behind, I use: first_name_txt.Value = String.empty; but the value of my input control still has the old value like "blah-blah" and not set to "". 回答1: Its old question , but may help someone. You have to use Request.Form to get and call .Value to set the value. HTML <input runat="server" id="first_name_txt" type="text"