Learn the WebForms technology of. NET through cases (IV.)
Source: Internet
Author: User
Learn the WebForms technology of. NET through cases (IV.)
/*
Tofu production is a boutique
Http://www.asp888.net Tofu Technology Station
If reproduced please retain the full copyright information
*/
HyperLink:
HyperLink generates a hyperlink on the page, which he defines as follows
<asp:hyperlink id= "HyperLink1" runat= "Server" navigateurl= "Http://www.asp888.net"
text= "Tofu Technology Station" .../>
Or use the code definition:
HyperLink hyperlink1=new HyperLink ();
For hyperlink nature, his URL and text are the most important attributes.
Text is the display text represented by this super join in appearance, where it is necessary to note that if the ImageUrl attribute is defined on the hyperlink
The appearance of this hyperlink is a picture, then text loses the function of display, and automatically becomes the alt attribute of image
NavigateUrl: This property represents the connection point of the current hyperlink
IMAGEURL: This connection is a picture connection, which has already said that if the picture joins the Text property it will not work
Target: The same meaning as the properties of our target in <a ...>
In addition, the hyperlink Click event is also a very very important attribute, and his server-side click event and button's Click event function the same
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.