--- In [email protected], "Ashish Thakwani" 
<[EMAIL PROTECTED]> wrote:
> 
> --- In [email protected], uma padmavathi 
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >  
> > I am facing the problem in refreshing the datagrid. In parent 
> window clicking on the button it opens a child window, after 
> selecting the items close the child window and selected values are 
> stored in the session. In the parent window checking that seesion 
> variable is not null then fill the datagird. But after refreshing 
> the page only i am getting that datagrid to be filled. But I want 
> the datagrid should be refreshed immediately closing the child 
> window without refreshing the page because In the parent window I 
> have so many controls.
> > 
> >             


Sorry Forgot to tell you how to refresh parent's Iframe from child 
page.

In child page place the function given below

<head>
   <script language="javascript">
    
    function closewindow()
    {
       //Assuming that parent's Iframe's ID is IFRAME1
       window.opener.document.getElementById("IFRAME1").setAttribute
("src","PageContainingDatagrid.aspx");
       window.close();

    }
   </script>
</head>


Now also place a buuton in child page which calls the above function 
on onclick event

The code is given blow:
<INPUT type="button" value="Close Window" onclick="closewindow">


I hope this will solve you problem.


------------
Ashish Thakwani
Final Year Student
B.E(Computer Engineering)





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Microsofts_C_Sharp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to