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

<%=%> now working in ImageManger.acsx

1 Answer 12 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Abhinandan Bansal
Top achievements
Rank 1
Abhinandan Bansal asked on 26 May 2011, 11:20 AM
Hi

I wanted to write some piece of server code inside the ImageManger.ascx file.For example i wanted to call some server side method by adding some simple <script runat="server">.and adding code withing <%%> But none of this seems to be working?

I also wanted to know why can not i access Session object within these user control?

i tried using codeblock etc but nothing worked Plz help?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 May 2011, 03:38 PM
Hello Abhinandan,

It is not possible to directly execute C# code in the external ascx dialogs of RadEditor. What you can do is to add a user control to the LinkManager.ascx. After that you will be able to write your C# code in the codebehind of the user control.

You can see how to execute server code in the external editor's dialogs in the following KB article: Displaying single upload control in the FileBrowser Upload manager.

Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Abhinandan Bansal
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or