Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: HTMLEditor Fails in Medium Trust [26772]

$
0
0
The HTML Editor control fails on post back in medium trust with a security exception.

In the LoadPostData method this line of code is failing:
post = postCollection[ActiveModeId];
if (!string.IsNullOrEmpty(post))
{
ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture);
}

In the setter for ActiveMode the call to RefreshDesigner and ultimately _designer.UpdateDesignTimeHtml() is what is causing the failure.
Comments: Hi All, I created a quick work around by adding a Try Catch to the following line of code: ActiveMode = (ActiveModeType) Int64.Parse(post, CultureInfo.InvariantCulture); The line of code can be found in the EditPanel.cs file in the LoadPostData method. This quick fix works for me but has not been tested on other projects. Use at your own risk. Find ddl's attached with fix included. Thanks. Regards, Dale.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>