K
Kevin
I've got a problem where I need to know the value of a hidden field
inside a repeater once a button is clicked. Ths code inside my
repeater looks like this:
<input id="conf_num" type="hidden" value=<%#
trim(Container.DataItem("confirm_num"))%> name="conf_num"
runat="server" />
<asp:ImageButton ImageUrl="images/send_conf.gif"
OnClick="ConfSend_Click" runat="server" />
Rendered, it looks like this:
<input name="grid3:_ctl1:conf_num" id="grid3__ctl1_conf_num"
type="hidden" value="551059" />
Obviously, I can get the value if I do something like:
Sub ConfSend_Click
ViewState("conf_num") = Request.form("grid3:_ctl1:conf_num")
End Sub
But this doesn't work because to do this right I can't specify the
exact Request.form 'conf_num' value, since that value needs to be
dynamic based on the button the user clicks on. I've tried
everything, I think. Each row in the repeater has its own button...
What happened to the good old days when a hidden field was a hidden
field. The 'grid3:_ctl1:' the rendered repeater adds on is giving me
major problems.
Any ideas?
inside a repeater once a button is clicked. Ths code inside my
repeater looks like this:
<input id="conf_num" type="hidden" value=<%#
trim(Container.DataItem("confirm_num"))%> name="conf_num"
runat="server" />
<asp:ImageButton ImageUrl="images/send_conf.gif"
OnClick="ConfSend_Click" runat="server" />
Rendered, it looks like this:
<input name="grid3:_ctl1:conf_num" id="grid3__ctl1_conf_num"
type="hidden" value="551059" />
Obviously, I can get the value if I do something like:
Sub ConfSend_Click
ViewState("conf_num") = Request.form("grid3:_ctl1:conf_num")
End Sub
But this doesn't work because to do this right I can't specify the
exact Request.form 'conf_num' value, since that value needs to be
dynamic based on the button the user clicks on. I've tried
everything, I think. Each row in the repeater has its own button...
What happened to the good old days when a hidden field was a hidden
field. The 'grid3:_ctl1:' the rendered repeater adds on is giving me
major problems.
Any ideas?