Solved

Pop out a form from asp.net page

Posted on 2012-03-21
4
281 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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 …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

860 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