how to set html textbox/label value in codebehind
Posted on 2006-11-02
I have an html input text that I am trying to set from codebehind. how do I do this?
<input id="CustomerName" value="<%= strCustomerName %>"/>
string strCustomerName ="test";
protected void Page_Load(object sender, EventArgs e)
strCustomer = "this doesn't work";
I get the "test" but not the "this doesn't work" - I'm guessing a protection level/page scoping problem?
any help would be greatly appreciated....