Solved

Pop out a form from asp.net page

Posted on 2012-03-21
4
272 Views
Last Modified: 2012-03-22
In my application, i would like to use the popup form concept. When the user clicks a button on page1.aspx, a popup window should appear, with several text box to enter values. On clicking the button on the form, the popup form disappears, the user entered values should get saved into a table and the gridview on page1.aspx will be refreshed then.

Need your idea. Does the form be created from javascript/jquery?
Or it is impossible at all. We have to set the size of the form?
0
Comment
Question by:zhshqzyc
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
Comment Utility
From the Popup window the main window can be accessed using window.opener.  Please do refer http://www.codeproject.com/Articles/25388/Accessing-parent-window-from-child-window-or-vice

The main page could be refreshed using the event window.onbeforeunload. Please do refer my article http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4148-Some-ASP-NET-Practical-tips.html and http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_3587-ASP-NET-Programming-tips.html for more information.

I hope this would be helpful.
0
 
LVL 38

Expert Comment

by:Tom Beck
Comment Utility
Since you are using asp.net already, you could use the AjaxControlToolKit and the ModalPopupExtender. If you make use of an UpdatePanel, the update on the back end would be asynchronous so the user would not experience a page flicker when the Gridview refreshes.
0
 

Author Comment

by:zhshqzyc
Comment Utility
Actually I am using Sharepoint application page. Is it okay?
0
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
Comment Utility
No issue.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now