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
Hari Shanker
NA
260
33.9k
Invoking the JavaScript Function from server side
Mar 21 2016 8:45 AM
Hi Everyone,
I want to call the Java Script function in code behind from the page load of master page .
function MyFunction() {
var hiddenvalue = document.getElementById('sometext').value;
if (hiddenvalue == 'Hindi') {
document.getElementById("someid").innerText = "HindiText";
else
{
//english text
}
and in the body i have called the onloadevent(<body onload="MyFunction">
but the problem is when i am invoking the above function from code behind the text is not changing
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "MyFunction", "MyFunction();", true);
Thanks,
Hari
Reply
Answers (
5
)
How can I show a particular msg for every type of exception?
Performance improvement