Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Calling Pop Up Window

 
Thread Tools Search this Thread
Old 05-24-2006, 09:14 AM   #1
Default Calling Pop Up Window


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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46