Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends

i am developing student registration form. To get a student id i want to enter student acadamic detail in the child window that is directed by button event from the student.aspx form.After completing student acadamic details i am able to get student id to the student.aspx form. this will happen when closing this child window. is it possible.if so please help me
thank you
Posted
Comments
Sergey Alexandrovich Kryukov 17-Jul-12 12:30pm    
Do you mean separate browser window? This would not be a good design. Browser windows should be controlled by the user only.
--SA
baskaran chellasamy 17-Jul-12 14:22pm    
i just hear about popup window in web application few minutes ago. what is role for this and at which situation we can chiled pop up window
Sergey Alexandrovich Kryukov 27-Jul-12 19:33pm    
A real pop-up window, when a new browser window is created? Almost never. Many use them, and this is intrusive, drives most users crazy. It's possible only on user's consent, as Google search did (or does now, I'm not sure). And many would install anti-pop-up add-ons on the browsers. Better use the alternatives advised for you on this page.
--SA

Sounds like following article will help you out: Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]

Have a look at it and pick the things you need.
 
Share this answer
 
Comments
Espen Harlinn 17-Jul-12 15:35pm    
Nice link :-D
Wonde Tadesse 18-Jul-12 22:13pm    
5+
Have a look at ASP.NET Popup Control[^]

It's quite good looking and fairly easy to use.

[Update]
Then there is, as Sergey mentions, jQuery UI. For asp.net Juice UI[^] simplifies jQuery UI development.

Best regards
Espen Harlinn
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 17-Jul-12 23:55pm    
Good idea, my 5. I wanted to suggest something similar, like jQuery modal popup.
--SA
Espen Harlinn 18-Jul-12 4:16am    
Thank you, Sergey :-D
Sergey Alexandrovich Kryukov 18-Jul-12 0:05am    
I finally did it; please see my answer on this page.
But OP re-posted, please see also:
http://www.codeproject.com/Answers/423299/which-one-is-best-child-window-or-another-browser#answer2
--SA
Wonde Tadesse 18-Jul-12 22:13pm    
5+
Espen Harlinn 19-Jul-12 3:47am    
Thank you, Wonde :-D
There is no parent-child relationship between browser windows. More exactly, most browsers also have tabs which behave like separate browser windows from the standpoint of HTML or JavaScript, but behave in a very different ways from the user's standpoint. Their use is not standardized. Every time a HTML anchor or script request a new window to be created, it can be created, but the options of a particular browser can be set to interpret it as a separate top-level browser window or a new tab. The application code, HTML or script cannot control it.

This is only one of the reasons for not forcing creation of new windows. It can be useful in certain situation but is best to avoid. The user can, for example, perform Ctrl+Click instead of just click on an anchor element to navigate with creation of a new window.

This is only one of the reasons for not forcing creation of new windows. It can be useful in certain situation but is best to avoid. The user can, for example, perform Ctrl+Click instead of just click on an anchor element to navigate with creation of a new window.

One advanced technique you might be interested in is modal popup, where you have modal behavior but do not create any windows. Please see:
http://jqueryui.com/demos/dialog/[^].

There are a number of good collections of jQuery plug-ins with modal behavior:
http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/[^].

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 18-Jul-12 4:16am    
A very good reply :-D
Sergey Alexandrovich Kryukov 18-Jul-12 11:30am    
Thank you very much, Espen.
--SA
Wonde Tadesse 18-Jul-12 22:13pm    
5+
Sergey Alexandrovich Kryukov 18-Jul-12 23:07pm    
Thank you, Wonde.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900