Wrox Programmer Forums
| 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 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
  #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..
  #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.
The Following User Says Thank You to Old Pedant For This Useful Post:
beetle_jaipur (March 4th, 2009)

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

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