473,322 Members | 1,188 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,322 software developers and data experts.

Navigation? help needed asp.net

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.
Nov 19 '05 #1
3 1043
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
Nov 19 '05 #2
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.
"darrel" <no*****@hotmail.com> wrote in message
news:ug*************@TK2MSFTNGP15.phx.gbl...
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

Nov 19 '05 #3
> 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
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: OllimaX | last post by:
I am quite new to PHP and I my question is quite simple, but I have not found any sufficient answer even after spending several hours in google or reviewing this group. I am planning a website,...
16
by: Vincent | last post by:
First, here is a page to help you figure out what I'm talking about: http://relinquiere.free.fr/test.html As you can see in the source of this page, the structure is the following : - a banner...
22
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even...
3
by: James Agnew | last post by:
Hello I'm trying to find a javascript/DOM navigation tree to use in a web-based content management system, to allow navigation of > 10,000 folders/files. The javascript (non-DOM) tree we...
0
by: Robert Weatherford | last post by:
My company is looking for several beta testers for a new VS .NET add-in product. It adds FrontPage-compatible features to VS like shared borders (layout), controls (navigation, substitution,...
2
by: Martin Schmid | last post by:
I've got a page w/ frames... one is a navigation frame with some ImageButtons. In the navigation frame, there is also a drop-down list. I need to redirect the mainFrame based on which ImageButton...
1
by: Galka | last post by:
Hello I have a form to enter names and some other personal information. When a name is entered, it is checked against existing records: maybe, such name was entered before? If yes, user is...
28
by: laredotornado | last post by:
Hi, Surprisingly, I can't get the drop down menus to work on PC IE 6. If you roll over "PRODUCTS", normally a drop down menu appears (on Safari and Firefox), but on PC IE, nada. ...
4
by: Jamey Shuemaker | last post by:
Howdy, Saw a couple threads from the past few years on this topic, but didn't really find any solutions. Here's one I found:...
2
by: John | last post by:
I have CSS drop down navigatoon bar and it works fine. However, when I have page where I have an <embed - needed to show a PDF file, such as: <embed src="Security.pdf" width="900"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.