Solved

Pop out a form from asp.net page

Posted on 2012-03-21
4
275 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
ID: 37751960
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
ID: 37752089
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
ID: 37752272
Actually I am using Sharepoint application page. Is it okay?
0
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
ID: 37752297
No issue.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

863 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

20 Experts available now in Live!

Get 1:1 Help Now