Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to use JavaScript?

Reply
Thread Tools

How to use JavaScript?

 
 
ruca
Guest
Posts: n/a
 
      03-04-2004
How can I use JavaScript with my ASPX page wicth is using VB programming?

I have a javascript clock that want ot use in my page, but don't
--

Thank's (if you try to help me)
Hope this help you (if I try to help you)
rucawork.


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      03-04-2004
JavaScript is client-side scripting, embedded in the HTML of a page, and
runs in the browser. VB.Net is server-side programming which creates the
HTML in the page. You use JavaScript in an ASP.Net page the same way you
would in a static HTML page. You can use your server-side programming to
generate the JavaScript and add it to the page if you wish.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"ruca" <> wrote in message
news:...
> How can I use JavaScript with my ASPX page wicth is using VB programming?
>
> I have a javascript clock that want ot use in my page, but don't
> --
>
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> rucawork.
>
>



 
Reply With Quote
 
 
 
 
Stanley
Guest
Posts: n/a
 
      03-04-2004
If you are referencing an external JS file you can do it just like you do in
any page.
<script language="javascript" src="myJS.js"></script>

if you need to make a call from a link or button or something then you can
add an attribute to the control.

myControl.Attribute.Add("onclick","myJSFunction(); ")

You can also look up "RegisterClientScriptBlock" and/or
"RegisterStartupScript".

-Stanley

"ruca" <> wrote in message
news:...
> How can I use JavaScript with my ASPX page wicth is using VB programming?
>
> I have a javascript clock that want ot use in my page, but don't
> --
>
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> rucawork.
>
>



 
Reply With Quote
 
ruca
Guest
Posts: n/a
 
      03-04-2004
Yes I have a JS file, where I have show_clock function to call. I calling
her like this<body onload="show_clock()">, but nothing happens. The clock
don't appear.

In your opinion what should I do? Use "RegisterClientScriptBlock" and/or
"RegisterStartupScript".? If yes, how can I use them?


--

Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca




"Stanley" <> escreveu na mensagem
news:...
> If you are referencing an external JS file you can do it just like you do

in
> any page.
> <script language="javascript" src="myJS.js"></script>
>
> if you need to make a call from a link or button or something then you can
> add an attribute to the control.
>
> myControl.Attribute.Add("onclick","myJSFunction(); ")
>
> You can also look up "RegisterClientScriptBlock" and/or
> "RegisterStartupScript".
>
> -Stanley
>
> "ruca" <> wrote in message
> news:...
> > How can I use JavaScript with my ASPX page wicth is using VB

programming?
> >
> > I have a javascript clock that want ot use in my page, but don't
> > --
> >
> > Thank's (if you try to help me)
> > Hope this help you (if I try to help you)
> > rucawork.
> >
> >

>
>



 
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
Could not use ''; file already in use. M K ASP .Net 11 04-09-2008 11:35 AM
where to use CPLD & where to use FPGA? kulkarku@math.net VHDL 6 03-06-2006 07:27 AM
Can I use XPath or something to a remote Mac or Linux box and just query an xml file, not using web services and use encyrption? jake ASP .Net 0 07-06-2004 02:16 PM
Cannot use the profile "default" because it is in use, not. please.post@yur.re.ply Firefox 1 07-04-2004 03:41 AM



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