application object
-
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
-
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
<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 -
<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 pageApplication 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
-
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
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