data binding question

  • Thread starter Thread starter Nikhil Patel
  • Start date Start date
N

Nikhil Patel

Hi all,
I am developing asp.net application. The startup page reads data from a
database and displays it in a grid. Now when the user doubleclicks on one of
the grid's rows, i want to display a form that will allow the user to update
selected row. My question is that when the user closes the second window
after updating the row, how can I refresh the grid on the first form.
My second question is that is there a way to share a Dataset between the
two forms?
Thanks...
-Nikhil
 
have the EDIT not go to another window first off. Have them goto an EDIT
page. When they click a "close" or "save" button on your edit page have it
redirect back to the first. If the Datagrid is built in the page_load event
then you are already all set. Getting interaction between browser windows is
an ugly and unpredictable thing that I would recommend avoiding at all costs
 
you will have to have your save use some clientside code then to
refresh/reload the "parent" window. It's not an serverside function.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
 
Hi,
Thanks for reply. My problem is that the first page is displayed in a
third party application that has very small browser window. It can display a
grid with 10 to 15 rows which is enough for the first page. But the second
page is very large so I can't display it in this window and that is the
reason why I want to open a new internet explorer window that will display
the second page.
 
no, not at all. You'll just have to use a clientside event after the save to
1) refresh parent and 2) to close the existing window

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
 
not directly.... it's a clientside thing so I'd start by hitting up a
javascript/clientside group.
It's probably something like.....

window.parent.refresh()
or
window.opener.refresh()
or .reload()


--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
 
Thanks again. I am a beginner. So can you please tell me how I can refresh
the parent from the second window?
 
Thanks again. I am a beginner. So can you please tell me how I can refresh
the parent from the second window?
 
Check out this ,
1. Make a Redirect.htm file with the following code:

<html>
<head>
<title>Refresh Parent</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
window.opener.progressWindow.close();
window.close();
}
//-->
</script>
</head>

<body onLoad="refreshParent()">
</body>
</html>

2. When you want to close the popup window and refresh the parent just
redirect the popup window's location to: redirect.htm

For more detail refer this url,
http://www.aboutfortunate.com/Default.aspx
 
Back
Top