Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Script manager equivalent... How can I do?

Reply
Thread Tools

Script manager equivalent... How can I do?

 
 
ThunderMusic
Guest
Posts: n/a
 
      02-14-2007
Hi,
I know there is something called (something like) Script Manager in asp.net
AJAX... What is the best way of achieving the kind of behavior it has? I
mean, maybe I didn't understand it correctly, but as I understand it, many
(if not all) asp.net AJAX control gets the Script manager (in the Head of
the page) and send the script is must have in the page header... I want to
achieve the same... what is the best way?


 
Reply With Quote
 
 
 
 
ThunderMusic
Guest
Posts: n/a
 
      02-14-2007
oups, sorry, I sent it inadvertadly... so, as I was saying, What is the
best way to achieve this?

1) Put it in the head, then in my controls, get the page and go through all
the controls to find the script manager, then keep a reference to it for
future use?
2) Create a web control that will also be a singleton (is it possible)
3) any other ideas?

thanks

ThunderMusic

"ThunderMusic" <> wrote in message
news:%...
> Hi,
> I know there is something called (something like) Script Manager in
> asp.net AJAX... What is the best way of achieving the kind of behavior it
> has? I mean, maybe I didn't understand it correctly, but as I understand
> it, many (if not all) asp.net AJAX control gets the Script manager (in the
> Head of the page) and send the script is must have in the page header...
> I want to achieve the same... what is the best way?
>



 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      02-14-2007
Hi,

why not using something that's already done? E.g use the ScriptManager
itself.

In your control you can use System.Web.UI.ScriptManager.GetCurrent
(shared/static method taking the Page in) to get the ASP.NET Ajax
ScriptManager on the Page (method returns null if it doesn't exist)

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"ThunderMusic" <> wrote in message
news:%...
> oups, sorry, I sent it inadvertadly... so, as I was saying, What is
> the best way to achieve this?
>
> 1) Put it in the head, then in my controls, get the page and go through
> all the controls to find the script manager, then keep a reference to it
> for future use?
> 2) Create a web control that will also be a singleton (is it possible)
> 3) any other ideas?
>
> thanks
>
> ThunderMusic
>
> "ThunderMusic" <> wrote in message
> news:%...
>> Hi,
>> I know there is something called (something like) Script Manager in
>> asp.net AJAX... What is the best way of achieving the kind of behavior it
>> has? I mean, maybe I didn't understand it correctly, but as I understand
>> it, many (if not all) asp.net AJAX control gets the Script manager (in
>> the Head of the page) and send the script is must have in the page
>> header... I want to achieve the same... what is the best way?
>>

>
>


 
Reply With Quote
 
ThunderMusic
Guest
Posts: n/a
 
      02-14-2007
just because we're not using asp.net Ajax for our site... I used this
example because I looked at asp.net ajax briefly in the past months, but
we're not planning on using it right now... but you answered my question
anyway, asp.net ajax script manager is used by getting a reference using a
static method... that's what I wanted to know...

Thanks a lot

ThunderMusic

"Teemu Keiski" <> wrote in message
news:E4F92BD1-15EE-4BB4-BAA0-...
> Hi,
>
> why not using something that's already done? E.g use the ScriptManager
> itself.
>
> In your control you can use System.Web.UI.ScriptManager.GetCurrent
> (shared/static method taking the Page in) to get the ASP.NET Ajax
> ScriptManager on the Page (method returns null if it doesn't exist)
>
> --
> Teemu Keiski
> AspInsider, ASP.NET MVP
> http://blogs.aspadvice.com/joteke
> http://teemukeiski.net
>
>
> "ThunderMusic" <> wrote in message
> news:%...
>> oups, sorry, I sent it inadvertadly... so, as I was saying, What is
>> the best way to achieve this?
>>
>> 1) Put it in the head, then in my controls, get the page and go through
>> all the controls to find the script manager, then keep a reference to it
>> for future use?
>> 2) Create a web control that will also be a singleton (is it possible)
>> 3) any other ideas?
>>
>> thanks
>>
>> ThunderMusic
>>
>> "ThunderMusic" <> wrote in message
>> news:%...
>>> Hi,
>>> I know there is something called (something like) Script Manager in
>>> asp.net AJAX... What is the best way of achieving the kind of behavior
>>> it has? I mean, maybe I didn't understand it correctly, but as I
>>> understand it, many (if not all) asp.net AJAX control gets the Script
>>> manager (in the Head of the page) and send the script is must have in
>>> the page header... I want to achieve the same... what is the best way?
>>>

>>
>>

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Cisco CW Campus Manager, CW Common Service, CW Device Fault Manager, CW Recource Manager Essentials, NGenious RealTime Monitor, CiscoWorks Routed WAN Management Solution v1.3 [3 CDs], CiscoWorks VPN_Security Management Solution v2.2, CiscoWorks QoS P astra35 Cisco 0 05-19-2004 01:01 PM
Help!!How to upgrade campus manager 3.1 in ciscoworks 2000 LMS to campus manager 3.3? zll9527 Cisco 1 02-26-2004 01:14 AM
Cisco CW Campus Manager, CW Common Service, CW Device Fault Manager, CWRecource Manager Essentials, NGenious RealTime Monitor, CiscoWorksRouted WAN Management Solution v1.3 [3 CDs], CiscoWorks VPN_SecurityManagement Solution v2.2, CiscoWorks QoS Poli TEL Cisco 0 01-17-2004 07:09 AM
Cisco CW Campus Manager, CW Common Service, CW Device Fault Manager, CWRecource Manager Essentials, NGenious RealTime Monitor - new ! TEL Cisco 0 12-31-2003 07:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57