473,387 Members | 1,504 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.

Refresh window?

LL
Hi,

I have grid's col defined as HyperLinkColumn,
I defined the Target as "_blank" to force open a new winodw.
When the new window is closing, how to refresh the parent window?

Thanks.
Nov 17 '05 #1
5 1429

You'll need to add client-side event handler script in the new window

The new windows should have an "window_onclose" event handler, and then it
can call something like this
window.parent.refresh();

"LL" <li*******@hotmail.com> wrote in message
news:u5**************@tk2msftngp13.phx.gbl...
Hi,

I have grid's col defined as HyperLinkColumn,
I defined the Target as "_blank" to force open a new winodw.
When the new window is closing, how to refresh the parent window?

Thanks.

Nov 17 '05 #2
Before calling window.close(), you can do this window.opener.location.href =
window.opener.location.href .

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"LL" <li*******@hotmail.com> wrote in message
news:u5**************@tk2msftngp13.phx.gbl...
Hi,

I have grid's col defined as HyperLinkColumn,
I defined the Target as "_blank" to force open a new winodw.
When the new window is closing, how to refresh the parent window?

Thanks.

Nov 17 '05 #3
LL
Thanks for the help.

Can I this when I click on the "Edit" button(using datagrid)?
Because I want to open a detail form window.
Can I do this?
Thanks..

"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:el**************@TK2MSFTNGP12.phx.gbl...
Before calling window.close(), you can do this window.opener.location.href = window.opener.location.href .

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"LL" <li*******@hotmail.com> wrote in message
news:u5**************@tk2msftngp13.phx.gbl...
Hi,

I have grid's col defined as HyperLinkColumn,
I defined the Target as "_blank" to force open a new winodw.
When the new window is closing, how to refresh the parent window?

Thanks.


Nov 17 '05 #4
Yes, you can do it. You can open new window when you press a button in
datagrid. For more details how to open a new window when you press a button
in datagrid, check this article.
http://www.microsoft.com/india/msdn/...ndarinASP.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"LL" <li*******@hotmail.com> wrote in message
news:ux*************@TK2MSFTNGP09.phx.gbl...
Thanks for the help.

Can I this when I click on the "Edit" button(using datagrid)?
Because I want to open a detail form window.
Can I do this?
Thanks..

"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:el**************@TK2MSFTNGP12.phx.gbl...
Before calling window.close(), you can do this
window.opener.location.href =
window.opener.location.href .

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"LL" <li*******@hotmail.com> wrote in message
news:u5**************@tk2msftngp13.phx.gbl...
Hi,

I have grid's col defined as HyperLinkColumn,
I defined the Target as "_blank" to force open a new winodw.
When the new window is closing, how to refresh the parent window?

Thanks.



Nov 17 '05 #5
LL
Thanks Saravana.
what's in 'd:\products.xml"?
"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:ur*************@TK2MSFTNGP11.phx.gbl...
Yes, you can do it. You can open new window when you press a button in
datagrid. For more details how to open a new window when you press a button in datagrid, check this article.
http://www.microsoft.com/india/msdn/...ndarinASP.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"LL" <li*******@hotmail.com> wrote in message
news:ux*************@TK2MSFTNGP09.phx.gbl...
Thanks for the help.

Can I this when I click on the "Edit" button(using datagrid)?
Because I want to open a detail form window.
Can I do this?
Thanks..

"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:el**************@TK2MSFTNGP12.phx.gbl...
Before calling window.close(), you can do this

window.opener.location.href
=
window.opener.location.href .

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"LL" <li*******@hotmail.com> wrote in message
news:u5**************@tk2msftngp13.phx.gbl...
> Hi,
>
> I have grid's col defined as HyperLinkColumn,
> I defined the Target as "_blank" to force open a new winodw.
> When the new window is closing, how to refresh the parent window?
>
> Thanks.
>
>



Nov 17 '05 #6

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

Similar topics

4
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
2
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
3
by: Steve Wark | last post by:
I have created a ASP.NET application and created two forms within the application (Webform1.aspx & Webform2.aspx). On the first form I have placed a textbox (TextBox1) and a button, which when...
5
by: Peter | last post by:
1) I have a C# web application and what I am trying to do is create a popup window from a link on the parent window 2) the popup window will have a button and when a user clicks on the button the...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
3
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
12
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
3
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
Ok guys, refresh my memory. I have a vague memory from years ago of a Dot Net 1.1 web app in which one window was opened from another (not a message box or anything like that, but a fully separate...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.