Yes that was it. I ended up using the prerender event. Thanks
jpegny
Posts
-
Session being lost in a simple test webpage -
Session being lost in a simple test webpageI've haven't set either of those, everything is left to default in web.config, the only thing I enabled was debugging. From my readings the default of inProc should be sufficient.
-
Session being lost in a simple test webpageHi, I'm using visual studio 2008 and it's built in development webserver, with C# as the codebehind language. I'm trying to make a simple webapp in which you click a button which sets a session var (that part is working) and in the pageload i'm checking to see if it's a postback and if the session is not null. problem is that every time the session is null. I have done this successfully before with visual studio 2003 and on IIS. Here is the relevant code:
protected void Button1_Click(object sender, EventArgs e) { Session["testvar"] = 25; /* if (Session["testvar"] == null) Response.Write("s is null"); else Response.Write("s is NOT null"); */ } protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { int x; //x = (int)Session["testvar"]; if (Session["testvar"] == null) Response.Write("test var is null"); else { x = (int)Session["testvar"]; TextBox1.Text = x.ToString(); } } }
Any help is appreciated. Thanks -
How to fix sp1 breaking asp.net remote development on windows 2003??That link is dead
-
How to fix sp1 breaking asp.net remote development on windows 2003??No, the problems described in the above article are not occuring on my server.
-
How to fix sp1 breaking asp.net remote development on windows 2003??Hello all, I'm in the middle of setting up a windows 2003 server for asp.net (with vb.net 2003) remote development/deployment. The problem is that as soon as I install service pack 1 on windows 2003 I can no longer remotely develop asp.net apps with vs.net 2003. I have set-up servers with all the patches except service pack 1 and they work fine but as soon as I install service pack 1 it breaks the remote development of asp.net. The error I get is that vs.net is "unable to add" files such as the project file (.vbproj) to the remote project. I have made a screenshot of this error , it is at http://www.matcmp.ncc.edu/error-after-sp1.jpg I'm trying to upload via frontpage extensions. I have double checked the IIS settings and front page extensions are enabled and so is asp and asp.net. I have also tried installing all the other updates after sp1 and running security config. wizard and making sure all the ports and iis extensions are enabled but still same error. I have also tried turning off firewall. Some files do get uploaded and a subdirectory does get created on the server but the error occurs and can't develop after that. I know that one recommended way is to develop on local instance of IIS and then upload the project but this won't work in my case because this server is for a college class and students have to be able to work from home. Thanks in advance for any help. -Steve
-
How to fix sp1 breaking asp.net remote development on windows 2003??I've looked at that page and nothing usefull regarding this problem is there. Are you referring to any specific "key feature"?
-
How to fix sp1 breaking asp.net remote development on windows 2003??Yes I tried SCW and it did not help, same error. I also tried installing all the updates, remaking the policy and applying it. Also tried disabling the firewall alltogether, same result. Some files do get upload and the remote directory does get made but the error still occurs and the project can not be developed on.
-
How to fix sp1 breaking asp.net remote development on windows 2003??Hello all, I'm in the middle of setting up a windows 2003 server for asp.net (with vb.net 2003) remote development/deployment. The problem is that as soon as I install service pack 1 on windows 2003 I can no longer remotely develop asp.net apps with vs.net 2003. I have set-up servers with all the patches except service pack 1 and they work fine but as soon as I install service pack 1 it breaks the remote development of asp.net. The error I get is that vs.net is "unable to add" files such as the project file (.vbproj) to the remote project. I have made a screenshot of this error , it is at http://www.matcmp.ncc.edu/error-after-sp1.jpg I'm trying to upload via frontpage extensions. I have double checked the IIS settings and front page extensions are enabled and so is asp and asp.net. I know that one recommended way is to develop on local instance of IIS and then upload the project but this won't work in my case because this server is for a college class and students have to be able to work from home. Thanks in advance for any help. -Steve