473,657 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

carrying the user input across pages..

Ani
Hi,

I need to carry the user input across pages and then at
the end insert all the values into the DB. How do I best
accomplish this task in ASP.Net. I am a novice , please
give me some simple suggestions.

Thanks.
Nov 17 '05 #1
1 2075
Hi Ani,

I think you will like session variables. Here's a simple sample across
multiple pages.

Page1
Session("stock" ) = "abc"
Page2
Session("price" ) = "10"
(I'm keeping this to strings for now.)
Page 3
now use session("stock" ) and session("price" ) to insert into the
database.

Each user gets their own set of session variables. The variables last until
you clear them with Session.Abandon or until the timeout expires (set the
timeout in web.config).

For further information, please see:
http://msdn.microsoft.com/library/de...us/dnaspnet/ht
ml/asp12282000.asp

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Ani" <an*******@disc ussions.microso ft.com>
Sender: "Ani" <an*******@disc ussions.microso ft.com>
Subject: carrying the user input across pages..
Date: Tue, 28 Oct 2003 08:51:03 -0800
Lines: 8
Message-ID: <0e************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcOdc6xGuK71QPp hSzKrkNBOGz3b4w ==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1870 32
NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

Hi,

I need to carry the user input across pages and then at
the end insert all the values into the DB. How do I best
accomplish this task in ASP.Net. I am a novice , please
give me some simple suggestions.

Thanks.


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
258
by: ani | last post by:
Hi, I need to carry the user input across pages and then at the end insert all the values into the DB. There is one single .aspx page that is paginated and the values have to be passed across these paginated web pages. How do I best accomplish this task in ASP.Net. I am a novice , please give me some simple suggestions. Thanks.
5
1527
by: JezB | last post by:
I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library" assembly WebLib. I have methods in the library which set and read session variables. However, I'm finding that if I set a session variable in a call from WebClient1, I cannot read that session variable in a call from WebClient2. Is this normal? What can I do about this ?
9
5303
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of copy paste (I hear this will improve in ASP.Net 2 via master pages). When I navigate from one page to the next the header and footer user controls lose their state because they are effectively different instances of the user control. Is there...
4
2142
by: Matt | last post by:
I have the following in a page and I am trying to update a record on the next page but for some reason the form data is not carrying over. Any ideas why? <form name=nxtlupdate method=post action=supers_NxtlUpdate.asp> <% Do While Not objRecordset.EOF
0
483
by: Darrin | last post by:
I have a ASP.NET (using vb.net) application setup that allows someone to fill out an application form. The form goes across multiple pages (10) so on the first page I assign a unique ID and store it in a cookie and use it across the reamining pages. I am storing each pages data to the SQL database after they click the NEXT button to advance to the next page. Then, if they click the back button to the other pages to change the information I...
1
5060
devonknows
by: devonknows | last post by:
Hi, im having trouble carrying variables across a form, ive looked on here and other sites but cant find anything that helps me, or i might not be searching for the right terms, so i though i would post to see if anyone can help me. what i need is to carry certain aspects of data from splash form to my main form which im currently developing. this is the code im usign for the frmSplash Option Explicit Private Declare Function...
18
24953
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin, that IE7 does not seem to offer any way to control the font size of a text input element.
4
14097
by: Kurrent | last post by:
I have some data from text fields that are being passed over through a form that I am displaying with the $_POST superglobal. Once i have echo'd out this data onto the next page, i'd like to continue to use it on the next page. I haven't figured out how to do this properly just yet, but I'm guessing it has something to do with sessions. I have MANY variables being passed (over 100) and I'm hoping i don't have to register each one of these...
4
2920
cassbiz
by: cassbiz | last post by:
Could use some help here. This script is carrying over an image just fine but the text isn't coming over. can you see why it is not working???? from the form I want to carry over two lines of text and I can't find the error on why it isn't working. Any help is greatly appreciated. Here is the form
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.