![]() |
|
|
|
#1 |
|
I tried to open a form in a new window (pop up).
PROBLEM1: CASE 1: Defined from design the OnClientClick = window.showModalDialog('Report.aspx') The problem was that new window needs values from session variables which get their values from button save (which is executed after the OnClientClick property). CASE 2: Set OnClientClick from button save. Problem is that button needs to be clicked twice for opening new window. Protected Sub btn_save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_save.Click Session("one_all") = 2 Session("period_type_no") = dropdownlist.SelectedValue btn_edit_report.OnClientClick = "window.showModalDialog('Report.aspx')" refresh_gridview_data() PROBLEM2: On Pop up window CLOSE button, design properties, assigned OnClientClick = Window.Close() When I click close button, current popup window closes but opens the same (second) window again. Is there another solution, for passing sessions values and opening new window for a form. Thanks a lot. chris |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| closing the child window and refreshing the parent window | Ane007 | The Lounge | 1 | 05-05-2008 07:54 AM |
| explores closes original window | laures | General Help Related Topics | 1 | 09-21-2007 10:47 AM |
| new window minimizes to taskbar | -D- | A+ Certification | 0 | 03-03-2007 01:07 AM |
| HyperKore Hyper Kolor Laser-Etched Window Contest at Velocity Reviews! | Admin | Front Page News | 9 | 08-08-2006 07:05 AM |
| Window xp and startup disk | Raymond | A+ Certification | 2 | 10-22-2003 10:06 AM |