Can you persist table cell values like you can do with form field values?

R

Richard Dixson

Under ASP.NET (C#) I want to create a page that people can use to submit
questions. This page will consist of a table with several rows of
information, like:
Name: Bill Smith
Job title: Developer
Address: 123 Main Street.

After the table of information will be the web form. So basically I want to
display the table and then have the web form.

At the time the page is first displayed (before the form is submitted - the
GET request) I want to dynamically set all the values in my table as shown
above (Bill Smith, Developer, etc) based on a db lookup. That I know how to
do. But once the web form is submitted (the POST request/postback) I want
to be able to read in those values from the table cells that I set during
the GET - without having to look them up from the db again. I could store
all the values into session variables or make them into hidden form field
values that get posted back in, but that seems messy.

Is it possible to set things up so that when the page is posted back the
table cell values I set previously (Bill Smith, Develooper, 123 Main Street)
persist automatically through the power of ASP.NET - or do I have to get
fancy and persist them on my own so that I have the values during the POST
without having to look them back up? Either way, any tips on the easiest,
most straight-forward way to do this is greatly appreciated.

Thank you.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top