 |
|
 |
|
|
 |
SelectedItem in AspMenu control |
 |
 |
|
|
10-13-07 06:27 AM
I have modified the ASP .NET 2.0 Menu control found in Chapter 4 of
the book Stephan co-wrote titled "Enhancing Microsoft Content
Management Server with ASP .NET 2.0."
Now, I'm attempting to set the SelectedItem property of the control so
that users will see different styling of the one tab (it's orientated
horizontally) that is an ancestor of the users current location. I'm
able to successfully accomplish this task as long as I'm not in a mode
that presents the friendly URLs. But when I just browse to the site
as a subscriber, I can't see any of the Items in the MenuItem
collection.
The control works just fine, displaying what it needs to but when I
try to write MenuItems.Count it says '0' and none of the properties of
the MenuItems are available. When I try to get an individual MenuItem
by index or name, I receive a null reference exception. What on earth
am I doing wrong?
HELP STEPHAN!!!!
Here is my base SiteMapProvider code:
Imports Microsoft.VisualBasic
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports Microsoft.ContentManagement.Publishing
Namespace IWSiteMap
Public Class WfisSiteMapProvider
Inherits SiteMapProvider
Protected siteChannelPath As String
Public Sub New()
siteChannelPath =
CType(CmsHttpContext.Current.Searches.GetByGuid(System.Configuration.Configu
rationManager.AppSettings("Wfis_Nav_Root_Guid")),
Channel).Path
End Sub
Public Overloads Overrides Function FindSiteMapNode(ByVal
urlOrGuid As String) As System.Web.SiteMapNode
Dim ci As ChannelItem
If (urlOrGuid.StartsWith("{")) Then
ci =
CType(CmsHttpContext.Current.Searches.GetByGuid(urlOrGuid),
ChannelItem)
Else
ci = CType(GetByUrlPlus(CmsHttpContext.Current,
urlOrGuid), ChannelItem)
End If
Return GetNodeFromChannelItem(ci)
End Function
Public Overloads Overrides Function FindSiteMapNode(ByVal ctx
As HttpContext) As System.Web.SiteMapNode
Dim ci As ChannelItem
Try
ci = CmsHttpContext.Current.ChannelItem
Return GetNodeFromChannelItem(ci)
Catch ex As Exception
Return Nothing
LogError(ex)
End Try
End Function
Private Function IsHostHeaderMapped(ByVal ctx As CmsContext)
As Boolean
If (ctx.RootChannel.UrlModePublished = "http://Channels/")
Then
Return True
Else
Return False
End If
End Function
Protected Function GetByUrlPlus(ByVal ctx As CmsContext, ByVal
url As String)
Try
If (IsHostHeaderMapped(ctx)) Then
Dim path As String = HttpUtility.UrlDecode(url)
path = path.Replace("http://", "/Channels/")
If Not (path.StartsWith("/Channels/")) Then
path = "/Channels/" +
HttpContext.Current.Request.Url.Host + path
End If
If (path.EndsWith(".htm")) Then
path = path.Substring(0, path.Length - 4)
End If
If (path.EndsWith("/")) Then
path = path.Substring(0, path.Length - 1)
End If
Return CType(ctx.Searches.GetByPath(path),
ChannelItem)
Else
Return CType(ctx.Searches.GetByUrl(url),
ChannelItem)
End If
Catch ex As Exception
LogError(ex)
Return Nothing
End Try
End Function
Public Overrides Function GetChildNodes(ByVal node As
System.Web.SiteMapNode) As System.Web.SiteMapNodeCollection
Dim nodeCollection As SiteMapNodeCollection = New
SiteMapNodeCollection()
Try
If
(CmsHttpContext.Current.Searches.GetByGuid(node.Key).GetType.ToString
= "Microsoft.ContentManagement.Publishing.Posting") Then
Return Nothing
Else
Dim currentChannel As Channel =
CmsHttpContext.Current.Searches.GetByGuid(node.Key)
If Not (currentChannel Is Nothing) Then
Dim chnCollection As ChannelCollection =
currentChannel.Channels
chnCollection.SortByOrdinal()
For Each chn As Channel In chnCollection
nodeCollection.Add(GetNodeFromChannelItem(CType(chn, ChannelItem)))
Next
Dim pstCollection As PostingCollection =
currentChannel.Postings
pstCollection.SortByOrdinal()
For Each pst As Posting In pstCollection
nodeCollection.Add(GetNodeFromChannelItem(CType(pst, ChannelItem)))
Next
End If
currentChannel = Nothing
Return nodeCollection
End If
Catch ex As Exception
LogError(ex)
Return Nothing
Finally
nodeCollection = Nothing
End Try
End Function
Public Overrides Function GetParentNode(ByVal node As
System.Web.SiteMapNode) As System.Web.SiteMapNode
Dim ci As ChannelItem =
CType(CmsHttpContext.Current.Searches.GetByGuid(node.Key),
ChannelItem)
Dim parentChannel As Channel = Nothing
Try
If Not (ci Is Nothing) Then
If Not (ci.Path = siteChannelPath) Then
parentChannel = ci.Parent
End If
Else
parentChannel = CmsHttpContext.Current.Channel
End If
If (parentChannel Is Nothing) Then
Return Nothing
Else
If (parentChannel.Path = "/Channels/" And Not
siteChannelPath = "/Channels/") Then
Return Nothing
Else
Return GetNodeFromChannelItem(parentChannel)
End If
End If
Catch ex As Exception
LogError(ex)
Return Nothing
Finally
ci = Nothing
parentChannel = Nothing
End Try
End Function
Protected Overrides Function GetRootNodeCore() As
System.Web.SiteMapNode
Return
GetNodeFromChannelItem(CType(CmsHttpCont
ext.Current.Searches.GetByGuid(Syste
m.Configuration.ConfigurationManager.AppSettings("Wfis_Nav_Root_Guid")),
ChannelItem))
End Function
Protected Function GetNodeFromChannelItem(ByVal ci As
ChannelItem) As SiteMapNode
Dim node As SiteMapNode = Nothing
Try
If Not (ci Is Nothing) Then
node = New SiteMapNode(Me, ci.Guid)
node.Url = ci.Url
node.Title = ci.DisplayName
node.Description = ci.Path
End If
Return node
Catch ex As Exception
LogError(ex)
Return Nothing
Finally
node = Nothing
End Try
End Function
Private Sub LogError(ByVal ex As Exception)
'TODO
End Sub
End Class
End Namespace
Here is the code of the provider that inherits from the base site map
provider:
Imports Microsoft.VisualBasic
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports Microsoft.ContentManagement.Publishing
Namespace IWSiteMap
Public Class WfisTopNavSiteMapProvider
Inherits IWSiteMap.WfisSiteMapProvider
Protected Shadows siteChannelPath As String
Public Sub New()
siteChannelPath =
CType(CmsHttpContext.Current.Searches.GetByGuid(System.Configuration.Configu
rationManager.AppSettings("Wfis_Nav_Root_Guid")),
Channel).Path
End Sub
Public Overrides Function GetChildNodes(ByVal node As
System.Web.SiteMapNode) As System.Web.SiteMapNodeCollection
Dim nodeCollection As SiteMapNodeCollection = New
SiteMapNodeCollection()
Try
If
(CmsHttpContext.Current.Searches.GetByGuid(node.Key).GetType.ToString
= "Microsoft.ContentManagement.Publishing.Posting") Then
Return Nothing
Else
Dim currentChannel As Channel =
CmsHttpContext.Current.Searches.GetByGuid(node.Key)
If Not (currentChannel Is Nothing) Then
Dim chnCollection As ChannelCollection =
currentChannel.Channels
chnCollection.SortByOrdinal()
For Each chn As Channel In chnCollection
If
(chn.CustomProperties("MenuControl").Value = "TopNav") Then
nodeCollection.Add(GetNodeFromChannelItem(CType(chn, ChannelItem)))
End If
Next
Dim pstCollection As PostingCollection =
currentChannel.Postings
pstCollection.SortByOrdinal()
'For Each pst As Posting In pstCollection
'If Not (pst.Name.ToLower() = "default") Then
'nodeCollection.Add(GetNodeFromChannelItem(CType(pst, ChannelItem)))
'End If
'Next
End If
currentChannel = Nothing
Return nodeCollection
End If
Catch ex As Exception
LogError(ex)
Return Nothing
Finally
nodeCollection = Nothing
End Try
End Function
Private Sub LogError(ByVal ex As Exception)
'TODO
End Sub
End Class
End Namespace
And here is the relevant markup of the Master Page containg the
control:
<asp:SiteMapDataSource
ID="WfisTopNavDataSource" SiteMapProvider="WfisTopNavSiteMapProvider"
runat="server"
ShowStartingNode="false"/>
<table style="width: 100%; border-top: 0px;
border-right: 0px; border-bottom: 0px; border-bottom: solid, 3px,
Black;" cellpadding="0" cellspacing="0">
<tr>
<td
class="StaticMenu_Top_Spacer"> </td>
<td>
<asp:Menu ID="WfisTopNav"
runat="server" DataSourceID="WfisTopNavDataSource"
MaximumDynamicDisplayLevels="0"
ItemWrap="false"
Orientation="Horizontal">
<StaticSelectedStyle
CssClass="StaticSelectedStyle_Top" />
<StaticMenuItemStyle
CssClass="StaticMenuItemStyle_Top" />
<StaticMenuStyle
CssClass="StaticMenuStyle_Top" />
<StaticHoverStyle
CssClass="StaticHoverStyle_Top" />
</
asp:Menu>
</td>
</tr>
</table>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: SelectedItem in AspMenu control |
 |
 |
|
|
10-16-07 12:24 PM
Hi,
did you already step through the code using a debugger to see what is going
on?
Cheers,
Stefan
"stoo" <westurnerinc@gmail.com> wrote in message
news:1192239140.639909.71670@v29g2000prd.googlegroups.com...
>I have modified the ASP .NET 2.0 Menu control found in Chapter 4 of
> the book Stephan co-wrote titled "Enhancing Microsoft Content
> Management Server with ASP .NET 2.0."
>
> Now, I'm attempting to set the SelectedItem property of the control so
> that users will see different styling of the one tab (it's orientated
> horizontally) that is an ancestor of the users current location. I'm
> able to successfully accomplish this task as long as I'm not in a mode
> that presents the friendly URLs. But when I just browse to the site
> as a subscriber, I can't see any of the Items in the MenuItem
> collection.
>
> The control works just fine, displaying what it needs to but when I
> try to write MenuItems.Count it says '0' and none of the properties of
> the MenuItems are available. When I try to get an individual MenuItem
> by index or name, I receive a null reference exception. What on earth
> am I doing wrong?
>
> HELP STEPHAN!!!!
>
> Here is my base SiteMapProvider code:
>
> Imports Microsoft.VisualBasic
> Imports System
> Imports System.Data
> Imports System.Configuration
> Imports System.Web
> Imports System.Web.Security
> Imports System.Web.UI
> Imports System.Web.UI.WebControls
> Imports System.Web.UI.WebControls.WebParts
> Imports System.Web.UI.HtmlControls
> Imports Microsoft.ContentManagement.Publishing
>
> Namespace IWSiteMap
> Public Class WfisSiteMapProvider
> Inherits SiteMapProvider
>
> Protected siteChannelPath As String
>
> Public Sub New()
> siteChannelPath =
> CType(CmsHttpContext.Current.Searches.GetByGuid(System.Configuration.Confi
gurationManager.AppSettings("Wfis_Nav_Root_Guid")),
> Channel).Path
> End Sub
>
> Public Overloads Overrides Function FindSiteMapNode(ByVal
> urlOrGuid As String) As System.Web.SiteMapNode
> Dim ci As ChannelItem
> If (urlOrGuid.StartsWith("{")) Then
> ci =
> CType(CmsHttpContext.Current.Searches.GetByGuid(urlOrGuid),
> ChannelItem)
> Else
> ci = CType(GetByUrlPlus(CmsHttpContext.Current,
> urlOrGuid), ChannelItem)
> End If
> Return GetNodeFromChannelItem(ci)
> End Function
>
> Public Overloads Overrides Function FindSiteMapNode(ByVal ctx
> As HttpContext) As System.Web.SiteMapNode
> Dim ci As ChannelItem
> Try
> ci = CmsHttpContext.Current.ChannelItem
> Return GetNodeFromChannelItem(ci)
> Catch ex As Exception
> Return Nothing
> LogError(ex)
> End Try
> End Function
>
> Private Function IsHostHeaderMapped(ByVal ctx As CmsContext)
> As Boolean
> If (ctx.RootChannel.UrlModePublished = "http://Channels/")
> Then
> Return True
> Else
> Return False
> End If
> End Function
>
> Protected Function GetByUrlPlus(ByVal ctx As CmsContext, ByVal
> url As String)
> Try
> If (IsHostHeaderMapped(ctx)) Then
> Dim path As String = HttpUtility.UrlDecode(url)
> path = path.Replace("http://", "/Channels/")
> If Not (path.StartsWith("/Channels/")) Then
> path = "/Channels/" +
> HttpContext.Current.Request.Url.Host + path
> End If
> If (path.EndsWith(".htm")) Then
> path = path.Substring(0, path.Length - 4)
> End If
> If (path.EndsWith("/")) Then
> path = path.Substring(0, path.Length - 1)
> End If
> Return CType(ctx.Searches.GetByPath(path),
> ChannelItem)
> Else
> Return CType(ctx.Searches.GetByUrl(url),
> ChannelItem)
> End If
> Catch ex As Exception
> LogError(ex)
> Return Nothing
> End Try
> End Function
>
> Public Overrides Function GetChildNodes(ByVal node As
> System.Web.SiteMapNode) As System.Web.SiteMapNodeCollection
> Dim nodeCollection As SiteMapNodeCollection = New
> SiteMapNodeCollection()
> Try
> If
> (CmsHttpContext.Current.Searches.GetByGuid(node.Key).GetType.ToString
> = "Microsoft.ContentManagement.Publishing.Posting") Then
> Return Nothing
> Else
> Dim currentChannel As Channel =
> CmsHttpContext.Current.Searches.GetByGuid(node.Key)
> If Not (currentChannel Is Nothing) Then
> Dim chnCollection As ChannelCollection =
> currentChannel.Channels
> chnCollection.SortByOrdinal()
> For Each chn As Channel In chnCollection
>
> nodeCollection.Add(GetNodeFromChannelItem(CType(chn, ChannelItem)))
> Next
>
> Dim pstCollection As PostingCollection =
> currentChannel.Postings
> pstCollection.SortByOrdinal()
> For Each pst As Posting In pstCollection
>
> nodeCollection.Add(GetNodeFromChannelItem(CType(pst, ChannelItem)))
> Next
> End If
> currentChannel = Nothing
> Return nodeCollection
> End If
> Catch ex As Exception
> LogError(ex)
> Return Nothing
> Finally
> nodeCollection = Nothing
> End Try
> End Function
>
> Public Overrides Function GetParentNode(ByVal node As
> System.Web.SiteMapNode) As System.Web.SiteMapNode
> Dim ci As ChannelItem =
> CType(CmsHttpContext.Current.Searches.GetByGuid(node.Key),
> ChannelItem)
> Dim parentChannel As Channel = Nothing
> Try
> If Not (ci Is Nothing) Then
> If Not (ci.Path = siteChannelPath) Then
> parentChannel = ci.Parent
> End If
> Else
> parentChannel = CmsHttpContext.Current.Channel
> End If
> If (parentChannel Is Nothing) Then
> Return Nothing
> Else
> If (parentChannel.Path = "/Channels/" And Not
> siteChannelPath = "/Channels/") Then
> Return Nothing
> Else
> Return GetNodeFromChannelItem(parentChannel)
> End If
> End If
> Catch ex As Exception
> LogError(ex)
> Return Nothing
> Finally
> ci = Nothing
> parentChannel = Nothing
> End Try
> End Function
>
> Protected Overrides Function GetRootNodeCore() As
> System.Web.SiteMapNode
> Return
> GetNodeFromChannelItem(CType(CmsHttpCont
ext.Current.Searches.GetByGuid(Sys
tem.Configuration.ConfigurationManager.AppSettings("Wfis_Nav_Root_Guid")),
> ChannelItem))
> End Function
>
> Protected Function GetNodeFromChannelItem(ByVal ci As
> ChannelItem) As SiteMapNode
> Dim node As SiteMapNode = Nothing
> Try
> If Not (ci Is Nothing) Then
> node = New SiteMapNode(Me, ci.Guid)
> node.Url = ci.Url
> node.Title = ci.DisplayName
> node.Description = ci.Path
> End If
> Return node
> Catch ex As Exception
> LogError(ex)
> Return Nothing
> Finally
> node = Nothing
> End Try
> End Function
>
> Private Sub LogError(ByVal ex As Exception)
> 'TODO
> End Sub
> End Class
>
> End Namespace
>
>
> Here is the code of the provider that inherits from the base site map
> provider:
>
> Imports Microsoft.VisualBasic
> Imports System
> Imports System.Data
> Imports System.Configuration
> Imports System.Web
> Imports System.Web.Security
> Imports System.Web.UI
> Imports System.Web.UI.WebControls
> Imports System.Web.UI.WebControls.WebParts
> Imports System.Web.UI.HtmlControls
> Imports Microsoft.ContentManagement.Publishing
>
> Namespace IWSiteMap
> Public Class WfisTopNavSiteMapProvider
> Inherits IWSiteMap.WfisSiteMapProvider
>
> Protected Shadows siteChannelPath As String
>
> Public Sub New()
> siteChannelPath =
> CType(CmsHttpContext.Current.Searches.GetByGuid(System.Configuration.Confi
gurationManager.AppSettings("Wfis_Nav_Root_Guid")),
> Channel).Path
> End Sub
>
> Public Overrides Function GetChildNodes(ByVal node As
> System.Web.SiteMapNode) As System.Web.SiteMapNodeCollection
> Dim nodeCollection As SiteMapNodeCollection = New
> SiteMapNodeCollection()
> Try
> If
> (CmsHttpContext.Current.Searches.GetByGuid(node.Key).GetType.ToString
> = "Microsoft.ContentManagement.Publishing.Posting") Then
> Return Nothing
> Else
> Dim currentChannel As Channel =
> CmsHttpContext.Current.Searches.GetByGuid(node.Key)
> If Not (currentChannel Is Nothing) Then
> Dim chnCollection As ChannelCollection =
> currentChannel.Channels
> chnCollection.SortByOrdinal()
> For Each chn As Channel In chnCollection
> If
> (chn.CustomProperties("MenuControl").Value = "TopNav") Then
>
> nodeCollection.Add(GetNodeFromChannelItem(CType(chn, ChannelItem)))
> End If
> Next
> Dim pstCollection As PostingCollection =
> currentChannel.Postings
> pstCollection.SortByOrdinal()
> 'For Each pst As Posting In pstCollection
> 'If Not (pst.Name.ToLower() = "default") Then
>
> 'nodeCollection.Add(GetNodeFromChannelItem(CType(pst, ChannelItem)))
> 'End If
> 'Next
> End If
> currentChannel = Nothing
> Return nodeCollection
> End If
> Catch ex As Exception
> LogError(ex)
> Return Nothing
> Finally
> nodeCollection = Nothing
> End Try
> End Function
>
> Private Sub LogError(ByVal ex As Exception)
> 'TODO
> End Sub
> End Class
> End Namespace
>
> And here is the relevant markup of the Master Page containg the
> control:
>
> <asp:SiteMapDataSource
> ID="WfisTopNavDataSource" SiteMapProvider="WfisTopNavSiteMapProvider"
> runat="server"
> ShowStartingNode="false"/>
> <table style="width: 100%; border-top: 0px;
> border-right: 0px; border-bottom: 0px; border-bottom: solid, 3px,
> Black;" cellpadding="0" cellspacing="0">
> <tr>
> <td
> class="StaticMenu_Top_Spacer"> </td>
> <td>
> <asp:Menu ID="WfisTopNav"
> runat="server" DataSourceID="WfisTopNavDataSource"
>
> MaximumDynamicDisplayLevels="0"
> ItemWrap="false"
> Orientation="Horizontal">
>
>
> <StaticSelectedStyle
> CssClass="StaticSelectedStyle_Top" />
> <StaticMenuItemStyle
> CssClass="StaticMenuItemStyle_Top" />
> <StaticMenuStyle
> CssClass="StaticMenuStyle_Top" />
> <StaticHoverStyle
> CssClass="StaticHoverStyle_Top" />
> </
> asp:Menu>
> </td>
> </tr>
> </table>
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: SelectedItem in AspMenu control |
 |
 |
|
|
10-16-07 06:24 PM
Yes, I have. If I place a line like the following on the master page
with the menu control on it:
Me.WfisTopNav.Items(0).Selected =3D True
Then I get the "Index was out of range" ASP .NET error if I'm in
published mode with the friendly URLs. After switching to edit site,
everything works fine. This occurs even though all of the top items
in the menu are channels, which don't require any approval for the
system to consider them published for the purpose of crawling the
channel structure via the PAPI. Everything works fine until then.
It's like the friendly URLs make the menu control's sub items
invisible even if the menu control is displayed properly.
Thanks,
Wes
On Oct 16, 4:24 am, "Stefan Go=DFner [MSFT]"
<stef...@online.microsoft.com> wrote:
> Hi,
>
> did you already step through the code using a debugger to see what is goi=
ng
> on?
>
> Cheers,
> Stefan
>
> "stoo" <westurner...@gmail.com> wrote in message
>
> news:1192239140.639909.71670@v29g2000prd.googlegroups.com...
>
>
>
>
>
>
>
>
>
>
>
nfig=ADurationManager.AppSettings("Wfis_Nav_Root_Guid")),[vbcol=seagreen]
>
>
>
>
>
>
>
>
>
>
Syst=ADem.Configuration.ConfigurationManager.AppSettings("Wfis_Nav_Root_Gui=
d")),[vbcol=seagreen]
>
>
>
>
>
>
>
>
nfig=ADurationManager.AppSettings("Wfis_Nav_Root_Guid")),[vbcol=seagreen]
>
>
>
> ...
>
> read more =BB- Hide quoted text -
>
> - Show quoted text -
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: SelectedItem in AspMenu control |
 |
 |
|
|
10-17-07 12:19 AM
Here's another update and another problem. Perhaps its indicative of
something large going on which I don't understand fully.
I also have a DropDownList control on this masterpage which populates
itself with Channel display names and URLs as the respective Name and
Value properties of the DropDownList. What I want to do is redirect
the users to the Value when the SelectedIndexChanged event is fired.
However, this event never seems to be called. Do you know if this is
a related problem Stephan?
Thanks,
Wes
On Oct 16, 10:31 am, stoo <westurner...@gmail.com> wrote:
> Yes, I have. If I place a line like the following on the master page
> with the menu control on it:
>
> Me.WfisTopNav.Items(0).Selected =3D True
>
> Then I get the "Index was out of range" ASP .NET error if I'm in
> published mode with the friendly URLs. After switching to edit site,
> everything works fine. This occurs even though all of the top items
> in the menu are channels, which don't require any approval for the
> system to consider them published for the purpose of crawling the
> channel structure via the PAPI. Everything works fine until then.
> It's like the friendly URLs make the menu control's sub items
> invisible even if the menu control is displayed properly.
>
> Thanks,
>
> Wes
>
> On Oct 16, 4:24 am, "Stefan Go=DFner [MSFT]"
>
>
>
> <stef...@online.microsoft.com> wrote:
>
oing[vbcol=seagreen]
>
>
>
>
>
>
>
>
>
>
>
>
Config=AD=ADurationManager.AppSettings("Wfis_Nav_Root_Guid")),[vbcol=seagreen]
>
>
>
")[vbcol=seagreen]
>
>
>
>
>
>
>
d(Syst=AD=ADem.Configuration.ConfigurationManager.AppSettings("Wfis_Nav_Roo=
t_Guid")),[vbcol=seagreen]
>
>
>
>
>
>
>
>
>
> ...
>
> read more =BB- Hide quoted text -
>
> - Show quoted text -
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: SelectedItem in AspMenu control |
 |
 |
|
|
10-17-07 06:25 AM
False alarm on the second problem. Apparently it was some sort of
difficulty with the IDE because after restarting Visual Studio, the
DropDownList is functioning properly.
Wes
On Oct 16, 3:39 pm, Wes <westurner...@gmail.com> wrote:
> Here's another update and another problem. Perhaps its indicative of
> something large going on which I don't understand fully.
>
> I also have a DropDownList control on this masterpage which populates
> itself with Channel display names and URLs as the respective Name and
> Value properties of the DropDownList. What I want to do is redirect
> the users to the Value when the SelectedIndexChanged event is fired.
> However, this event never seems to be called. Do you know if this is
> a related problem Stephan?
>
> Thanks,
>
> Wes
>
> On Oct 16, 10:31 am, stoo <westurner...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
going[vbcol=seagreen]
>
>
>
>
>
so[vbcol=seagreen]
ed[vbcol=seagreen]
'm[vbcol=seagreen]
ode[vbcol=seagreen]
>
of[vbcol=seagreen]
tem[vbcol=seagreen]
rth[vbcol=seagreen]
>
>
>
>
>
>
n=2EConfig=AD=AD=ADurationManager.AppSettings("Wfis_Nav_Root_Guid")),[vbcol=seagreen]
>
>
>
s/")[vbcol=seagreen]
>
al[vbcol=seagreen]
>
ng[vbcol=seagreen]
>
>
>
>
>
uid(Syst=AD=AD=ADem.Configuration.ConfigurationManager.AppSettings("Wfis_Na=
v_Root_Guid")),[vbcol=seagreen]
>
>
> ...
>
> read more =BB- Hide quoted text -
>
> - Show quoted text -
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 11:19 AM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|