Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Reply
Access java script local variable in C#
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Nilesh Barne
8 years ago
301
1
Reply
Hello Everybody,
Friends I have problem in using local variable of java script in the java script function.
I am using code
<script language="javascript" type="text/javascript">
function CharacterCount() {
var txtMessage = document.getElementById('<%= txtMessage.ClientID %>');
var numberOfChars = txtMessage.value.length;
<%= this.txtchracters.Text = numberOfChars%>
}
But it is not accessing the local variable of java script function "numberOfChars" while assigning to this.txtchracters.Text
Please suggest me some technique to overcome this problem.
Thanks
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Textbox in asp.net
How can i record the number of visits to my website ?