allowing server side code

Last post 05-26-2010, 8:45 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-25-2010, 10:05 PM 61304

    allowing server side code

    Hi,
     
    I m a new user of cute editor for asp.net
     
    I followed the instructions and its working great. Now, I wanna allow my client to paste server side code into cuteeditor. 
    In my aspx.cs file 
    <CE:Editor id="Editor1" runat="server" AllowEditServerSideCode="true" />  


    now, when I am inserting the following asp.net code  in cuteeditor
     
    <%@ Page Language="C#" %>
                                           <%@ Import Namespace="System.Net" %>
                                           <%@ Import Namespace="System.IO" %>
                                           <%@ Import Namespace="System.IO.
    Compression" %>
                                           <%
                                           String wurl = "http://widgets.ziftsolutions.com/hp.ziftsolutions.com/html/8a7c9fef27160c64012717bf026e0a2b";
                                           if (Request.QueryString.Get("zPage") != null)
                                           wurl += "/" + Request.QueryString.Get("zPage");
                                           HttpWebRequest Http = (HttpWebRequest)WebRequest.Create(wurl);
                                           HttpWebResponse WebResponse = (HttpWebResponse)Http.GetResponse();
                                           Stream responseStream = WebResponse.GetResponseStream();
                                           StreamReader Reader = new StreamReader(responseStream, Encoding.Default);
                                           Response.Write(Reader.ReadToEnd());
                                           %>
     
     
     
    I want, the resulting html of this asp.net code to be present in my  file. However, this code is pasted as it is in my file...
    I m retrieiving the content of cuteeditor through Editor1.text in my aspx.cs file...
     
    Please help...

     
  •  05-26-2010, 8:45 AM 61329 in reply to 61304

    Re: allowing server side code

View as RSS news feed in XML