Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a webpage gridview that show registered student. There is button Register Now..... When user click here then new window will be open and User Fill the form to register when he submit then this window should be closed and gridview should be update with new registered user.


Please tell me how can I update one window from window's action.


Thanks

Seema
Posted

On button click event write this code:
Page.ClientScript.RegisterStartUpScript(this.GetType(),"close","<script language=javascript>window.opener.location.reload(true);self.close();</script>");
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900