Implementation of the Asp.net Tab

Source: Internet
Author: User

Add a menu control and a standard control.

Design:

Source:

 

Code:
  1. <Asp: menu id = "menu1" runat = "server" orientation = "horizontal" width = "501px" staticenabledefaultpopoutimage = "false"
  2. Onmenuitemclick = "menu1_menuitemclick" backcolor = "white"
  3. Dynamichorizontaloffset = "2" font-names = "verdana" font-size = "14pt"
  4. Forecolor = "#7c6f57" staticsubmenuindent = "10px" font-bold = "true">
  5. <Staticselectedstyle backcolor = "Silver" forecolor = "white"/>
  6. <Staticmenuitemstyle horizontalpadding = "5px" verticalpadding = "2px"/>
  7. <Dynamichoverstyle backcolor = "# ff9900" forecolor = "white"/>
  8. <Dynamicselectedstyle backcolor = "# cc9900"/>
  9. <Dynamicmenuitemstyle horizontalpadding = "5px" verticalpadding = "2px"/>
  10. <Statichoverstyle backcolor = "#99 CCFF" forecolor = "white"/>
  11. <Items>
  12. <Asp: menuitem value = "0" text = "" selected = "true"> </ASP: menuitem>
  13. <Asp: menuitem value = "1" text = "Contact Information"> </ASP: menuitem>
  14. <Asp: menuitem value = "2" text = "dating materials"> </ASP: menuitem>
  15. <Asp: menuitem value = "3" text = "interests"> </ASP: menuitem>
  16. <Asp: menuitem value = "4" text = ""> </ASP: menuitem>
  17. </Items>
  18. </ASP: menu>

Design:

 

Source:

Code:
  1. <Asp: multiview id = "multiview1" runat = "server" activeviewindex = "0">
  2. <Asp: View id = "basicinfo" runat = "server">
  3. <Table Style = "width: 100%;">
  4. <Tr>
  5. <TD>
  6. Tab2
  7. </TD>
  8. </Tr>
  9. </Table>
  10. </ASP: View>
  11. <Asp: View id = "tab2" runat = "server">
  12. <Table>
  13. <Tr>
  14. <TD>
  15. Tab2
  16. </TD>
  17. </Tr>
  18. </Table>
  19. </ASP: View>
  20. <Asp: View id = "view1" runat = "server">
  21. <Table>
  22. <Tr>
  23. <TD>
  24. Tab3
  25. </TD>
  26. </Tr>
  27. </Table>
  28. </ASP: View>
  29. <Asp: View id = "view2" runat = "server">
  30. <Table>
  31. <Tr>
  32. <TD>
  33. Tab4
  34. </TD>
  35. </Tr>
  36. </Table>
  37. </ASP: View>
  38. <Asp: View id = "view3" runat = "server">
  39. <Table>
  40. <Tr>
  41. <TD>
  42. Tab5
  43. </TD>
  44. </Tr>
  45. </Table>
  46. </ASP: View>
  47. </ASP: multiview>

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.