Page 2 of 2 FirstFirst 12
Results 41 to 46 of 46

Thread: [RESOLVED] Gridview ButtonField with dynamic Image

  1. #41
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Gridview ButtonField with dynamic Image

    Quote Originally Posted by a5m0d1 View Post
    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

  2. #42

    Thread Starter
    Addicted Member
    Join Date
    Feb 2010
    Posts
    156

    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

    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.

  3. #43
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Gridview ButtonField with dynamic Image

    it is. If you set the CommandName property, as described in the article.

  4. #44

    Thread Starter
    Addicted Member
    Join Date
    Feb 2010
    Posts
    156

    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

  5. #45
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: [RESOLVED] Gridview ButtonField with dynamic Image

    glad for you
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  6. #46
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Gridview ButtonField with dynamic Image

    Quote Originally Posted by a5m0d1 View Post
    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

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width