Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. LinkButton problem

LinkButton problem

Scheduled Pinned Locked Moved ASP.NET
helpquestion
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Soumini Ramakrishnan
    wrote on last edited by
    #1

    I have one link button and 8 image buttons in my page. First time when the page is loaded, the link button is not appearing as a link. It looks like normal text. When I click on one of the Image Buttons the page will refresh and now onwards Link Button will appear as a link. Anyone have an idea?

    C 1 Reply Last reply
    0
    • S Soumini Ramakrishnan

      I have one link button and 8 image buttons in my page. First time when the page is loaded, the link button is not appearing as a link. It looks like normal text. When I click on one of the Image Buttons the page will refresh and now onwards Link Button will appear as a link. Anyone have an idea?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Yes, your code is broken. Hard to say more without seeing it, I'd guess you have a problem with order of functions being called.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      S 1 Reply Last reply
      0
      • C Christian Graus

        Yes, your code is broken. Hard to say more without seeing it, I'd guess you have a problem with order of functions being called.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        S Offline
        S Offline
        Soumini Ramakrishnan
        wrote on last edited by
        #3

        This is the aspx code: <tr> <td width="14" style="height: 83px"> </td> <td width="108" style="height: 83px"><asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/userimages/saj123.jpg" OnClick="ImageButton2_Click" Height ="79px" Width ="106px" /></td> <td width="6" style="height: 83px"> </td> <td width="106" style="height: 83px"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/userimages/sree123.jpg" OnClick="ImageButton2_Click" Height ="79px" Width ="106px" /></td> <td width="7" style="height: 83px"> </td> <td width="107" style="height: 83px"><asp:ImageButton id="ImageButton3" onclick="ImageButton2_Click" runat="server" Width="106px" ImageUrl="~/userimages/saj123.jpg" Height="79px"></asp:ImageButton></td> <td width="7" style="height: 83px"> </td> <td style="height: 83px; width: 107px;"><asp:ImageButton id="ImageButton4" onclick="ImageButton2_Click" runat="server" Width="106px" ImageUrl="~/userimages/saj123.jpg" Height="79px"></asp:ImageButton></td> <td style="height: 83px; width: 11px;"> </td> </tr> <tr> <td width="14" style="height: 19px"></td> <td width="108" align ="center" valign ="top" style="height: 19px"><span style =" color :White; font-family :Verdana ; font-size :8pt; font-weight :bold ">Sajana</span></td> <td width="6" style="height: 19px"></td> <td width="106" align ="center" valign ="top" style="height: 19px"><span style =" color :White; font-family :Verdana ; font-size :8pt; font-weight :bold ">Sreejith</span></td> <td width="7" style="height: 19px"></td> <td width="107" style="height: 19px"></td> <td width="7" style="height: 19px"></td> <td style="width: 107px; height: 1

        N N 2 Replies Last reply
        0
        • S Soumini Ramakrishnan

          This is the aspx code: <tr> <td width="14" style="height: 83px"> </td> <td width="108" style="height: 83px"><asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/userimages/saj123.jpg" OnClick="ImageButton2_Click" Height ="79px" Width ="106px" /></td> <td width="6" style="height: 83px"> </td> <td width="106" style="height: 83px"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/userimages/sree123.jpg" OnClick="ImageButton2_Click" Height ="79px" Width ="106px" /></td> <td width="7" style="height: 83px"> </td> <td width="107" style="height: 83px"><asp:ImageButton id="ImageButton3" onclick="ImageButton2_Click" runat="server" Width="106px" ImageUrl="~/userimages/saj123.jpg" Height="79px"></asp:ImageButton></td> <td width="7" style="height: 83px"> </td> <td style="height: 83px; width: 107px;"><asp:ImageButton id="ImageButton4" onclick="ImageButton2_Click" runat="server" Width="106px" ImageUrl="~/userimages/saj123.jpg" Height="79px"></asp:ImageButton></td> <td style="height: 83px; width: 11px;"> </td> </tr> <tr> <td width="14" style="height: 19px"></td> <td width="108" align ="center" valign ="top" style="height: 19px"><span style =" color :White; font-family :Verdana ; font-size :8pt; font-weight :bold ">Sajana</span></td> <td width="6" style="height: 19px"></td> <td width="106" align ="center" valign ="top" style="height: 19px"><span style =" color :White; font-family :Verdana ; font-size :8pt; font-weight :bold ">Sreejith</span></td> <td width="7" style="height: 19px"></td> <td width="107" style="height: 19px"></td> <td width="7" style="height: 19px"></td> <td style="width: 107px; height: 1

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Soumini Ramakrishnan wrote:

          CssClass ="style4 style5"

          Might be some styles issue. Do you have anything in page_load ?

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          S 1 Reply Last reply
          0
          • N N a v a n e e t h

            Soumini Ramakrishnan wrote:

            CssClass ="style4 style5"

            Might be some styles issue. Do you have anything in page_load ?

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            S Offline
            S Offline
            Soumini Ramakrishnan
            wrote on last edited by
            #5

            Page_Load block is empty

            1 Reply Last reply
            0
            • S Soumini Ramakrishnan

              This is the aspx code: <tr> <td width="14" style="height: 83px"> </td> <td width="108" style="height: 83px"><asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/userimages/saj123.jpg" OnClick="ImageButton2_Click" Height ="79px" Width ="106px" /></td> <td width="6" style="height: 83px"> </td> <td width="106" style="height: 83px"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/userimages/sree123.jpg" OnClick="ImageButton2_Click" Height ="79px" Width ="106px" /></td> <td width="7" style="height: 83px"> </td> <td width="107" style="height: 83px"><asp:ImageButton id="ImageButton3" onclick="ImageButton2_Click" runat="server" Width="106px" ImageUrl="~/userimages/saj123.jpg" Height="79px"></asp:ImageButton></td> <td width="7" style="height: 83px"> </td> <td style="height: 83px; width: 107px;"><asp:ImageButton id="ImageButton4" onclick="ImageButton2_Click" runat="server" Width="106px" ImageUrl="~/userimages/saj123.jpg" Height="79px"></asp:ImageButton></td> <td style="height: 83px; width: 11px;"> </td> </tr> <tr> <td width="14" style="height: 19px"></td> <td width="108" align ="center" valign ="top" style="height: 19px"><span style =" color :White; font-family :Verdana ; font-size :8pt; font-weight :bold ">Sajana</span></td> <td width="6" style="height: 19px"></td> <td width="106" align ="center" valign ="top" style="height: 19px"><span style =" color :White; font-family :Verdana ; font-size :8pt; font-weight :bold ">Sreejith</span></td> <td width="7" style="height: 19px"></td> <td width="107" style="height: 19px"></td> <td width="7" style="height: 19px"></td> <td style="width: 107px; height: 1

              N Offline
              N Offline
              Nouman Bhatti
              wrote on last edited by
              #6

              there must be a problem with your CSS class

              E S 2 Replies Last reply
              0
              • N Nouman Bhatti

                there must be a problem with your CSS class

                E Offline
                E Offline
                eyeseetee
                wrote on last edited by
                #7

                I think you can have only style in the cssclass, take out the cssclass completly and then try loading the page see what happens

                1 Reply Last reply
                0
                • N Nouman Bhatti

                  there must be a problem with your CSS class

                  S Offline
                  S Offline
                  Soumini Ramakrishnan
                  wrote on last edited by
                  #8

                  Yes, It was a css issue . The name of the css class was wrong. Thanks to all

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups