This blog is about the dotnet.all types of codes,news about dotnet including asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.ncluding asp.net,vb.net,c# and know about new dotnet technology.programing in asp.net,vb.net,c#, ajax, AJAX tech support for .net and discuss the new technology in dotnet.asp.net programming,dot net programming,dotnet programs,dotnet source code,source code.

Free Hosting

Free Hosting

Sunday, January 4, 2009

Manage Parent-Child Winodw and return value in asp.net

Version: ASP.NET 1.1
Compatibility: ASP.NET 1.1
Category: ASP.NET


Manage Parent-Child Window and return value from Child popup Window and refresh parent (for IE,NS.FF)

In many of our Web projects we have a situation where we have to develop a parent window displaying list of records with an option to add new record or edit the existing one. In such scenario user may be allowed to add or modify the full record in a popup window. After record editing is complete, focus returns to parent window, only if child window in which the record was edited is closed.

Upon receiving the focus, parent window should reflect the changes made to the record and will re-retrieve the data from the server. Parent should re-retrieve the data only if record is modified in the child window else focus should return to the parent.

This example has separate set of code performing the above task for IE6.0 and for NS7.2, browsers. Value 14 is return to parent if button (say Save or OK) is clicked in popup window, to save the record. In this case parent will refresh to display the changes, and if x is clicked to close the child window, parent will not refresh.

Enter any value in the text box and click ‘Open Popup Window’ link. Value is passed to child window and is displayed in the first text box; second text box contains a constant which is passed from the parent. Parent reloads only if OK is clicked in child window.


CLICKHERE TO DOWNLOAD SOURCE CODE AND ARTICLE

0 comments:

dotnet(.Net) Project Source code Downloads and Tutorials

Email Subscrption



Enter your email address:

Delivered by FeedBurner

Feedburner Count

Blog Archive

Unique Visitor

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger