473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to use JavaScript?

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.
Nov 18 '05 #1
4 1415
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" <ru***@iol.pt> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
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.

Nov 18 '05 #2
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" <ru***@iol.pt> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
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.

Nov 18 '05 #3
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" <we*******@nospam-glass-images.com> escreveu na mensagem
news:uC**************@TK2MSFTNGP12.phx.gbl...
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" <ru***@iol.pt> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
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.


Nov 18 '05 #4
jbh
How can you use attribute.add and src= together??
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.