forum

home / developersection / forums / set session variable on menu item's click in asp.net

Set Session variable on menu item's click in asp.net

Mark Devid 3601 08-Oct-2014
ASP newbie here, in my website I need to set a session variable when I click the menu item
How can I achieve this, I have a menu control in my master page which has a sitemap file attached to it?

<asp:Menu ID="mainMenu" runat="server" DataSourceID="siteMapSource"
    StaticDisplayLevels="10" Width="150px">
    <StaticSelectedStyle CssClass="menuNodeSelected" />
    <LevelMenuItemStyles>
        <asp:MenuItemStyle Font-Bold="True" Font-Underline="False" />
    </LevelMenuItemStyles>
    <StaticMenuItemStyle CssClass="menuNode" />
</asp:Menu>
<asp:SiteMapDataSource ID="siteMapSource" runat="server" ShowStartingNode="False" />


Updated on 08-Oct-2014
Mark Devid

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By