|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Register clientscript resourceI´m developing a WebControl and need to access the Page object
(Page.ClientScript actually) - how can I do this ? 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) -- Show quoteHide quoteJerry "Henrik Stidsen" wrote: > I´m developing a WebControl and need to access the Page object > (Page.ClientScript actually) - how can I do this ? > > Jerry C skrev:
> Henrick, I got it to work - well, some of it...> This is the code I am using in a "user web control" that I placed in a web > zone. 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... :/
Hyperlink control - embedded spaces converted
Auto Postback Handling in controls Setting Properties in a Composite Control... How to have either/or steps in a wizard WebPartManager1.CloseWebPart Error Programmatically listening for an event? Multi-line textbox scrolled to bottom? Problem handling event in a button inside a Datalist Newbie: Calendar question? UserControl loaded dynamically multiple times on same page....client js problem |
|||||||||||||||||||||||