fire an event for an image in gridview template column
-
How to fire an event when i click the image. protected void GridView1_onImagePress(object sender,ImageEventArgs e) { } ' target="none" runat="server"> ![<% #DataBinder.Eval(Container.DataItem,"ImagePath")%>]]>](<% #DataBinder.Eval(Container.DataItem,"ImagePath")>) ]]>' width="280" height="330" src='<% #DataBinder.Eval(Container.DataItem,"ImagePath")>' id="img1" runat="server" /> .
VanithaVasu
-
How to fire an event when i click the image. protected void GridView1_onImagePress(object sender,ImageEventArgs e) { } ' target="none" runat="server"> ![<% #DataBinder.Eval(Container.DataItem,"ImagePath")%>]]>](<% #DataBinder.Eval(Container.DataItem,"ImagePath")>) ]]>' width="280" height="330" src='<% #DataBinder.Eval(Container.DataItem,"ImagePath")>' id="img1" runat="server" /> .
VanithaVasu
-
How to fire an event when i click the image. protected void GridView1_onImagePress(object sender,ImageEventArgs e) { } ' target="none" runat="server"> ![<% #DataBinder.Eval(Container.DataItem,"ImagePath")%>]]>](<% #DataBinder.Eval(Container.DataItem,"ImagePath")>) ]]>' width="280" height="330" src='<% #DataBinder.Eval(Container.DataItem,"ImagePath")>' id="img1" runat="server" /> .
VanithaVasu
give commandArgument to image button. protected void Image1_Click(object sender,ImageEventArgs e) { string s = Image1.CommandArgument.toString(); }
Best Regards, Chetan Patel