The problem of asp.net public variable declaration
1. A type of user, through the registration type, by clicking the Registration button to enter the registration interface, and then enter the user's basic information, determined to meet the type a user needs.
2.B users, through their own mailbox landing, as long as the input of their own username and password can enter the system, but the need for such users to modify the personal data.
So log in when you need to declare a public variable to differentiate it, such as Userflag variable, publie int userflag=0;//default is a type of user, so when type B user input username and password login, speak userflag=1 assigned value of the past, and pop-up prompts to modify the Type B User Profile dialog box, but after the tracking regardless of type B users are always userflag=0 after landing.
3. Declare this type to be invalid for public variable, so use session to assign value, B class user assigns value after landing session["Userflag"] = "1";
4. Then judge if (session["Userflag"]!= null && session["Userflag"]. ToString () = = "1") to write the pop-up dialog box information.