dfb78
July 21st, 2003, 08:52 AM
Those who are familiar with the obout SlideMenu (www.obout.com/sm)...please help. ;P I currently have a "WebMethods" class which contains all of my common methods, properties, etc. The SlideMenu is generated in a method within this class, and then called in each Page_Load event for my pages. The problem is, I want the current page to be the selected index in the SlideMenu each time a page is loaded. I have followed the examples given by the website and converted it to C#:
oSM.SelectedIndex = Int32.Parse(Request.QueryString["sm"]);
Looks fine, but...
The issue is, unless I physically put the code that draws the menu in the Page_Load event (not calling it from that event), the selected index assignment fails. I am new to ASP.NET, but have a little C# experience, and I am mostly wondering if it is even possible to place the menu drawing method in a common class, and still effectively utilize the selected index property. The example I'm using is here (converted to C#): http://www.obout.com/sm/greenlight_net.asp?sm=net_greenlight
Thanks!
Dustin
oSM.SelectedIndex = Int32.Parse(Request.QueryString["sm"]);
Looks fine, but...
The issue is, unless I physically put the code that draws the menu in the Page_Load event (not calling it from that event), the selected index assignment fails. I am new to ASP.NET, but have a little C# experience, and I am mostly wondering if it is even possible to place the menu drawing method in a common class, and still effectively utilize the selected index property. The example I'm using is here (converted to C#): http://www.obout.com/sm/greenlight_net.asp?sm=net_greenlight
Thanks!
Dustin