Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - MasterPage - ContentPlaceHolder - How to navigate to the ContentPlaceHolder "Child Page"

 
Thread Tools Search this Thread
Old 03-22-2006, 06:30 PM   #1
Default MasterPage - ContentPlaceHolder - How to navigate to the ContentPlaceHolder "Child Page"



How do I programmatically load an .aspx page into the contentplaceholder?
Similar to what would happen in the "navigateURL" property when clicking on
a hyperlink on the master page. . .

ASP .NET 2.0


Thanks,
Greg




Greg
  Reply With Quote
Old 03-22-2006, 09:05 PM   #2
=?Utf-8?B?Y2xpY2tvbg==?=
 
Posts: n/a
Default RE: MasterPage - ContentPlaceHolder - How to navigate to the ContentPl

I don't think it is possible from your description you seem to be thinking of
master pages back to front. You can however programatically change the
master page that a content page is using. If you want to change the content
page and keep the master page the same this is simply two different aspx
pages that both use the same master page and you just link to them in the
normal way.

"Greg" wrote:

>
> How do I programmatically load an .aspx page into the contentplaceholder?
> Similar to what would happen in the "navigateURL" property when clicking on
> a hyperlink on the master page. . .
>
> ASP .NET 2.0
>
>
> Thanks,
> Greg
>
>
>

  Reply With Quote
Old 03-22-2006, 10:34 PM   #3
Greg Ramsey
 
Posts: n/a
Default Re: MasterPage - ContentPlaceHolder - How to navigate to the ContentPl

Thanks for the info. That's what I was afraid of. I think I'm in a
catch-22.. . . any suggestions you have would be greatly appreciated. I'm
using a treeview on my master page, and depending on the selected node, I
want to display data into the contentplaceholder. Some of the "base" nodes
of the treeview are static, and I can enter a "navigateurl" into those at
design time. Unfortunately, once I enter a navigateurl property for the
node, the SelectedNodeChanged event doesn't fire, so I'm not able to
"dynamically" populate the children of that node. . . . . .. defining the
entire tree at inital load time of the masterpage would be a bit of a
challenge, and would definitely take a considerable amount of time for the
page to load. ..

I'll have to be more creative. . . . .





"clickon" <> wrote in message
news:3450C01C-50E2-45CD-B892-...
>I don't think it is possible from your description you seem to be thinking
>of
> master pages back to front. You can however programatically change the
> master page that a content page is using. If you want to change the
> content
> page and keep the master page the same this is simply two different aspx
> pages that both use the same master page and you just link to them in the
> normal way.
>
> "Greg" wrote:
>
>>
>> How do I programmatically load an .aspx page into the contentplaceholder?
>> Similar to what would happen in the "navigateURL" property when clicking
>> on
>> a hyperlink on the master page. . .
>>
>> ASP .NET 2.0
>>
>>
>> Thanks,
>> Greg
>>
>>
>>



  Reply With Quote
Old 03-23-2006, 06:33 PM   #4
=?Utf-8?B?Y2xpY2tvbg==?=
 
Posts: n/a
Default Re: MasterPage - ContentPlaceHolder - How to navigate to the Conte

When you say you want to dynamically populate the the child nodes of the
treeview control, exactly how dynamic do you need it to be. I believe the
TreeViewControl can be bound to any XML data source not just a
SiteMapDataSource. Also this guy has written an SQL Site Map Data Providor
http://msdn.microsoft.com/msdnmag/is...02/WickedCode/

"Greg Ramsey" wrote:

> Thanks for the info. That's what I was afraid of. I think I'm in a
> catch-22.. . . any suggestions you have would be greatly appreciated. I'm
> using a treeview on my master page, and depending on the selected node, I
> want to display data into the contentplaceholder. Some of the "base" nodes
> of the treeview are static, and I can enter a "navigateurl" into those at
> design time. Unfortunately, once I enter a navigateurl property for the
> node, the SelectedNodeChanged event doesn't fire, so I'm not able to
> "dynamically" populate the children of that node. . . . . .. defining the
> entire tree at inital load time of the masterpage would be a bit of a
> challenge, and would definitely take a considerable amount of time for the
> page to load. ..
>
> I'll have to be more creative. . . . .
>
>
>
>
>
> "clickon" <> wrote in message
> news:3450C01C-50E2-45CD-B892-...
> >I don't think it is possible from your description you seem to be thinking
> >of
> > master pages back to front. You can however programatically change the
> > master page that a content page is using. If you want to change the
> > content
> > page and keep the master page the same this is simply two different aspx
> > pages that both use the same master page and you just link to them in the
> > normal way.
> >
> > "Greg" wrote:
> >
> >>
> >> How do I programmatically load an .aspx page into the contentplaceholder?
> >> Similar to what would happen in the "navigateURL" property when clicking
> >> on
> >> a hyperlink on the master page. . .
> >>
> >> ASP .NET 2.0
> >>
> >>
> >> Thanks,
> >> Greg
> >>
> >>
> >>

>
>
>

  Reply With Quote
Old 04-17-2006, 03:48 PM   #5
dassyms
 
Posts: n/a
Default Re: MasterPage - ContentPlaceHolder - How to navigate to the Conte

Hi i am also facing a similar to the above pblm.
i wanna populatea dynamic tree view control, with checkboxes added in
child / grand child nodes.
How can i implement databind using sql server 2005 dbase.
am having a group as a root under this group dff. depts
each dept.mnts has child deptmnts etc.
any help is apreciated



Das Dexterity

*** Sent via Developersdex http://www.developersdex.com ***
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump