Click to See Complete Forum and Search --> : some 'basic' questions


bioS
10-08-2003, 10:24 AM
Hi,

I've tried for 3-4 days to develop my first ASP.NET application, and I have a few questions:

1) when working with 'include' <!-- #include virtual="..." -->, is there any way to include a page which has got codebehind ? (without getting an error saying that there can be only one page declaration)

2) I need to specify a LCID for Switzerland in the whole application. With traditionnal ASP, I used to specify Session.LCID=4108 in a header which is always included in my pages. Here, when the date strings are build in codebehind, it isn't formatted correctly. (still US) As if codebehind doesn't see the specified LCID. How do you resolve it ?

3)And last but not least, the few pages I've done until now work well if you click on the links. But if I push the 'Back' button, it makes my IE6 crash ! (I've IE6 with SP1) Any idea...!? (http://www.alaxos.com/gallery)

Thanks a lot if you can answer one of those questions( :) ), or even all ( :D ).

PeOfEo
10-08-2003, 03:21 PM
what are you using for your asp.net, vb? Use normal redirects for the ie thing, if it is just a regular anchor tag it should work fine but if you are using a whole bunch of this is visible this isnt it could potentially cause a problem witht he page expireing and such

bioS
10-08-2003, 03:49 PM
Everything is written in C#.

I'm not sure to really understand your answer for the problem with ie. What do you mean with 'use normal redirect' ?

All the links are normal one once the page is created. And I dont have many things which can be Visible or not. Actually there isn't many things at all on the page.

PeOfEo
10-08-2003, 09:27 PM
Could it just be your ie is screwed up then? Does ie crash on other sites for you? You can always download it again for free from www.microsoft.com By normal redirects I mean if you are doing things like it does not actually redirect you but it swaps out objects and all thats where you get pages expireing and data needing to be resent and ie could always choak on that or something.

bioS
10-09-2003, 04:22 AM
I don't have this problem on other sites. Only on mine...! I found out a way to make my ie crash, but I don't know why... Great !

I understand what you mean by normal redirect now. And I maintain what I wrote, they are very simple pages (but all with access to a db), with header and footer, and a table build dynamically (in codebehind). And those tables contain only links to other pages.

Regarding my second question, if someone has the same problem, I resolved it by creating a custom page (pageX.aspx) which inherits from System.Web.UI.Page, and all my pages will inherit from pageX.
So by putting Session.LCID=4108 in pageX, every pages have the right LCID in the codebehind, without specifying it again. :-)

PeOfEo
10-09-2003, 05:23 PM
well Ie doesnt touch any of that stuff though, thats the weird thing I mean ie is only touching your html and java script out put. Your browser never sees the data base (if it saw the data base it would give the user to query it on their own, huge security risk). Is this page running off of your box or are you on a host? It would be something to talk to server admin about if your on a host.

bioS
10-10-2003, 03:39 AM
Yes, I know that ie is only a client and that it doesn't see the server side. So, as you, I finally thought it had to do with the html code.

Therefore I'm redoing those pages with little differences in the look, and for the moment, it seems ok. The dll which is responsible for this problem seems to give grey hair to many people, as I've seen on different places on the net...

But thanks a lot for your help !

PeOfEo
10-10-2003, 08:51 PM
Oh you did not mention a dll lol. This sheds more light