Home All Groups Group Topic Archive Search About
Author
14 Jul 2006 12:41 PM
Henrik Stidsen
I´m developing a WebControl and need to access the Page object
(Page.ClientScript actually) - how can I do this ?

Author
14 Jul 2006 1:49 PM
Jerry C
Henrick,
This is the code I am using in a "user web control" that I placed in a web
zone.


Dim cstype As Type = Me.GetType()
Page.ClientScript.RegisterClientScriptBlock(cstype, "ShowCtlMessage",
"alert('All Search entries are empty. Enter search data. ');", True)
--
Jerry


Show quoteHide quote
"Henrik Stidsen" wrote:

> I´m developing a WebControl and need to access the Page object
> (Page.ClientScript actually) - how can I do this ?
>
>
Author
17 Jul 2006 9:29 AM
Henrik Stidsen
Jerry C skrev:

> Henrick,
> This is the code I am using in a "user web control" that I placed in a web
> zone.

I got it to work - well, some of it...
Turned out that I could not reference the Page object from the control
constructor, it works fine from the Init event.

The problem now is that the WebResource.axd returns no content... :/