Home All Groups Group Topic Archive Search About
Author
10 Jun 2005 2:26 PM
Mattehw
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

Author
10 Jun 2005 3:43 PM
Bruce Barker
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

Bookmark and Share