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

Go back to previous page (asp.net 2.0)

Hi all.

I have following scenario:
1. I have a page called Page1.aspx, on which there is some GridView and
few texboxes. User can enter some search criteria in textboxes, click
Find button and then search results are presented in the GridView.
2. User can select some row and click Edit button.
3. New page (Page2.aspx) is opened in new window, where user can edit
selected record.
4. User clicks OK and then Page2.aspx is closed.

My problem is that I want to refresh changed data on the Page1.aspx
without losing data from that page (search criteria). Is it possible?

Should I use PreviousPage property or sth like this?

Thanks in advance.

Feb 23 '06 #1
3 8826
Take the parameter from the Query string/Form-Variable and redirect -
you got all you need.

Daniel Fisher(lennybacon) | Software Engineer | newtelligenceR AG
blog: http://staff.newtelligence.net/danielf
usergroup: http://vfl-niederrhein.net
-----Original Message-----
From: misiek [mailto:pt*********@poczta.fm]
Posted At: Thursday, February 23, 2006 1:50 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Go back to previous page (asp.net 2.0)
Subject: Go back to previous page (asp.net 2.0)

Hi all.

I have following scenario:
1. I have a page called Page1.aspx, on which there is some GridView and
few texboxes. User can enter some search criteria in textboxes, click
Find button and then search results are presented in the GridView.
2. User can select some row and click Edit button.
3. New page (Page2.aspx) is opened in new window, where user can edit
selected record.
4. User clicks OK and then Page2.aspx is closed.

My problem is that I want to refresh changed data on the Page1.aspx
without losing data from that page (search criteria). Is it possible?

Should I use PreviousPage property or sth like this?

Thanks in advance.

Feb 23 '06 #2
Hi,

you can create a postback on page1.aspx with technique I've shown in this
blog post

ASP.NET: How to create a postback on a main page from a popup window
http://aspadvice.com/blogs/joteke/ar...6/15/2340.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"misiek" <pt*********@poczta.fm> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi all.

I have following scenario:
1. I have a page called Page1.aspx, on which there is some GridView and
few texboxes. User can enter some search criteria in textboxes, click
Find button and then search results are presented in the GridView.
2. User can select some row and click Edit button.
3. New page (Page2.aspx) is opened in new window, where user can edit
selected record.
4. User clicks OK and then Page2.aspx is closed.

My problem is that I want to refresh changed data on the Page1.aspx
without losing data from that page (search criteria). Is it possible?

Should I use PreviousPage property or sth like this?

Thanks in advance.

Feb 23 '06 #3
Thanks a lot.

Teemu, your solution works great:)

Feb 24 '06 #4

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

Similar topics

2
by: Lauchlan M | last post by:
Hi. I'd like to put a button on my ASP.NET pages that sends them back to the previous page (as opposed to them having to use the browser back button). I can think of two ways to do this: ...
4
by: Bratislav Jevtic | last post by:
hi, ASP.NET, framework 1.0, patch 2, Windows 2000 server is this possible: from server side to say "go back" to browser? ------------------- scenario: I've got some page with a list. When...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
6
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. ...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
2
by: wiewiek | last post by:
Is there a way to go back to the previous page when a button (Cancel button) is hot? It's an ASP control. Thanks
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
1
by: mark4asp | last post by:
How can I stop a post back from firing when there is no need for it to? I have a GridView pager template (shown below): There are 3 commands: ddlPager_SelectedIndexChanged - move the page to...
8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.