Cast problem in event

Last post 11-30-2004, 4:35 AM by Wanja. 3 replies.
Sort Posts: Previous Next
  •  11-26-2004, 8:37 AM 2600

    Cast problem in event

    I get the error "Response is not available in this context" when I try to cast the object sender to CuteEditor.Editor when the Unload event is triggered. I try to put the editor.text on the screen by calling the Response.Write function. Any ideas why this is?
  •  11-26-2004, 11:29 AM 2603 in reply to 2600

    Re: Cast problem in event

    Wanja:
    Could you post a few of code ?

    What is the 'Upload' event ? a button event ?
    Regards , Terry .
  •  11-29-2004, 3:26 AM 2656 in reply to 2603

    Re: Cast problem in event

    Terry,



    The Unload event occurs when the server control is unloaded from memory.

    Regards, Wanja.
  •  11-30-2004, 4:35 AM 2699 in reply to 2656

    Re: Cast problem in event

    So I try to get the Text when the Unload event occurs. When I request this, I get the error, but the editor.ID however is available! Where did my text go?

View as RSS news feed in XML