Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 3rd, 2009, 05:39 AM
Authorized User
Join Date: Feb 2006
Location: jaipur, rajasthan, India.
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default Session Value reset to 0 on submit


i have one strange problem with session object

when i press submit, my session values reset to zero

i am having two list box, dynamically updated

master List : contains form name
sub list : contains list of colleges depending on master list

its like :
form(named FormID) : Master list ->go button to populate sub list
sub list : contains all colleges depending of form
session("FormID)= request.form("FormID")

and i am updating this data into my db using

MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 129, 1, -1, MM_IIF(Session("userName"), Session("userName"), null))

MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 5, 1, -1, cdbl(Session("FormID")))

when checking into db first values gets Updated properly Session("userName"), but this Session("FormID) is updated with 'zero'

when checking values before submit button, it shows


and after sumit

dont know what is the prolem, i have tried to search at various websites, but could no get any clue..

kindly help me
thanks for your consideration


ashok sharma

Last edited by beetle_jaipur; March 3rd, 2009 at 05:41 AM..
Reply With Quote
  #2 (permalink)  
Old March 3rd, 2009, 04:16 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

Not showing us enough code to guess, but I would bet that it is your problem.

However, do remember that session variables do NOT work if cookies are not enabled in the browser.

If cookies ARE enabled, then you will have to show more code.
Reply With Quote
The Following User Says Thank You to Old Pedant For This Useful Post:
beetle_jaipur (March 4th, 2009)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reset the SessionID? akkad C# 2 October 24th, 2007 06:49 AM
How to submit the different data on single submit pushpa Classic ASP Databases 1 January 24th, 2007 07:10 PM
BackgroundImage reset ryan.thomson VB.NET 2002/2003 Basics 0 October 25th, 2005 08:39 AM
How can we submit a form without a submit butto phpsharma BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 October 20th, 2003 08:50 AM
reset password help nazra Classic ASP Databases 3 July 25th, 2003 09:24 PM

All times are GMT -4. The time now is 07:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.