Navigation? help needed asp.net

B

Bernie Walker

Hello,
I have a asp.net application that collects input from users and stores data
in SQL database. One of the options of the application is to store file
attachments.

When the user wants to store an attachment, they redirect to a page that
uploads the file to the server and then stores it in the SQL database. I
have enabled 'smartbrowsing' on the upload page. When the user is done
uploading, they can press the back button to return to the data entry page.

What I would like (need) to happen is the data entry page refreshes or posts
back so that the list of attachments associated with that record is
refreshed when it is returned to.

Your suggestions, ideas would be most appreciated

Thanks,

Bernie.
 
D

darrel

What I would like (need) to happen is the data entry page refreshes or posts
back so that the list of attachments associated with that record is
refreshed when it is returned to.

Your suggestions, ideas would be most appreciated

Don't use the back button. Instead, put a link on the file upload page that
then goes back to the data page which, upon page load, will refresh from the
DB returning files attached.

I usually do this on one page with a variety of panels:

panel data view
panel data edit
panel files view
panel files edit

Upon page load, it shows both VIEW panels, then the user can click a link to
either edit the data, or edit the files and I just show/hide the panels as I
go.

-Darrel
 
B

Bernie Walker

I tried using a 'smart' back link that captured the referring url but when
clicked, it returned to the data entry page in it's first initialized state.

Perhaps I should explain the page somewhat:

User selects a customer from a data bound drop down list.
Customer selection populates a second dropdown list with header records
associaated with the customer.
Header selection populates a third dropdown list with detail records
associated with the customer/header.
Detail selection displays data fields for entry - edit and also displays
list of attachments in a repeater control (if any)

Is there a way to detect that the page was navigated back to, so I can
re-bind the repeater control which will show the newly added attachment(s)

Thanks for the suggestion,

Bernie.
 
D

darrel

Is there a way to detect that the page was navigated back to, so I can
re-bind the repeater control which will show the newly added attachment(s)

I use querystrings for this. So, you are loading the page fresh again, but
sending it a querystring to repopulate with the freshly added data each
time.

So, on page load, you may have this:

dataPageView.aspx

then it points to the image upload page:

imageUploadPage.aspx?recordID=3

then from that page, point back to the original passing the same QS:

dataPageView.aspx?recordID=3

-Darrel
 

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,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top