I have a web application with two forms. After user enters data in first form
he is directed to the second form. After Filling the second form as he clicks
on save button, the data entered is stored in the database using a
Transaction Object, That inserts data, entered by user in both the forms, in
the database.
My problem is where shall i store the data entered by the user in the first
form when he is redirected to next form and till i perform the transaction?
--
Thank You.
Saket Mundra 6 2075
In a Session :
Session("Tempor aryData") = DatatableContai ningTemporaryDa ta
"Saket Mundra" <Sa*********@di scussions.micro soft.com> wrote in message
news:A1******** *************** ***********@mic rosoft.com... I have a web application with two forms. After user enters data in first form he is directed to the second form. After Filling the second form as he clicks on save button, the data entered is stored in the database using a Transaction Object, That inserts data, entered by user in both the forms, in the database.
My problem is where shall i store the data entered by the user in the first form when he is redirected to next form and till i perform the transaction? -- Thank You.
Saket Mundra
The question is can your users deal with the potential for the loss od data
from page 1 to page 2? If not, then store the data in the database inbetween
the pages, in a temp save table, perhaps. If they can deal with the possibility
of loss of data, then Session state is an acceptable place to store state
across pages.
-Brock
DevelopMentor http://staff.develop.com/ballen I have a web application with two forms. After user enters data in first form he is directed to the second form. After Filling the second form as he clicks on save button, the data entered is stored in the database using a Transaction Object, That inserts data, entered by user in both the forms, in the database.
My problem is where shall i store the data entered by the user in the first form when he is redirected to next form and till i perform the transaction?
Saket Mundra
Thank you for the replies.
I understand that the data can be stored in Session variables or temporary
tables.
However, say if i have more then 6 forms in which the user enters the data
one by one and after entering the data on last form he saves it. At this
point in time i am saving the data in the database through a transaction.
So, now the question arises is it advisable to create so many temporary
tables or Session variables for each form before the transaction takes place.
The most important point is the user cannot afford to lose data between forms.
Please Help.
Saket Mundra
"Brock Allen" wrote: The question is can your users deal with the potential for the loss od data from page 1 to page 2? If not, then store the data in the database inbetween the pages, in a temp save table, perhaps. If they can deal with the possibility of loss of data, then Session state is an acceptable place to store state across pages.
-Brock DevelopMentor http://staff.develop.com/ballen I have a web application with two forms. After user enters data in first form he is directed to the second form. After Filling the second form as he clicks on save button, the data entered is stored in the database using a Transaction Object, That inserts data, entered by user in both the forms, in the database.
My problem is where shall i store the data entered by the user in the first form when he is redirected to next form and till i perform the transaction?
Saket Mundra
> The most important point is the user cannot afford to lose data between forms. Please Help.
Then you've just answered it -- you must save it between forms. Then once
the user is done with all the forms, then move all the data to your "real"
tables within your transaction.
-Brock
DevelopMentor http://staff.develop.com/ballen
Thanx again for your reply Brock.
I got your point and thuis is what I have been doing. Its just that i am
looking for something more comprehensive. And moreover, i want to get away
with writing all the code required to save the data in temporary tables and
then in real Database.
Also I am quite unsure about the memory this technique will consume, Is
there no other way to do so but to create temporary tables for each of the
forms.
Thank you.
Saket
"Brock Allen" wrote: The most important point is the user cannot afford to lose data between forms. Please Help.
Then you've just answered it -- you must save it between forms. Then once the user is done with all the forms, then move all the data to your "real" tables within your transaction.
-Brock DevelopMentor http://staff.develop.com/ballen
The tables idea is the most robust. It should take no extra storage doing
it this way as in your transaction you would move the data from the
temporary tables to the permanent tables, so no space lost.
"Saket Mundra" <Sa*********@di scussions.micro soft.com> wrote in message
news:D0******** *************** ***********@mic rosoft.com... Thanx again for your reply Brock.
I got your point and thuis is what I have been doing. Its just that i am looking for something more comprehensive. And moreover, i want to get away with writing all the code required to save the data in temporary tables and then in real Database.
Also I am quite unsure about the memory this technique will consume, Is there no other way to do so but to create temporary tables for each of the forms.
Thank you.
Saket
"Brock Allen" wrote:
> The most important point is the user cannot afford to lose data > between forms. Please Help.
Then you've just answered it -- you must save it between forms. Then once the user is done with all the forms, then move all the data to your "real" tables within your transaction.
-Brock DevelopMentor http://staff.develop.com/ballen
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Don Vaillancourt |
last post by:
I'm building a system when one can upload a document to the website.
I will be storing the document on the hard-drive for quick/easy access,
but I was also thinking of storing it in an existing database since most
of the sites information is all stored there.
As well there would be only one place to worry about backing up. And if
the file on the hard-drive was ever missing or became corrupted, I could
restore it form tha database. Is...
|
by: Lyn |
last post by:
Hi,
I am working on a genealogy form. The only table (so far) lists everybody
in the family, one record per person. Each record has an autonum ID.
The parent form (frmMainForm) displays the data in each record, which
includes the ID of the father and the mother (who also have records in the
table). One record per form.
I have a Tab Control in the form, and in one of the tabs I have a subform
(sfmSiblings) in which I wish to list...
|
by: DarthMacgyver |
last post by:
Hello,
I recently wrote a survey application. Each question is very similar.
The first questions gives me a problem when there are multiple people
taking the survey (The Database connection Timed out) I am using the
Data Access Application Blocks as ASP.NET (using VB.NET) and SQL 2000.
In there first question there can be up to 27 answers. So I figured
instead of making 27 different trips to the database I woulc just
concatenate my...
|
by: hfk0 |
last post by:
Hi,
I'm new to ASP.net, SQL Server and visual studio.net, and I'm having
problem inserting and storing data from a web form to a SQL database.
I created a simple ASP.NET web form, a simple SQL database, a database
connection (using the SQlDataSource Web Control from the Toolbox), and
created the following stored procedure in Visual Studio.Net 2005:
|
by: josh.kuo |
last post by:
Sorry about the subject, I can't think of a better one.
I recently wrote some PHP classes that I think might be of interest to
this group. Since I have been reaping the benefits of reading news
groups for years, I figure it's time for me to contribute a little bit
back, maybe some people out there will find this useful.
* Introduction
This is a "how-to" style article, showing by example how to dynamically
| |
by: =?Utf-8?B?QkFUT04=?= |
last post by:
I have realy big problem I try lot of things but never success!
I need a HELP!
Problem is in that I made database in Microsoft access and connect her to C#
form and datagridview. and it shoving a data that I was inserted in it
trough Office access. but when I try to insert some data in that database
trough a C# form it (after refresh) show that data is inserted in
datagridview but it never save in database!!!!!!!!!!!!
|
by: runway27 |
last post by:
i am helping a friend to build a forum website which uses php and mysql database. i am working on the registeration page for the forum website and its validation. i am using php 5.2.5
i am able to validate and do other tasks, however i really need help as i am stuck with regards to database injection.
please answer the following questions. any help will be greatly appreciated.
1. USER NAME VALIDATION
username = eregi("^+$",...
|
by: Les Desser |
last post by:
In article
<fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The
Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes
Not sure if I quite follow that.
1. Data encrypted by AES key
2. AES key encrypted with Asymmetric public key (?)
|
by: sshade25 |
last post by:
I am trying to insert some data into my postgresql database table using an html form and a php script. The problem here is that when the script is run, it does not insert data into the last two coulmns and also it would insert a 0 into the third column.
but when i run the query directly on the database using this sql
INSERT INTO crops (crop_id,crop_type,crop_name,cultivation_yrs, local_name)VALUES('6','food crop','garri','6','utara');
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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
| |