Friday, October 17, 2008

ASP.Net Menucontrol Selected Property

When you are using the menu control in a Master page and you navigate to a new page the Selected value properties of the menu control are lost and do not display. In VB the code to rectify this is as follows:

Found this link written in C# which helped:
http://www.eggheadcafe.com/community/aspnet/17/10028397/highlighting-the-menu-sel.aspx

In the Page_Load section
Dim ThisPage As String = Page.AppRelativeVirtualPath

For Each parentMenu As MenuItem In Menu1.Items
If parentMenu.NavigateUrl = ThisPage Then
parentMenu.Selected = True
Else
For Each childMenu As MenuItem In parentMenu.ChildItems
If childMenu.NavigateUrl = ThisPage Then
childMenu.Selected = True
childMenu.Selectable = False
End If
Next
End If
Next

Wednesday, May 28, 2008

There is an obvious conflict between Crystal Reports 2008 and applying themes in the web.config file. The report is grayed out whenever the themes are applied in the web.config or in the page that contains the crystalreportviewer control. Will report this to BO and see what comes of it. If anyone else has experienced and has a resolution that would be great.

Thursday, February 28, 2008

VS2008 Wireless Mouse Conflict

Just installed VS2008 on my laptop (has Vista Home Premium) and was having problems with putting the Ajax Control Tool Kit items on web pages. Come to find out it was the wireless mouse that I was using. I had to uninstall the wireless mouse software and disable the UAC (User Account Control).

This was after exhaustive efforts to figure out why it wouldn't work.

Thanks to several sites that pinpointed this issue.

http://www.west-wind.com/WebLog/posts/9932.aspx

http://www.west-wind.com/weblog/posts/10641.aspx

http://support.microsoft.com/kb/913405/en-us