Re: Cookies and Events Problems

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Saunders (johnwsaundersiii)
Date: 12/19/04


Date: Sun, 19 Dec 2004 17:55:57 -0500


"ltt19" <ltt19@discussions.microsoft.com> wrote in message
news:913479DE-4234-48FE-BA87-D6B1094DAA12@microsoft.com...
> Hi Folks,
>
> I'm just beggining with asp.net, and I'm doing a webpage to learn it. In
> the
> main page, there is a text by default written in Portuguese, that the user
> can change it it English by clicking on a button. When you click in this
> button it writes a cookie with your chosen language, and then the page
> loads
> again to change the text. However I'm having two problems, first, the
> cookie
> doens't work, second, to fix the cookie problem, i marked each line of the
> below code with a breakpoint, then I noticed that when i click in the
> button
> the Page.Load event is raised then the Button.Click if raises after.. Why
> this? Is it really supposed to happen? I'm more preocupated with the
> second
> problem cause i'm used to windows appications and I was not expecting that
> this could happen.

Yes, Page_Load is meant to be raised before Click events. Take a look at
The ASP.NET Page Object Model
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-pageobjectmodel.asp?frame=true).

John Saunders



Relevant Pages

  • Re: Can I do this witout Cookies?
    ... problem - folks can have more than one email ... SSN or other identification number if the most reliable IF you can get ... people to trust you with the info. keying by multiple criteria could be ... stick with the cookie idea..... ...
    (microsoft.public.inetserver.iis.security)
  • Re: 3 questions on validation
    ... Hurled me a cookie without warning. ... "Passing HTML validation does not necessarly guarantee that the webpage is an overall good webpage or a well designed one." ...
    (comp.infosystems.www.authoring.html)
  • Re: how do I force secure ASP.NET session cookies?
    ... most folks use some variation of this in their ... that the browser only submits the cookie over an SSL ... My problem is that the ASP.NET session cookie (not the ...
    (microsoft.public.inetserver.iis.security)
  • Cookies and Events Problems
    ... and I'm doing a webpage to learn it. ... main page, there is a text by default written in Portuguese, that the user ... However I'm having two problems, first, the cookie ... Private Sub Page_Load(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Browsercookie mitnutzen
    ... ich würde gerne per HttpWebRequest&HttpWebResponse eine Webseite auslesen. ... ihre korrekte Anzeige einen Cookie braucht (weil es z.B. ein Member-bereich ... ich die Webpage auch manuell richtig ausgelesen bekomm....aber wie geht das? ...
    (microsoft.public.de.german.entwickler.dotnet.vb)