Use Cases to learn about. net WebForms (4)

Source: Internet
Author: User

HyperLink:
HyperLink generates a superjoin on the page. Its definition is as follows:
<Asp: HyperLink id = "hyperlink1" runat = "server" NavigateUrl = "http://www.asp888.net"
Text = "Tofu technology station".../>
Or use the code to define:
HyperLink hyperlink1 = new HyperLink ();
For HyperLink, its Url and Text are the most important attributes.
Text is the display Text represented by this super join in appearance. Note that if the ImageUrl attribute is defined for HyperLink
It indicates that the appearance table of the HyperLink is an Image, and the Text is automatically changed to the Alt attribute of the Image.
NavigateUrl: This attribute indicates the link of the current HyperLink.
ImageUrl: indicates that this join is an image join. As mentioned above, if it is an image join Text attribute, it will not work.
Target: it has the same meaning as the Target attribute in <a...>.

In addition, the Click event of HyperLink is also a very important attribute. Its Server-side Click Event and Button Click event play the same role.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.