Re: [RESOLVED] Gridview ButtonField with dynamic Image
Quote:
Originally Posted by
a5m0d1
Please tell me you guys make more mny than me knowing all this stuff!
I have been a field engineer for 15 years setting up networks, servers and such. No mny in it at all for me so I am trying to increase my skills with programming talents!
Ha ha, I get by ok. I still have lots to learn though, new technologies coming out all the time, but that is part of the fun of development.
Gary
Re: [RESOLVED] Gridview ButtonField with dynamic Image
Okay I am stuck already lol
It says at the start of the artical you have linked me
Quote:
The RowCommand event is raised when a button is clicked in the GridView control
Well Using
Code:
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton ID="ImageButton3" runat="server"
ImageUrl='<%# Eval("PictureURL") %>' OnClick="DoSomething" CommandArgument='<%# Eval("id") %>'/>
</ItemTemplate>
</asp:TemplateField>
Means its not a Gridview Button anymore.
Re: [RESOLVED] Gridview ButtonField with dynamic Image
it is. If you set the CommandName property, as described in the article.
Re: [RESOLVED] Gridview ButtonField with dynamic Image
Cheers mate, once I had a break and then really looked at that article I worked it out :)
Re: [RESOLVED] Gridview ButtonField with dynamic Image
Re: [RESOLVED] Gridview ButtonField with dynamic Image
Quote:
Originally Posted by
a5m0d1
Cheers mate, once I had a break and then really looked at that article I worked it out :)
Glad to hear it.
The MSDN documentation can be a bit overwhelming at times, but in most cases, everything you need is in there, so it is just a case of taking the time to go through it.
Gary