what is the difference in link button and Hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kuldeep singh sethi
    New Member
    • Oct 2006
    • 33

    what is the difference in link button and Hyperlink

    Hi All

    I want to know about the difference between link button and hyperlink button. How much Both are same and where should be used.


    Regards

    Kuldeep singh sethi
  • Coleen
    New Member
    • Nov 2006
    • 9

    #2
    I'm not positive I have this correct, so somebody please do correct me if I'm wrong, but doesn't a linkbutton direct the user to a link within the site and a hyperlink button direct them to another site? Although I belive if you use the
    <a href="http://www.yoursiteher e/"> in your HTML you can do either...

    HTH,

    Coleen
    Last edited by Coleen; Nov 2 '06, 11:59 PM. Reason: Signature

    Comment

    • kunalp2
      New Member
      • Nov 2006
      • 5

      #3
      Hi Kuldeep,
      To the Web page visitor, a HyperLink control and a LinkButton control look identical. However, there is a significant difference in functionality.

      The HyperLink control immediately navigates to the target URL when the user clicks on the control. The form is not posted to the server.

      The LinkButton control first posts the form to the server, then navigates to the URL. If you need to do any server-side processing before going to the target URL, use a LinkButton.

      On the other hand, if there is no server-side processing necessary, don't waste a round trip and use the HyperLink control.

      Regards,
      Kunal

      Comment

      • kuldeep singh sethi
        New Member
        • Oct 2006
        • 33

        #4
        Originally posted by kunalp2
        Hi Kuldeep,
        To the Web page visitor, a HyperLink control and a LinkButton control look identical. However, there is a significant difference in functionality.

        The HyperLink control immediately navigates to the target URL when the user clicks on the control. The form is not posted to the server.

        The LinkButton control first posts the form to the server, then navigates to the URL. If you need to do any server-side processing before going to the target URL, use a LinkButton.

        On the other hand, if there is no server-side processing necessary, don't waste a round trip and use the HyperLink control.

        Regards,
        Kunal

        Thanks Sir

        Kuldeep singh sethi

        Comment

        Working...