Can client-side script be included in a user control (ascx)?

M

msdn

I am creating a simple usercontrol (.ascx). There is some client-side
functionality I would like it to have. I tried adding in a Script
element, but that did not work. Do I have a bug or is it simply that
client-side script cannot be compiled into a user control? Thanks.

--Isaac
 
T

Teemu Keiski

There shouldn't be anything that would prevent this from working. What kind
of user control i.e what functionality and what kind of script is it in
question?
 
M

MSFT

When you edit the Usercontrol (.ascx) , you can switch to the HTML view and
add the script block like:

<Script Language=Javascript>
...
</Script>

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,102
Messages
2,570,646
Members
47,248
Latest member
MargretYhh

Latest Threads

Top