Hello,
How can I make the InsertImage button display the"Modify Image" popup message?
Currently everytime I click it, it opens up the current page on a popup window.
One more thing, how can I hide a toolbar button programmatically ?
Thanks
Some users ask for a workaround to use the image insert in a wizard. This worked for me. I hope there is an easier way. I had the htmleditor on the second step of my wizard.
in the Page_Load of my page:
if
(!IsPostBack) { .....
// Load form for second step and move directly to second step
LoadCourseSlideForm();
wzdCourseBuilder.MoveTo(wzdCourseBuilderStep2);
On the user control of my second step, which hosts the html editor:
protected void Page_Load(object sender, EventArgs e){
txtCourseSlideHtml.UploadedFilesDirectory =
String.Format("/TiresCourseFiles/CourseFiles/CourseId_{0}"
, _psCourseId);}
if (!IsPostBack){
// So the webHtmlEditor's insertImage button will work
if (!txtCourseSlideHtml.IsPostbackFromUpload){
// Call public method on the page that will move back to step 1
((Trilogy.Tires.Training.Online.
.Page)).MoveToStepOne();
To get upload image the WebHtmlEditor uses its own internal async postback. When server gets that request, then it has state similar to the very first load of page. If WebHtmlEditor is found (and created), then WebHtmlEditor supresses default response of server and creates its own special response stream which can be interpret on client by WebHtmlEditor. Otherwise, server generates its default response stream and image-upload fails. There is no work around to get around that limitation.
Viktor Snezhko"] As I said, the condition for upload is create and show editor (Visible != false) on initial load (this.IsPostBack == false). So, if WebHtmlEditor raises its async request for upload data, the server should be able to recreate instance of editor. Later on, if view/wizard hides/shows editor, then it should be ok, but on the very first load, editor should be visible.
As I said, the condition for upload is create and show editor (Visible != false) on initial load (this.IsPostBack == false). So, if WebHtmlEditor raises its async request for upload data, the server should be able to recreate instance of editor. Later on, if view/wizard hides/shows editor, then it should be ok, but on the very first load, editor should be visible.
Is there a workaround to use the WebHtmlEditor in FormView / MultiView Etc ? Why is it that the instance can't be recreated if put in a FormView ?
I really would like to use it WebHtmlEdit as a control instead of dedicating a page to it.
Thanks in advance
Hi,
That is probably a security problem. Try to modify properties of directory which is used by WebHtmlEditor, like "Share this folder", give "Security" persmission access to ASPX and maybe to Everyone. Look at properties of wwwroot.
hello dear friend...i using the Infragistic's WebHtmlEditor in my sample..In that ,while uploadig the image using the InsertImage Icon,the image opens in my system ,but it cannot opened in any other systems..how can i resolve this problem.please help me...