Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: What can cause loosing the session when using AjaxUploader?
Re: What can cause loosing the session when using AjaxUploader?
10-20-2009, 11:18 AM
cutechat
Joined on 07-22-2004
Posts 2,332
Re: What can cause loosing the session when using AjaxUploader?
Reply
Quote
Pierre,
Does your code make directory or something let the ASP.NET restart ?
Please try this :
<%@ Page Language="C#" %> <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> public string SessionValue { get { object val = Session["SessionValue"]; if (val == null) { val = Guid.NewGuid(); Session["SessionValue"] = val; } return val.ToString(); } } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <%=SessionValue %> <br /> <CuteWebUI:UploadAttachments ID="attachment1" runat="server"> </CuteWebUI:UploadAttachments> </div> </form> </body> </html>
Regards,
Terry
View Complete Thread