Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Rick Strahl [MVP] #1
Re: referenceing ClientScript.RegisterStartupScript in control
I think you want me.Page.ClientScript.RegisterStartupScript()
+++ Rick ---
"WebBuilder451" <WebBuilder451@discussions.microsoft.com> wrote in message
news:20874C50-F101-4C2C-B6D4-2FB435C135AC@microsoft.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
> kesRick Strahl [MVP] Guest
-
ClientScript.RegisterClientScriptBlock in ASP.NET 2.0
I am working on converting my code from ASP.NET 1.1 to ASP.NET 2.0. In ASP.NET 1.1 the RegisterClientScriptBlock method was just a key and script... -
DHTML and RegisterStartupScript
I have some DHTML actions which work very well at a page level. However when I take everything and make a control it just falls apart. Everything... -
RegisterStartupScript firing at the wrong time
I have a weird thing going on. I think I've figured out what's causing my problem, but I can't find any way to fix it. I have a custom server... -
client side script with RegisterStartupScript issue
no, you can not control the order the blocks are rendered. you can concat the scripts and register them once. also if you are doing code like: ... -
RegisterClientScriptBlock & RegisterStartupScript revisited
Duh! As is often the case, I found the answer about the comment tags after I hit send. I would sill like to know about the difference in the 2... -
WebBuilder451 #2
Re: referenceing ClientScript.RegisterStartupScript in control
Rick, you're a fine American! When ever you get to Chicago i got you covered
for a lunch!
KES
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"Rick Strahl [MVP]" wrote:
>
> I think you want me.Page.ClientScript.RegisterStartupScript()
>
> +++ Rick ---
>
>
> "WebBuilder451" <WebBuilder451@discussions.microsoft.com> wrote in message
> news:20874C50-F101-4C2C-B6D4-2FB435C135AC@microsoft.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
> > kesWebBuilder451 Guest



Reply With Quote

