469,323 Members | 1,480 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

focus popups

18
I having a problem with my popup calendar. What I would like to do is focus on a particular textbox after a date is selected and right now it's not doing that. Does anyone have any idea how to do it? here's the code...
Expand|Select|Wrap|Line Numbers
  1. Dim popupScript As String = "<script language='javascript'>" & _
  2. "window.open('calendar.aspx?formname=frmFireworksPe rmitApp.txtdisplaydate', 'calendar', " & _
  3. "'width = 300, height = 200, menubar = no, resizable=yes, scroll=auto');my_window.focus()" & _
  4. "</script>"
  5.  
  6. Private Sub btncal1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncal1.Click
  7. Page.RegisterStartupScript("PopUPScript", popupScript)
  8.  
  9. End Sub
  10.  
--------------------------------------------------------------------------------
Sep 14 '07 #1
2 1003
pbmods
5,821 Expert 4TB
Heya, DHoward.

Please use CODE tags when posting source code:

[CODE=vb]
VB code goes here.
[/CODE]
Sep 14 '07 #2
acoder
16,027 Expert Mod 8TB
Show the form HTML markup.
Sep 15 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

52 posts views Thread by Harlan Messinger | last post: by
31 posts views Thread by Benno Bös | last post: by
2 posts views Thread by Moist | last post: by
2 posts views Thread by Tom Szabo | last post: by
11 posts views Thread by Alex.Svetos | last post: by
2 posts views Thread by dhoward | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.