This is a migrated thread and some comments may be shown as answers.

[Solved] FileUpload event - can I pass a variable back to the server?

1 Answer 135 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David Hodges
Top achievements
Rank 1
David Hodges asked on 30 Mar 2009, 03:52 PM
I understand that the RadEditor's FileUpload event runs in its own context.
That means that ViewState is uninitialized so I can't pass variables that way.
I want to pass the id of the current user so that I can make a database entry that says who uploaded the file.
How can I pass the id within the context of the FileUpload event?

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 02 Apr 2009, 04:01 PM
Hi David,

You can achieve this by using the Session object. This object is unique per user, and is visible both the editor and its dialogs. As of Q1 2009 dialogs' Session is enabled, and you can use it right away.

The earlier releases have their Session disabled by default (so as to avoid problems in web farm scenarios) - but you can easily enable Session for the dialogs, as described in the following article:
http://www.telerik.com/support/kb/aspnet-ajax/editor/session-in-dialogs.aspx


Best regards,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
David Hodges
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or