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

  •  06-02-2006, 3:06 PM

    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
     
View Complete Thread