473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

maintaning data

102 100+
i am dealing with a page with many input data...

if part = "" then
response.redirect("stupid.asp?res=blank")

just because of one data missing... all my previous key in data were gone...!!!!

is it needed to pass under response.redirect("stupid.asp?part=" &a& "image="&b& "res=blank") ????? but a lot of data.. can pass until die...
Jun 19 '07 #1
4 1121
jhardman
3,406 Expert 2GB
yes, I think you'll have to handle all the data in one method or another, but there are ways to make it go fast:
Expand|Select|Wrap|Line Numbers
  1. 'save all the data in session-level variables
  2. for each x in request.form
  3.    session(x) = request.form(x)
  4. next
  5.  
  6. 'or save all the data in querystring data
  7. qstring = "stupid.asp?res=blank"
  8. for each x in request.form
  9.    qstring = qstring & "&" & x & "=" & request.form(x)
  10. next
  11. response.redirect qstring
Let me know if this helps.

Jared
Jun 20 '07 #2
lyealain
102 100+
yes, I think you'll have to handle all the data in one method or another, but there are ways to make it go fast:
Expand|Select|Wrap|Line Numbers
  1. 'save all the data in session-level variables
  2. for each x in request.form
  3.    session(x) = request.form(x)
  4. next
  5.  
  6. 'or save all the data in querystring data
  7. qstring = "stupid.asp?res=blank"
  8. for each x in request.form
  9.    qstring = qstring & "&" & x & "=" & request.form(x)
  10. next
  11. response.redirect qstring
Let me know if this helps.

Jared
if i use the session... how do i display it/?
my textbox are
name=A
name= B
name = C
.........
.......

foreach x in request.form
session(x) = request.form(x)
next

waht to use with session?
Jun 21 '07 #3
jhardman
3,406 Expert 2GB
if i use the session... how do i display it/?
my textbox are
name=A
name= B
name = C
.........
.......

foreach x in request.form
session(x) = request.form(x)
next

waht to use with session?
If the inputs are named as you say, than the above code will create three session-level variables with names:
session("A")
session("B")
and session("C")
and session("A") will be set equal to request.form("A") etc.

Session-level variables (and application-level variables for that matter) are very easy to use in asp, you always refer to them as
Expand|Select|Wrap|Line Numbers
  1. session("variableName")
, they never have to be defined (you don't have to say dim session("C")) they are available on any page of your website, and they stay active as long as a particular user stays on your website. Try them out and see if they work for you.

Jared
Jun 21 '07 #4
lyealain
102 100+
thanks for the reply.... but i face this problem.. each time i click on NEW... but the data were still there in the textbox.. .. how do i maintain the data only when i update... the rest.. leave it blank..thanks man
Jun 25 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: lawrence | last post by:
I had some code that worked fine for several weeks, and then yesterday it stopped working. I'm not sure what I did. Nor can I make out why it isn't working. I'm running a query that should return 3...
11
by: Qiangning Hong | last post by:
A class Collector, it spawns several threads to read from serial port. Collector.get_data() will get all the data they have read since last call. Who can tell me whether my implementation correct?...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
3
by: bbernieb | last post by:
Hi, All, Is it possible to access a variable inside of a data binding, without the variable being out of scope? (Note: On the DataBinder line, I get an error message that says "Name 'i' is...
5
by: Gene | last post by:
What can I do if I want to get the result using the sql command? for example, the select command is "select Name from Employee where StaffID=10" How to get the "Name"??? dim Name as string and...
5
by: DC Gringo | last post by:
I am having a problem reading a simple update to the database. Basically I'm testing a small change to the pubs database -- changing the price of the Busy Executive's Database Guide from 19.99 to...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
1
by: R.A.M. | last post by:
Hello, I am learning .NET (3.0). I am writing ASP.NET application and I need to store some extra information (like default settings for each user. In web.config I added: <profile...
0
by: Winder | last post by:
Computer Data Recovery Help 24/7 Data recovering tools and services is our focus. We will recover your data in a cost effective and efficient manner. We recover all operating systems and media....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.