|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
include_once("page")hello
sorry about PHP code in the subject of my question :-P I've created control that uses javascript from separate file and I render SCRIPT tag before I start render my control.All works OK, but when the control is used twice the SCRIPT tag is rendered twice too. Does anybody know, how can I check another instance (first on the Page) of my control?. I thinking about viewstate or walking through Controls collection -- thanks and sorry my english ;-) Matthew use the RegisiterClientScriptBlock(), which was designed for this.
-- bruce (sqlwork.com) Show quoteHide quote "Mattehw" <Matt***@discussions.microsoft.com> wrote in message news:5CA1ACFE-ACB7-4209-8B68-443DE9DB7616@microsoft.com... > hello > sorry about PHP code in the subject of my question :-P > > I've created control that uses javascript from separate file and I render > SCRIPT tag before I start render my control.All works OK, but when the > control is used twice the SCRIPT tag is rendered twice too. > > Does anybody know, how can I check another instance (first on the Page) of > my control?. I thinking about viewstate or walking through Controls > collection > > > -- > thanks and sorry my english ;-) > Matthew
Other interesting topics
Is there a way to detect user screen resolution in server side code?
Do i loose the power of asp.net if i use a custom extension (not .aspx) with IHttpHandlerFactory what is Request.ServerVariables how to make VS auto suggest properties during dev Newbie on Session State Unable to map the debug start page URL to a machine name User Controls in 2.0 Getting user password from Active Directory Onmouseover Event, Cursor property not working with Netscape or Firefox A really complete list of tools for .Net development |
|||||||||||||||||||||||