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(
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


Dorababu MekaRank #457 · 5.5K reputationPosted Mar 21, 2016, 5:30 AM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Mar 21, 2016, 5:20 AM EDT
Joginder BangerRank #360 · 7K reputationPosted Mar 21, 2016, 5:20 AM EDT
Hari ShankerRank #7,001 · 251 reputationPosted Mar 21, 2016, 5:36 AM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Mar 21, 2016, 5:38 AM EDT