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 Devid338608-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:MenuID="mainMenu"runat="server"DataSourceID="siteMapSource"
    StaticDisplayLevels="10"Width="150px">
    <StaticSelectedStyleCssClass="menuNodeSelected"/>
    <LevelMenuItemStyles>
        <asp:MenuItemStyleFont-Bold="True"Font-Underline="False"/>
    </LevelMenuItemStyles>
    <StaticMenuItemStyleCssClass="menuNode"/>
</asp:Menu>
<asp:SiteMapDataSourceID="siteMapSource"runat="server"ShowStartingNode="False"/>


Updated on 08-Oct-2014

Can you answer this question?


Answer

1 Answers

Liked By