S
Steven
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="buttonAddGuardian" value="Add Guardian"
onClick="window.open('addguardian.aspx?id=<%=lblSSN.Text%
I would like the HTML source look like window.open
('addguardian.aspx?id=123456789') 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="buttonAddGuardian" value="Add Guardian"
onClick="window.open('addguardian.aspx?id=<%=lblSSN.Text%
');"/>
I would like the HTML source look like window.open
('addguardian.aspx?id=123456789') Thank you.