A
Alberto
I have an imageButton in a aspx page inside a DataList. The image on its
surface it's loaded on runtime doing this:
<asp:ImageButton id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>'
Now I'd like to make a Response.Redirect(...) when the user makes a clic on
the image but I don't know how to write it. I'm doing this:
<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')
but it doesn't work.
surface it's loaded on runtime doing this:
<asp:ImageButton id=.... ImageUrl='<%# DataBinder.Eval(Container.DataItem,
"Path")%>'
Now I'd like to make a Response.Redirect(...) when the user makes a clic on
the image but I don't know how to write it. I'm doing this:
<asp:ImageButton ... OnClick="Response.Redirect('<%#
DataBinder.Eval(Container.DataItem, "Page")%>')
but it doesn't work.