display a TreeView in a modal Window

5 pts.
Tags:
ASP.NET
JavaScript
Modal window
TreeView
Web development
hi every one, i have a problem using a treeView in a modal window. the state is as follows: i put a TreeView on a web page called test1.aspx . set its data source value . when i view this page from an IE window every thing is going well but when i open test1.aspx using window.showModalWindow("test1.aspx",..... there is following error: TreeView2_Data is undefined from the following line: TreeView_ToggleNode(TreeView2_Data,0,TreeView2n0,' ',TreeView2n0Nodes) the above script line is generated by asp.net .

Answer Wiki

Thanks. We'll let you know when a new response is added.

Is the DataSource declared in test1.aspx? If it’s a global set in the page that launches the popup, then it will not be in scope for the new window. You can pass it as the second “args” parameter to showModalDialog.

Does your DataSource reference an absolute URL or a relative one? Is the DataSource actually getting its data in the first place? If it’s a remote source on the same domain try making the reference a path from root if you are using just the file name.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following