preserving a value between postbacks, how?

J

Jeff

hi

on my webpage I have a generic list of pictures which I want stored between
postbacks.

because this problem is about webpage where user can write an article and
upload pictures related to it. So the article need to be stored in the
database before the pictures can be stored in the table they are intended to
be stored in... maybe meanwhile they can be stored in another table?

I've read about viewstates, session, cache etc.... don't think it's a good
idea to preserving a the array of pictures by putting it there... So I'm
thinking about storing the values in the database, but I don't know how.


but instead store them temporarly in aohter table.. should I use a temp
table for this? what is best practice storing postback values in the
database

I'm well aware of how to store and retrieve data in the database,.When I say
Idon't know how to store postbacks values in the database, I mean that I
don't know what is best practice for storing the postback values in the
database... Should it be a temporarly table? What should I use to identify
these pictures in the table, Should I use SessionId as a field in this table
so I can identify pictures related to each session ?

any suggestions?
 
G

Guest

hi

on my webpage I have a generic list of pictures which I want stored between
postbacks.

because this problem is about webpage where user can write an article and
upload pictures related to it. So the article need to be stored in the
database before the pictures can be stored in the table they are intended to
be stored in... maybe meanwhile they can be stored in another table?

I've read about viewstates, session, cache etc.... don't think it's a good
idea to preserving a the array of pictures by putting it there... So I'm
thinking about storing the values in the database, but I don't know how.

but instead store them temporarly in aohter table.. should I use a temp
table for this? what is best practice storing postback values in the
database

I'm well aware of how to store and retrieve data in the database,.When I say
Idon't know how to store postbacks values in the database, I mean that I
don't know what is best practice for storing the postback values in the
database... Should it be a temporarly table? What should I use to identify
these pictures in the table, Should I use SessionId as a field in this table
so I can identify pictures related to each session ?

any suggestions?

I gave you an example with a database
http://groups.google.com/group/micr...read/thread/b94fc7ca724b4531/e80b9c570758f414

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top