Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Form Web Part Problems with ASP:Treeview

  Asked By: Mayur Rane         Date: Sep 12, 2009      Category: Sharepoint      Views: 638
 

I just created a webpart that has a simple input box in it that posts
back to the page. All in the webpart is working fine. But on this same
page for navigation I have a ASP:Treeview setup that is using a custom
sitemap file.

When I first load the page it all works fine. But once I submit the
webpart form, the message: 'There was an error in the callback.' comes
up. Instead of the full Treeview. Whats odd is that the First level of
the Tree loads. But when I click to expand the tree, it just continues
to write that error out instead of expanding it. Is there a particular
way I should be posting this form to the page?

Tagged:              

 

4 Answers Found

 
Answer #1       Answered By: Lee Dickerson          Answered On: Sep 12, 2009       

Is the Treeview being added to the controls collection in
CreateChildControls? How about the textbox?

 
Answer #2       Answered By: Aditiya Kapale          Answered On: Sep 12, 2009       

To be honest, I added the TreeView just using SP Designer. I tried to
dig to find the source for this but couldn't (I'm just a beginner). So
I'm not sure how the Treeview is being added.

For the textbox the controls are added in CreateChildControls.

By the way, thanks for responding. I attended your class in Atlanta a
month+ ago and I can't imagine a better preparation for SP Dev.

 
Answer #3       Answered By: Cristopher Gould          Answered On: Sep 12, 2009       

What happens if you reghost the page.

 
Answer #4       Answered By: Selena Glenn          Answered On: Sep 12, 2009       

Of course, the simple  just restart it fix.

 
Didn't find what you were looking for? Find more on Form Web Part Problems with ASP:Treeview Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].