![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
I can reference thie object in a page directly, but can not get it to work when i create a user control. The message i get is: Reference to a non-shared member requires an object reference. i believe i understand why it will not work, but i'm not sure how to pass the page reference to a control? Public Sub pop(ByVal szUrl As String) ClientScript.RegisterStartupScript _ (Me.GetType, "popup", "window.open('" & _ "http://www.iknowtek.com" & "','_blank','menubar=no')", True) End Sub *** and VS.net does not that ClientScript thanks KES -- thanks (as always) some day i''m gona pay this forum back for all the help i''m getting kes |
#2
| |||
| |||
|
|
I think you want me.Page.ClientScript.RegisterStartupScript() +++ Rick --- "WebBuilder451" <WebBuilder451 (AT) discussions (DOT) microsoft.com> wrote in message news:20874C50-F101-4C2C-B6D4-2FB435C135AC (AT) microsoft (DOT) com... I can reference thie object in a page directly, but can not get it to work when i create a user control. The message i get is: Reference to a non-shared member requires an object reference. i believe i understand why it will not work, but i'm not sure how to pass the page reference to a control? Public Sub pop(ByVal szUrl As String) ClientScript.RegisterStartupScript _ (Me.GetType, "popup", "window.open('" & _ "http://www.iknowtek.com" & "','_blank','menubar=no')", True) End Sub *** and VS.net does not that ClientScript thanks KES -- thanks (as always) some day i''m gona pay this forum back for all the help i''m getting kes |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |