开发者

Dotnet - Passing argument between master pages

开发者 https://www.devze.com 2023-03-02 07:18 出处:网络
Here is my site http://www.grandparkcityresorts.com On the 开发者_StackOverflowleft I have a Quick search menu which is on a Master page. After choosing the values and hitting Check availability, I n

Here is my site http://www.grandparkcityresorts.com

On the 开发者_StackOverflowleft I have a Quick search menu which is on a Master page. After choosing the values and hitting Check availability, I need to pass it to another master page without using session. Is there a way to do without session?


You may want to think about determining the current page from the current Url. This is a good practice as it will allow you to highlight the current quick search button even if it is the first page that they load.

to do this, you would need to get the current Url on Page_Load and parse it to determine what page you are currently on.

The ASP.Net <asp:Menu/> control has this functionality built in. http://msdn.microsoft.com/en-us/library/ecs0x9w5(v=VS.100).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消