|
Rank: Newbie Groups: Member
Joined: 7/6/2011 Posts: 5
|
Hello, I ve a grid running in callback mode and allows paging inside a user control. The user control is loaded at run time inside a placeholder embedded within a callbackpanel. The grid loads on page load but when i clicked on the next page of the grid, i get this error: Quote:You can not use document.write or document.writeln inside a CallbackPanel update block. Such call could completely clear out the current document that is being updated.
Why is this happening?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The error message indicates document.write has been called. You cannot call that during AJAX update.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 7/6/2011 Posts: 5
|
Hi,
i didn't use document.writeln in my code this error occurred when i clicked the next page link. Is it possible for me to embed a grid running in callback mode within a callbackpanel?
|
|
Rank: Newbie Groups: Member
Joined: 7/6/2011 Posts: 5
|
or can i have a nested callbackpanel on a page?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There are no restrictions on nesting CallbackPanel or Grid callback mode inside CallbackPanel.
Try to remove your dynamic loading code and see if that's the problem. There is no difference from a control's point of view as to dynamic loading or not; However ASP.NET requires your post back control tree and the original control tree to be identical in order to fire server event correctly.
If the problem continues, please try to create a test page that demonstrates the problem. We will be happy to take a look as soon as we have that.
Thanks
|
|