Hi,
You can call javascript function from server side using following function.
Updated:
your javascript function:
function Initialisation(fileName) { var elem = document.getElementById("aaa"); elem.filename = '"+fileName+"'; }
your aspx.cs page:
string fileName = "test.aspx";
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "ScriptRegistration", "Initialisation('"+ fileName +"');", true);
Please do let me know, if you have any doubt.
Please provide "
Vote" if this would be helpful, and make "
Accept Answer" if this would be correct answer.:rose:
Thanks,
Imdadhusen