<% @ Page Language = "C #" %> <% @ import namespace = "system. Drawing" %> <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <SCRIPT runat = "server"> protected void page_load (Object sender, eventargs E) {// Asp.net hyperlink control parsed into the following HTML Tag // is a link // <a id = "hyperlink1"> hyperlink </a >}// change the background color protected void button#click (Object sender, eventargs e) {This. hyperlink1.backcolor = color. cyan;} // change the border color prote CTED void button2_click (Object sender, eventargs e) {This. hyperlink1.bordercolor = color. red;} // change the Border Width protected void button4_click (Object sender, eventargs e) {This. hyperlink1.borderwidth = 1;} // change the border style protected void button3_click (Object sender, eventargs e) {This. hyperlink1.borderstyle = borderstyle. dotted;} // change the style protected void button8_click (Object sender, eventargs e) {If (this. hyper Link1.cssclass = "Wang") {This. hyperlink1.cssclass = "AI";} else {This. hyperlink1.cssclass = "Wang" ;}} // Changes the availability of protected void button7_click (Object sender, eventargs e) {This. hyperlink1.enabled =! This. hyperlink1.enabled;} // set the font protected void button6_click (Object sender, eventargs e) {This. hyperlink1.font. size = new fontunit (fontsize. xlarge); this. hyperlink1.forecolor = color. royalblue; this. hyperlink1.font. bold =! This. hyperlink1.font. Bold; this. hyperlink1.font. italic =! This. hyperlink1.font. italic; this. hyperlink1.font. overline =! This. hyperlink1.font. overline; this. hyperlink1.font. Strikeout =! This. hyperlink1.font. Strikeout; this. hyperlink1.font. Underline =! This. hyperlink1.font. underline;} // set the color protected void button9_click (Object sender, eventargs e) {This. hyperlink1.forecolor = color. peachpuff;} // set the width and height of protected void button10_click (Object sender, eventargs e) {This. hyperlink1.width = 200; this. hyperlink1.height = 200;} // set the text protected void button11_click (Object sender, eventargs e) {This. hyperlink1.text = "Wang aihui";} // sets the protected void on the navigation page. Button5_click (Object sender, eventargs e) {This. hyperlink1.navigateurl = "http://www.wangaihui.com";} // The prompt protected void button12_click (Object sender, eventargs e) {This. hyperlink1.tooltip = "Qu Yang is the home of carving";} // sets the visibility protected void button13_click (Object sender, eventargs e) {This. hyperlink1.visible =! This. hyperlink1.visible;} // set the target protected void button14_click (Object sender, eventargs e) {This. hyperlink1.target = "_ blank ";} </SCRIPT> <HTML xmlns = "http://www.w3.org/1999/xhtml">