If I have a standard HTML textbox: I can retrieve the value using Request.Form.
But how do I go about populating this textbox from the server-side? I tried
Request.Form["txtTest"] = "blah";
but got a readonly error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to have first class support for accessing the control by its id on the server side (as per .net controls) you would need to make it so it has a runat=”server” tag.
Otherwise you can set the value dynamicaly by having a property in your code behind and pulling in the value from this on the aspx page using databinding e.g.
and