Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. application object

application object

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nethelplearning
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    santhosh padamatinti
    wrote on last edited by
    #1

    Hi, I am beginner to ASP.Net. I just learned Application[] class and session[] class. My question is which one is better? And where i have to use application[] object and where i have to use session[]. I have one more doubt: I have two asp pages, Page 1: take the choice from the user where i have three check boxes. check 1. person names start with 's' check 2. person names starts with 'a' check 3. person name starts with 'g'. So page one is contains above three check boxes. When user selects check box and submitted, it goes to second page where i have to write code for get the values from data base based on check boxes user selected. For this kind of problem can i use Application[]. Or any other method to write solution for this..... Thanks in advance .....

    To invent something, you need a mountain of junk in your mind. ---------------------Thomas alva edison

    M E 2 Replies Last reply
    0
    • S santhosh padamatinti

      Hi, I am beginner to ASP.Net. I just learned Application[] class and session[] class. My question is which one is better? And where i have to use application[] object and where i have to use session[]. I have one more doubt: I have two asp pages, Page 1: take the choice from the user where i have three check boxes. check 1. person names start with 's' check 2. person names starts with 'a' check 3. person name starts with 'g'. So page one is contains above three check boxes. When user selects check box and submitted, it goes to second page where i have to write code for get the values from data base based on check boxes user selected. For this kind of problem can i use Application[]. Or any other method to write solution for this..... Thanks in advance .....

      To invent something, you need a mountain of junk in your mind. ---------------------Thomas alva edison

      M Offline
      M Offline
      m dhu
      wrote on last edited by
      #2

      <blockquote class="FQ"><div class="FQA">sampath-padamatinti wrote:</div>where i have to write code for get the values from data base based on check boxes</blockquote>

      //Button click Event in page1
      // code for checking check box
      then Redirect to 2nd page use query string for id of check box...

      //2nd page page load event
      get the values from db by using the id of check box from 1st page

      C 1 Reply Last reply
      0
      • M m dhu

        <blockquote class="FQ"><div class="FQA">sampath-padamatinti wrote:</div>where i have to write code for get the values from data base based on check boxes</blockquote>

        //Button click Event in page1
        // code for checking check box
        then Redirect to 2nd page use query string for id of check box...

        //2nd page page load event
        get the values from db by using the id of check box from 1st page

        C Offline
        C Offline
        Chetan Patel
        wrote on last edited by
        #3

        Application is Shared among all the users so if you want to seperate the storage for each user use Session Ex.// If you want to get Count of All Users then use Application And if you have to store UserName then use Session

        Best Regards, Chetan Patel

        1 Reply Last reply
        0
        • S santhosh padamatinti

          Hi, I am beginner to ASP.Net. I just learned Application[] class and session[] class. My question is which one is better? And where i have to use application[] object and where i have to use session[]. I have one more doubt: I have two asp pages, Page 1: take the choice from the user where i have three check boxes. check 1. person names start with 's' check 2. person names starts with 'a' check 3. person name starts with 'g'. So page one is contains above three check boxes. When user selects check box and submitted, it goes to second page where i have to write code for get the values from data base based on check boxes user selected. For this kind of problem can i use Application[]. Or any other method to write solution for this..... Thanks in advance .....

          To invent something, you need a mountain of junk in your mind. ---------------------Thomas alva edison

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          you can use Session object to passing parameter among pages. if you want to share this info for all users in your application, the Application is the choice.

          8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups