Got integration done, but now SaveTemplate.aspx is not working

Last post 06-02-2006, 4:10 PM by Captain Wayne. 6 replies.
Sort Posts: Previous Next
  •  06-02-2006, 2:53 PM 19759

    Got integration done, but now SaveTemplate.aspx is not working

    With the integration complete (and everything works so far) except when the user tries to save the chat log the child window displays error:
     

    Server Error in '/' Application.

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30205: End of statement expected.

    Source Error:

    Line 1:  <%@ Page ValidateRequest="false" %>
    Line 2:  <script runat="server">
    Line 3:  protected override void OnInit(EventArgs args)
    Line 4:  {
    Line 5:  	base.OnInit(args);

    Source File: http://localhost/CuteSoft_Client/CuteChat/SaveTemplate.Aspx    Line: 3
     
     
    Did I break something along the way?
     
    Wayne
     
     
  •  06-02-2006, 3:00 PM 19760 in reply to 19759

    Re: Got integration done, but now SaveTemplate.aspx is not working

    Wayne,
     
    >>With the integration complete (and everything works so far)
     
    Congratulation! If you get any chance, please let me know what we can do to improve the integration guide based on your experience.
     
    >>except when the user tries to save the chat log the child window displays error
     
    Have you modified the SaveTemplate.Aspx file?
    Can you post the code of SaveTemplate.Aspx?
     
     
     

    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

  •  06-02-2006, 3:06 PM 19761 in reply to 19760

    Re: Got integration done, but now SaveTemplate.aspx is not working

    First: Yes - the integration guide could use a LOT of work. I'd be happy to put something together based in my experience using Visual Studio.NET 2003. I'll send somehting up next week (as time permits).
     
    Second: No, I did not modify the file. Here's the code...
     
    ---
    <%@ Page ValidateRequest="false" %>
    <script runat="server">
    protected override void OnInit(EventArgs args)
    {
     base.OnInit(args);
    }
    string postedhtml;
    protected override void OnLoad(EventArgs args)
    {
     base.OnLoad(args);
     
     if(Request.HttpMethod=="POST")
     {
      postedhtml=Request.Form["input1"];
     }
    }
    </script>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
     <HEAD runat=server>
      <TITLE>Chat Log
       <%=DateTime.Now%>
      </TITLE>
      <base href='<%=Request.Url.ToString().Substring(0,Request.Url.ToString().LastIndexOf("/"))%>' />
      <link rel='stylesheet' href='<%=ResolveUrl("style.css")%>' />
      <link rel='stylesheet' href='<%=ResolveUrl("im_style.css")%>' />
      <link rel='stylesheet' href='<%=ResolveUrl("Skins/Normal/style.css")%>' />
     </HEAD>
     <%if(postedhtml==null){%>
     <BODY>
      <div id="chat_messagelist" style="padding:8px">
      </div>
      <form id="form1" method=post action="<%=Request.RawUrl%>">
       <input name="input1" type="hidden">
      </form>
     </BODY>
     <%}else{%>
      <script>
      if(document.referrer&&location.href.substring(0,10)=='<%=Request.Url.ToString().Substring(0,10).ToLower()%>')
      {
       //TODO: localization
       alert("To save the messages , please click the menu 'File' - 'Save Page As'");
      }
      </script>
     <BODY>
      <div id="chat_messagelist" style="padding:8px">
       <%=postedhtml%>
      </div>
     </BODY>
     <%}%>
    </HTML>
    ---
     
    Finally, my site is done in VB - I added the CuteSoft_Client folder to the project and said "no" when it wanted to create a codebehind file for all of the pages.
     
    Wayne
     
  •  06-02-2006, 3:13 PM 19762 in reply to 19761

    Re: Got integration done, but now SaveTemplate.aspx is not working

     Captain Wayne wrote:
    First: Yes - the integration guide could use a LOT of work. I'd be happy to put something together based in my experience using Visual Studio.NET 2003. I'll send somehting up next week (as time permits). 
     
    Thanks a lot!
     
    >>Finally, my site is done in VB
     
    Try change the first line <%@ Page ValidateRequest="false" %>
     
    to:
     
    <%@ Page ValidateRequest="false" Language="C#" %>
     
     
     
     
     
     

    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

  •  06-02-2006, 3:34 PM 19767 in reply to 19762

    Re: Got integration done, but now SaveTemplate.aspx is not working

    That fixed it!!!
     
    Would you advise that I change that line in all of the .aspx files in CuteChat folder?
     
    Thank you!!
    Wayne
     
  •  06-02-2006, 3:46 PM 19768 in reply to 19767

    Re: Got integration done, but now SaveTemplate.aspx is not working

  •  06-02-2006, 4:10 PM 19769 in reply to 19768

    Re: Got integration done, but now SaveTemplate.aspx is not working

    Thanks - that was the only file that nedded the 'C#' designation.
     
    Regards,
    Wayne
View as RSS news feed in XML