By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

focus popups

P: 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...

Dim popupScript As String = "<script language='javascript'>" & _
"window.open('calendar.aspx?formname=frmFireworksP ermitApp.txtdisplaydate', 'calendar', " & _
"'width = 300, height = 200, menubar = no, resizable=yes, scroll=auto');my_window.focus()" & _
"</script>"

Private Sub btncal1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncal1.Click
Page.RegisterStartupScript("PopUPScript", popupScript)

End Sub
Sep 14 '07 #1
Share this Question
Share on Google+
2 Replies


VBPhilly
P: 95
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...

Dim popupScript As String = "<script language='javascript'>" & _
"window.open('calendar.aspx?formname=frmFireworksP ermitApp.txtdisplaydate', 'calendar', " & _
"'width = 300, height = 200, menubar = no, resizable=yes, scroll=auto');my_window.focus()" & _
"</script>"

Private Sub btncal1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncal1.Click
Page.RegisterStartupScript("PopUPScript", popupScript)

End Sub
Did you mean to post this in another forum?
Sep 14 '07 #2

P: 18
I didn't know if I was suppose to submit it to vb.net or javascript because both are used.
Sep 14 '07 #3

Post your reply

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