How to insert the values from the aspx page on a specific location (cursor position) on the editor.?

Last post 12-11-2008, 9:01 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  12-11-2008, 8:00 AM 46808

    How to insert the values from the aspx page on a specific location (cursor position) on the editor.?

     
    Hi Adam,
     
    to open a page from custom toolbar button is done by using following line of code.

    System.Web.UI.WebControls.Image Image1 = new System.Web.UI.WebControls.Image();

    Image1.ToolTip = "Insert something";

    Image1.ImageUrl = "CuteSoft_Client/CuteEditor/Images/face2.gif";

    Image1.CssClass = "CuteEditorButton";

    SetMouseEvents(Image1);

    Image1.Attributes["onclick"] = "BLOCKED SCRIPTgetsomething()";

    tc.Control.Controls.Add(Image1);

     
    Here The getsomething() method will open something.aspx page in popup. this page returns some string which needs to be paste on a specific plocation (cursor position) on the editor.
     
    now the problem is, How to insert the values from the aspx page on a specific location (cursor position) on the editor.?
     
  •  12-11-2008, 9:01 AM 46810 in reply to 46808

    Re: How to insert the values from the aspx page on a specific location (cursor position) on the editor.?

    Add a Cross Browser Modal Dialog Box to Cute Editor
    How to create a custom button(client side) which displays a dialog?( C# | VB )
    This example demonstrates how easy it can be to add your own client side buttons to the CuteEditor by creating a Cross Browser Modal Dialog Box.
     
    Please check this example. The source code of this example can be found in the download package. It's under the adcanced topic section.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML