Solved

Pop out a form from asp.net page

Posted on 2012-03-21
4
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to implement server side field validation and display customized error messages to the client.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

729 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