Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 July 13th, 2005, 02:38 AM
Registered User
 
Join Date: Jun 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default retrieve values of __VIEWSTATE

Hello

Please help me in my problem. I have two .aspx page. My requirements is really straightforward but since im new into asp.net its really hard for me.
Okay, my first.aspx compose of two dropdownlist and 1 button.

The first dropdownlist is for the employee name, and the second dropdownlist is for the department. And a button submit. The page is enable for ViewState. And i know that all the values selected from my dropdownlist are save into hidden __VIEWSTATE. When i click the button, what i want is to display the selected values from my dropdownlist to my second.aspx page. And i want to use the __VIEWSTATE to retrieve the values..

Please how help me how can i do this. How can i decode the content of my __VIESTATE?

Thanks.





 
Old July 13th, 2005, 02:56 AM
Authorized User
 
Join Date: Feb 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ashokparchuri Send a message via Yahoo to ashokparchuri
Default

hi,

   Why don't u try to do it with sessions or cookies...your requirement is so simple...

    I am not sure whether we can decode <viewstate> from another page..any way if you go for sessions it will be secure and will fullfil your requirement...

    may i know why do u want to use only view state...?

-Ashok Parchuri
 
Old July 13th, 2005, 03:01 AM
Authorized User
 
Join Date: Feb 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ashokparchuri Send a message via Yahoo to ashokparchuri
Default

Hey,

   Look at the following link if u need any help for sessions/response.redirect methods...

http://p2p.wrox.com/topic.asp?TOPIC_ID=32565

   I suggest you to use sessions insted of response.redirect...sessions are quite good when security matters..

   Hope this helps-Ashok Parchuri





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve values from gridview rojiin ASP.NET 2.0 Basics 1 June 26th, 2007 07:32 AM
How to retrieve checkbox values which are checked SMM Classic ASP Professional 2 June 3rd, 2007 06:45 PM
retrieve attribute values from CSS(from class) anujrathi ASP.NET 2.0 Professional 1 May 7th, 2007 01:57 PM
loop values and text box values move mateenmohd Classic ASP Basics 2 April 5th, 2005 11:33 PM
How to retrieve multiple values at run time using anshul21 Crystal Reports 1 May 31st, 2004 10:36 PM





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