473,548 Members | 2,636 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple Back button

Hi

I have a search page which display a grid of master records. Those records
that have children have a hyperlink that takes the user to the Details page
for that record.

How can I implement a Back button on the Details page that will take the
user back to the original search page with all filter/search criteria and the
grid filled in?

I currently use

LinkButtonBack. PostBackUrl = Request.UrlRefe rrer.AbsolutePa th

But when I click the link, I get an empty Search page.

Thanks
Amir

Dec 20 '07 #1
5 1798
By the way, I can not use a JavaScript based solution.

"Amir Tohidi" wrote:
Hi

I have a search page which display a grid of master records. Those records
that have children have a hyperlink that takes the user to the Details page
for that record.

How can I implement a Back button on the Details page that will take the
user back to the original search page with all filter/search criteria and the
grid filled in?

I currently use

LinkButtonBack. PostBackUrl = Request.UrlRefe rrer.AbsolutePa th

But when I click the link, I get an empty Search page.

Thanks
Amir
Dec 20 '07 #2
What's wrong with the back button on the user's browser?

You'll need to pass the relevant parameters on the url they click to view
the detail page. eg;

detail.aspx?ID= 123&colour=gree n&minprice=10 0

or whatever fields you use. Grab that info and add it to the "Back" link;

search.aspx?col our=green&minpr ice=100

Then your search.aspx page will use the values from the querystring if they
are present and use them to pre-populate the form and search for results.

Someone else may have something more elegant.

"Amir Tohidi" <Am********@dis cussions.micros oft.comwrote in message
news:4D******** *************** ***********@mic rosoft.com...
Hi

I have a search page which display a grid of master records. Those records
that have children have a hyperlink that takes the user to the Details
page
for that record.

How can I implement a Back button on the Details page that will take the
user back to the original search page with all filter/search criteria and
the
grid filled in?

I currently use

LinkButtonBack. PostBackUrl = Request.UrlRefe rrer.AbsolutePa th

But when I click the link, I get an empty Search page.

Thanks
Amir

Dec 20 '07 #3
Hi

Nothing wrong with the Back button - the users want their own Back button.

I can't use the solution you suggest for security reasons. There is the
Session of course...

"Aidy" wrote:
What's wrong with the back button on the user's browser?

You'll need to pass the relevant parameters on the url they click to view
the detail page. eg;

detail.aspx?ID= 123&colour=gree n&minprice=10 0

or whatever fields you use. Grab that info and add it to the "Back" link;

search.aspx?col our=green&minpr ice=100

Then your search.aspx page will use the values from the querystring if they
are present and use them to pre-populate the form and search for results.

Someone else may have something more elegant.

"Amir Tohidi" <Am********@dis cussions.micros oft.comwrote in message
news:4D******** *************** ***********@mic rosoft.com...
Hi

I have a search page which display a grid of master records. Those records
that have children have a hyperlink that takes the user to the Details
page
for that record.

How can I implement a Back button on the Details page that will take the
user back to the original search page with all filter/search criteria and
the
grid filled in?

I currently use

LinkButtonBack. PostBackUrl = Request.UrlRefe rrer.AbsolutePa th

But when I click the link, I get an empty Search page.

Thanks
Amir



Dec 20 '07 #4
One pattern to try is setting up the form and details in two panels on the
same page. This is a very simple MVC like pattern. Hide the panel not in use
at the time (or not - as showing the search still works). You can refine
this with things like the AJAX collapsing panel (accordian panel? forget the
name) and have the form hide and show based on use action. As all is on one
page, you can keep state for the controls.

To do this on more than one page, you will have to build the engine that
stores the state.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"Amir Tohidi" <Am********@dis cussions.micros oft.comwrote in message
news:4D******** *************** ***********@mic rosoft.com...
Hi

I have a search page which display a grid of master records. Those records
that have children have a hyperlink that takes the user to the Details
page
for that record.

How can I implement a Back button on the Details page that will take the
user back to the original search page with all filter/search criteria and
the
grid filled in?

I currently use

LinkButtonBack. PostBackUrl = Request.UrlRefe rrer.AbsolutePa th

But when I click the link, I get an empty Search page.

Thanks
Amir

Dec 20 '07 #5
I can't use the solution you suggest for security reasons.

You could encrypt the info.
There is the Session of course...
Yep, but you'll run into issues with things like that. Let's say I do a
search, look at the detail but don't hit "Back" and wonder off elsewhere. I
now return to the search back and my last search is still in the session so
the search is pre-populated and the results are not what the user is
expecting.
Dec 20 '07 #6

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

Similar topics

2
8376
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the...
7
2022
by: Tom wilson | last post by:
I have created a very simple example that doesn't work. Form1 contains a textbox and a button: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Response.Redirect("login.aspx") End Sub Very simple. Forget what login.aspx does, it's just somewhere to redirect to.
2
1104
by: Ed | last post by:
I'm rather new to ASP .Net, so I appologize in advance if I'm asking a dumb question here. I've been searching all over the place for an answer and haven't found a single one. I'm working on a form that gives the user a file control to upload a file from their machine to my server. With this file control are two buttons; one marked...
0
1729
by: csharpnb | last post by:
Hi all, I've been studying C#/.NET 2.0 for a couple of hours a week for the past couple of weeks. I feel the need to build a somewhat simple Windows application that would accomplish a somewhat simple task, in order to put my knowledge to test, and brush it up further. Besides, this application, if successfully built, could find its use in...
27
4589
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res = $doc->loadHTMLFile("./aBasicSearchResult.html"); if ( $res == true ) { $zip = $doc->getElementById('zipRaw_id')->value; if ( 0 != $zip ) {
2
1225
by: Jack | last post by:
Hi there, I'm a very experienced C++ developer but a relative newcomer to web development and a raw neophyte in the ASP.NET arena. I have a very simple scenario that hopefully someone can help me with. I have a 3rd-party HTML form with a single (submit) button and a number of (static) hidden fields (all values hardcoded). The form is pure...
3
1303
maxx233
by: maxx233 | last post by:
Hello, I'm developing a simple program to control a video switcher we have via RS232. All the backend control stuff is figured out just fine, the interface is what's giving me problems! I'm basically just trying to figure out how to light up buttons depending on how they logically refer to each other, and I'm certain it should be simple, but I...
0
7438
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7707
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. ...
0
7803
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...
0
6036
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3495
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3475
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
751
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...

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.