G
Guest
Hey guys,
Apologies if this is in the wrong thread, whenever I search for <% or
"switching context" I get no results.
What I am trying to do is set the value of a html text box to a server side
value but I need to do it in the HTML and not the code behind. Has to do
with custom javascript events and what not.
In 1.1 I have this and it works fine:
<input id="myTextBox" name="myTextBox" type="text" value="myControl.Value" />
In 2.0 this doesn't work. The HTML editor seems to know what the <% and %>
are for as it highlights them but when I run the page and "View Source" i see
the following:
<input id="myTextbox" name="myTextBox" type="text" value="<%=myControl.Value
%>" />
So obviously it's not handling the tags properly.
Any ideas? This is driving me crazy!
Thanks
Apologies if this is in the wrong thread, whenever I search for <% or
"switching context" I get no results.
What I am trying to do is set the value of a html text box to a server side
value but I need to do it in the HTML and not the code behind. Has to do
with custom javascript events and what not.
In 1.1 I have this and it works fine:
<input id="myTextBox" name="myTextBox" type="text" value="myControl.Value" />
In 2.0 this doesn't work. The HTML editor seems to know what the <% and %>
are for as it highlights them but when I run the page and "View Source" i see
the following:
<input id="myTextbox" name="myTextBox" type="text" value="<%=myControl.Value
%>" />
So obviously it's not handling the tags properly.
Any ideas? This is driving me crazy!
Thanks