What is cross page post back?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • furqi
    New Member
    • Dec 2009
    • 21

    What is cross page post back?

    I am currently a beginner in asp.net i am currently watching msdn videos of "beginners developers learning" i am on the topic of application state so i got confused on a topic of "cross page postback" can anybody explain what that is
    and another thing is "profile" object we use it in web.config file

    1. what is cross page post back?
    2. what is web.config file?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Cross page postback is when you have one page in your website submitting to another page in your website. I've never used it personally...

    The web.config file contains all of the information regarding the configuration of the website. It contains things like what type of authentication your site uses, connection strings used to connect to databases, configuration details indicating what to do when the site encounters an error and much more.

    -Frinny

    Comment

    • furqi
      New Member
      • Dec 2009
      • 21

      #3
      there is a profile object used in a video tutorial which i have can u tell me whatz that and what is the use of profile object there

      Comment

      • sanjib65
        New Member
        • Nov 2009
        • 102

        #4
        "In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application.
        Profiles allow you to manage user information without requiring you to create and maintain your own database. In addition, the ASP.NET profile feature makes the user information available using a strongly typed API that you can access from anywhere in your application.
        For example, you might want to store the user's postal code so that your application can offer region-specific information, such as weather reports. " -MSDN

        In your web.config file you type this:
        Code:
        <profile>
          <properties>
            <add name="PostalCode" />
          </properties>
        </profile>
        For example, your application's home page might contain a text box that prompts the user to enter a postal code. When the user enters a postal code, you set a Profile property to store the value for the current user, as in the following example:

        Code:
        Profile.PostalCode = txtPostalCode.Text;
        You can also use username instead of postalcode and use that username all along your site.

        Wish it works...

        Comment

        • furqi
          New Member
          • Dec 2009
          • 21

          #5
          well i got it thank you

          Comment

          Working...