Home Search Member List Faq Register Login  
UltimateSitemap
RenderControl

Thread Starter: wunderleyg   Started: 04-26-2008 9:33 AM   Replies: 3
 Karamasoft Support Forums » General Discussions » UltimateSitemap » RenderControl
 Printable Version    « Previous Thread   Next Thread »
  26 Apr 2008, 9:33 AM
wunderleyg is not online. Last active: 10/21/2010 8:16:45 AM wunderleyg

Top 10 Posts
Joined on 04-04-2008
Posts 47
RenderControl
I am trying to reload my SiteMap without having to use a PostBack to the VB.  With all other HTML controls, I am able to do this using AJAX and Java Script.  I use "RenderControl(HtmlTextWriter)" in order to send the controls from the VB to the Java..  However, when I try this with the SiteMap, I get "Object reference not set to an instance of an object.  This occurs after I have already declared my SiteMap in the VB and set all of its parameters that I needed (including the XML Source). 

What else do I have to do to be able to use this method of loading the SiteMap?


  
  26 Apr 2008, 9:47 AM
wunderleyg is not online. Last active: 10/21/2010 8:16:45 AM wunderleyg

Top 10 Posts
Joined on 04-04-2008
Posts 47
Re: RenderControl
I would also be happy if I was just able to send the XML source to the Java Script and set the SiteMap source there.  Is this possible?

  
  26 Apr 2008, 2:29 PM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: RenderControl
If you send us your sample app in a zip file we can take a look at it in our test environment.
  
  28 Apr 2008, 7:20 PM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: RenderControl
Is there any specific reason why you create your UltimateSitemap control dynamically in your page? If you place an UltimateSitemap control in your page, you can easily populate its content as you did. If you really need to create it dynamically, you can use the following:
 
 
instead of BodyTree.RenderControl(htw)

  
 Page 1 of 1 (4 items)
Karamasoft Support Forums » General Discussions » UltimateSitemap » RenderControl

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.