Custom Web Part + Back Button = Cannot Find Serverhttp://forums.asp.net/t/1060929.aspx/1?Custom+Web+Part+Back+Button+Cannot+Find+ServerFri, 19 Jan 2007 13:21:15 -050010609291522717http://forums.asp.net/p/1060929/1522717.aspx/1?Custom+Web+Part+Back+Button+Cannot+Find+ServerCustom Web Part + Back Button = Cannot Find Server <p>Hello,</p> <p>I've written a Custom Web Part&nbsp;in .NET 1.1&nbsp;for Sharepoint 2003. The Webpart works well apart from one issue which I can't get my head around:</p> <p>If I make a change to the Webpart that requires a postback (ie. click a button) and then navigate away from the page (for example, to another Sharepoint area). When I try to return to the page with the back button Internet Explorer throws the error:</p> <h1 id="textSection1" style="font:13pt/15pt verdana; color:black"><span id="errorText">The page cannot be displayed .... <h2 id="IEText" style="font:8pt/11pt verdana; color:black">Cannot find server or DNS Error<br> Internet Explorer </h2> <p style="font:8pt/11pt verdana; color:black">I'm crap with my error codes, is this 404? Well either way it's a common, primative error page. If I use the back button without making any changes to the Webpart then I can use the back button without any ugly errors. Since this appears to be a server error and not an ASP error I'm not really sure how to go about debugging this? Has anyone seen anything like it before? I would guess that it's something going on with the Viewstate but not being an expert I don't really know. </p> <p style="font:8pt/11pt verdana; color:black">The web part is nothing complex. It makes a few calls to a SQL database and has a few interchangeable controls (all created at OnInit &amp; registered&nbsp;but only some rendered) that could be tripping it up. The only slightly unusual element is that I'm using a Javascript TreeView class to provide GUI functionality. This tree is created from a script block that is generated by .net on runtime. I wouldn't imagine that this would cause the above error but maybe?</p> <p style="font:8pt/11pt verdana; color:black">&nbsp;Any light you could shed on this would be much appreciated!!</p> <p style="font:8pt/11pt verdana; color:black">&nbsp;Cheers,</p> <p style="font:8pt/11pt verdana; color:black">Olly</p> </span></h1> 2007-01-08T13:49:17-05:001539578http://forums.asp.net/p/1060929/1539578.aspx/1?Re+Custom+Web+Part+Back+Button+Cannot+Find+ServerRe: Custom Web Part + Back Button = Cannot Find Server <p>Not really fixed this, I think it was a problem with the ASP pages expiring on the server. It's all a bit over my head so I'm afraid you will have to look elsewhere for a solution. I think SharePoint does handle this error in a friendly way but at the time I have Custom Errors off so was getting a big ugly error page.</p> <p>&nbsp;</p> <p>Cheers,</p> 2007-01-19T13:21:15-05:00