Problem with creating new frame and update panel

Last post 01-11-2007 1:35 AM by Ji Cheng Wang - MSFT. 1 replies.

Sort Posts:

  • Problem with creating new frame and update panel

    01-09-2007, 11:07 AM
    • Loading...
    • przemekn
    • Joined on 01-09-2007, 3:27 PM
    • Posts 1

    Hello

    I'm trying to convert my application to work without postbacks. I want to do it with a minimal cost (application is sufficiently extended). I've decided to use UpdatePanel and it almost work but i've got two problems:

    1) There is some menu from which I run "windows" (create some new frames). Menu work fine with update panel, new frames creates well. The problem is when i'try to run new frame from other (existing) frame (each frame have own updatepanel). The code, and scripts are exactly the same, but menu works and "from frame" don't. The new frame is always creating by Page.Responce.Write("and ther is some javascript")

    The error message i'm getting is:

    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
    Details: Error parsin near '<script language=jav'

    I think it's some problem with scriptmanager, becouse executing first time works. Maybe you have meet similar problem.

    2) I'm adding some "windows" (controls) on MainPanel (which is placed on updatepanel - and it's onle change i've made). Each of them have some script and they can be moved on page. Before adding update panel it worked well but now they dock somewhere on MainPanel and there is no chance to move them. There is no error they are just unmoveable. Maybe you know such problem but better the solution ;)

    I'll be gratefull if someone can interest my post and try to help me.

    Thanks

  • Re: Problem with creating new frame and update panel

    01-11-2007, 1:35 AM
    Answer
    For your two questions,I'd like to share my ideas with you.
    1.Page.Responce.Write is not supported by Ajax framework.If you place frames on an asp:UpdatePanel,you can not call Response.Write method.
    2.If you place some asp:Panels on an asp:UpdatePanel,try to specify post back for it through the triggers of the asp:UpdatePanel.This should work fine.
    Wish the above two can help you.
    Sincerely,
    JiCheng Wang
    Microsoft Online Community Support

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter