How can i create image buttons?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akbar Abro
    New Member
    • Nov 2011
    • 13

    How can i create image buttons?

    Sir kindly tell me How can i create image buttons using for loop.


    Thanks in anticipation,

    regards:
    Akbar Abro.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Check out this article about how to use dynamic controls in asp.net.

    -Frinny

    Comment

    • Akbar Abro
      New Member
      • Nov 2011
      • 13

      #3
      Sir I am unaware to use this code... kidly explain it and tell me the way to use this code in my program.

      Thanks

      Comment

      • aspkiddy
        New Member
        • Jul 2010
        • 5

        #4
        image button
        Code:
        <asp:ImageButton id=ImageButton11 runat="server" ImageUrl="images/button.png" ImageAlign="Middle" CommandName="click_yourCommande"></asp:ImageButton>
        or
        Code:
        <button runat="server" style="background-image:url('images/button.png')" >click on...  </button>
        or you can also use "image-hyperlink" :
        Code:
         <asp:HyperLink ID="HyperLink2" ImageUrl="images/button.png" NavigateUrl="http://www.name.com"  Text="click on..." Target="_top" runat="server" title="click on..." />

        Comment

        Working...