473,804 Members | 2,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1063
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*****@hotmai l.com> wrote in message
news:ug******** *****@TK2MSFTNG P15.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.as px

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.as px?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
2119
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, which is using an index.php, which has a structure of the layout. In this script I am planning to have several include() -statements. One to generate the site navigation on the left margin. Another to generate content in the mainarea of the page....
16
3463
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 - a skip-to-navigation-links div - a main div with : - a div with content - navigation links in a single ul - a footer
22
11102
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 in Opera6))
3
1596
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 currently use is running too slowly as it cannot dynamically load in nodes when users select a node to expand. This is critical for us. The top level of the tree hirarchy only has 20 or so nodes, but each node might contain up to 1,000
0
1042
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, hitcount, search, form submission, etc.), hyperlink management, and a GUI navigation editor tool window. You can create an "enhanced" ASP.NET web site from a template, or one based on an existing FrontPage web. A built-in converter can create ASP.NET...
2
1086
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 is selected, and which value is selected in the drop-down list. I.e., each ImageButton is a thumbnail image, and the dropdown lets the viewer select the result size of the image... 25%, 50%, 100%. I need to dynamically generate something that...
1
2548
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 notified and asked, would you like to see the previous record? If user answers yes, form on the screen is scrolled to the record with the same name. All works well, apart from number of record between navigation buttons: it is still the same number of...
28
2695
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. http://test2.boxxtech.com/corporate/test.asp Any ideas? Thanks, - Dave
4
2906
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: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/f6ccff0186d12566/ That fella wanted to do pretty well the same thing I did (use a command button to move between records in a form). Moving from record to record
2
3631
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" height="500"></embed> When the mouse passes over the navigation bar, the drop downs are hidden behind the PDF page.
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10600
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.