Register | Login
Home
Add Question
Add Article
Categories
Latest Articles
Tags
Contact Us
Search:
Search questions and share your knowledge with the world here on Questionpoint.
Home
>
Asp.net 2.0 Interview Questions and Answers
>
How to use javascript in asp.net 2.0 usercontrol
:: Categories ::
Java
Behavioral
HR
management
Sales
C#.Net
J2EE
Teaching
Struts
Marketing
Finance
Sharepoint
Accounting
JSP
General
Servlet
LINQ
Asp.net 2.0
Asp.net 1.1
Asp.net 3.5
Sql Server 2005
sql server 2008
Sql Server 2000
Microsoft CRM
Visual Studio 2008
Visual Studio 2005
Visual Studio 2003
SilverLight
Internet Information Server
J2ME
Hibernate
JBoss
J2SE
Groovy
Vb.Net
USA Immigration
Tricky
Oracle
SAP
PHP
Linux
Resume Writing
Resume Samples
Interview Tips
Other
Asp.Net 4.0
Software Sales
Call Center
BizTalk 2006
Network Support
Help Desk Support
EJB
JDBC
Spring
JSF
Ajax
Javascript
Interview Question in Asp.net 2.0
Interview Question :: How to use javascript in asp.net 2.0 usercontrol
You can write your Client Script blocks directly in your ASPX page between a <script type = "text/javascript" language = "javascript" > </script> block.
If you are using ASP.NET controls you have to use the Control.ClientID when referring to the control (since it will be rendered as an HTML element)
example:
<script type = "text/javascript" language = "javascript" >
var txtBox = document.getElementById( '<%= txtBox.ClientID %>');
//work with your txtBox variable Now.
</script>
For more info, you can check:
http://aspalliance.com/726
http://quickstart.developerfusion.co.uk/...
http://www.developer.com/net/asp/article...
http://weblogs.asp.net/skoganti/archive/...
Hope this helps.
by
ksk
javascript
asp.net 2.0
.NET
java
asp.net
php
Loading ...
Login Here
Sign Up Here
Username
*
Password
*
Username
*
Fullname
*
Password
*
Confirmpassword
*
Email
*
Login Here
Sign Up Here
Username
*
Password
*
Username
*
Fullname
*
Password
*
Confirmpassword
*
Email
*