Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2007, 06:24 AM
Authorized User
 
Join Date: Jan 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default delay in retrieving values through session

hi all,
i have a web site that has a tree view, and in this view i have a lot of web sites, so in the defaul page you can choose a value from a drop down list, i did transfer this value in a session to the other pages. now the process is i need to choose first the value from the drop down list and then click on the link in the tree view to see the result of the web page, but if i click directly on the web page i see nothing because the value of the drop down list needed to query the database.
what i want is thet when you open the page you can see the result the first time, not choose the value from the drop down list( there is a value the first time the page load) it seems not reading it till the next time i choose another value. i hop if i can load the value of the default page first so ehrn i click on the page in the tree view i can see the results and the values.
i hop i'm making myself clear.

any help will be very appreciated.
thanks

 
Old March 14th, 2007, 06:48 AM
Authorized User
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sunnys Send a message via Yahoo to Sunnys
Default

hi
 as u want the default value of dropdown list u can use on the form load
session["test"]=ddlabc.selectedvalue.tostring() so that if it has a value will be assign to the session variable.
hope this will help.

 
Old March 14th, 2007, 08:02 AM
Authorized User
 
Join Date: Jan 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi my platform is visual studio 2005 .net framework version 2.x.
now when i open the default page it seems ok, but when i click on a page in the tree view the page does not remember the state of the default page. is there a way to initialize all the values in the default page when the page from the tree view clicked?!!!
the value of the drop down list is passed to the page in the tree view. for example if i clicked value of the drop down list is mode, if i click on another page the value will be there also but if a changed the value in the drop down list to code it will not changed in the page until i click the page again. the drop down list is in the master page and the the other page is in the content holder.
i hop this help understanding the situation.
thanks







Similar Threads
Thread Thread Starter Forum Replies Last Post
Session values to the Controls praveen.paspulate Classic ASP Basics 2 October 21st, 2008 10:43 AM
retrieving comma separated values from column abhishekkashyap27 SQL Server 2005 6 April 21st, 2008 09:27 AM
retrieving values with xsl Tomi XSLT 14 April 5th, 2007 02:07 AM
Need help in retrieving values from a loop ! back2grave XSLT 0 June 27th, 2006 05:29 PM
Get session values from a classes minhpx General .NET 3 August 9th, 2004 10:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.