By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,286 Members | 2,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,286 IT Pros & Developers. It's quick & easy.

Sessions, and passing data to another page

P: 18
hi guys,
i'm building a web site where i have a lot of pages, in the default page i'm having a menu in this menu i have a callendar a drop down list, in the callendar i need to remember the date selected by the user and for the drop down list i have to remember the value selected by the user, these values i need them to query the database.the first time it works great the selected item in the drop down list can be read by any other page(in different pages i'm taking these values and displaying different graphs and table) but when i change the selected value in the drop down list in the default page, it does not change for the other web pages. i was thinking of storing the whole page in a session, but i do not know how to implement this. or may be you have some other suggestions so when i change the value in the default page it will also passed to the any other page i need and then the change the values for these pages.

any help will be very appreciated.
it is realy starting to annoying me ;(

thanks
Mar 13 '07 #1
Share this Question
Share on Google+
2 Replies


kenobewan
Expert 2.5K+
P: 4,871
If you are storing the information in the database, I don't believe that you need to store it again. Connecting to the database in the other pages should be sufficient. If they are still displaying the old data, check your use of postback in the page load.
Mar 14 '07 #2

P: 18
thanks for the post, first of all i'm not using a database. second i have a postback in my program, this is what i have:
if (!IsPostBack) { } in the load page and if i take it off from the program then if i select a value from the drop down list it is not there when the page refresh, it will return the initial value and if i add the postback again then the vale selected from the drop down list will be remebered when the page refreshed.
any suggestion?!!!
thanks
Mar 14 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.