TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nilesh Barne
1.7k
47
1.2k
Access java script local variable in C#
Dec 4 2015 2:20 AM
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
Reply
Answers (
2
)
Textbox in asp.net
Crystal report