My menu is on the master page. How can I change the effect of Ver2 after the menu is clicked? How can I change ver2?

Source: Internet
Author: User

My menu is on the master page. How can I change the effect of Ver2 after the menu is clicked? How can I change ver2?

A long time ago, Insus. NET implemented a function using ASP. NET, not javascript. "My menu on the master page, how to change the menu after clicking the effect" http://www.cnblogs.com/insus/archive/2012/09/25/2700939.html is a bit insufficient, the input parameter link is not good judgment. It is not difficult, but you need to write a function to remove parameters.


The following Insus. NET uses another method to implement similar functions. It has nothing to do with passing parameters without passing them. You also do not need to set the menu style, You Need To foreach all the controls of a container (menu. However, you need to create a list when implementing the menu.

 

The above list is set based on your menu and written in xxx. master. cs. The value of dic generic type is the ultimate path.



The key of dic is the ID of the LinkButton, but the value of the postBackUrl of the LinkButton is different from that of the dic generic type.


OK, or use the interface, then create an interface:

 

Xxx. master. cs implementation interface:



Every webpage linked should tell the master that the current user pays attention to me rather than her:


Implementation Demonstration:

 


Aspnet click the hyperlink in the navigation bar on the master page to jump to another page. On the other page, how can I make the menu navigation I clicked to be selected?

... First pass the value through url, upload the value to that page through hyperlink, receive the value on that page, and then judge based on the value. If the value is the same, add the selected style.

How to Create a master page

DW8 never used

You can use vs2005 or vs2008 to add a motherboard page when simply adding a page.
 

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.