Hi. I am having a small problem. I am trying to add a
dynamic attribute to a regular html button, but I also
have a runat="server" attribute on it because at one
point it's invisible, and I make it visible...
Everything works when I take out runat="server", but when
I leave it, it actually prints out lblSSN.Text rather
than substituting it with a number. Here is the code
<input type="button" runat="server"
id="buttonAddGu ardian" value="Add Guardian"
onClick="window .open('addguard ian.aspx?id=<%= lblSSN.Text%[color=blue]
>');"/>[/color]
I would like the HTML source look like window.open
('addguardian.a spx?id=12345678 9') Thank you.
dynamic attribute to a regular html button, but I also
have a runat="server" attribute on it because at one
point it's invisible, and I make it visible...
Everything works when I take out runat="server", but when
I leave it, it actually prints out lblSSN.Text rather
than substituting it with a number. Here is the code
<input type="button" runat="server"
id="buttonAddGu ardian" value="Add Guardian"
onClick="window .open('addguard ian.aspx?id=<%= lblSSN.Text%[color=blue]
>');"/>[/color]
I would like the HTML source look like window.open
('addguardian.a spx?id=12345678 9') Thank you.
Comment