Jul 20, 2010, 11:48 AM
[CLOSED] Call Javascript Function
Hi,
I have used a javascript function in aspx page.
Regards,
Rameshkumar.T
I have used a javascript function in aspx page.
function VisibleCtl(bMark, bNew, bEdit, bSave, bAttach, bEmail, bMove, bExit) {
<!--Code -->
}
I am trying to call this function from code behind for using following method.bool hasShowMark = false;
bool hasShowNew = false;
bool hasShowEdit = false;
bool hasShowSave = false;
bool hasShowMove = false;
bool hasShowMail = false;
bool hasShowAttach = false;
bool hasShowExit = true;
this.ScriptManager1.AddScript("VisibleCtl(" + hasShowMark + "," + hasShowNew + "," + hasShowEdit + "," + hasShowSave + "," + hasShowAttach + "," + hasShowMail + "," + hasShowMove + "," + hasShowExit + ");");
But it is showing exception.Regards,
Rameshkumar.T
Last edited by geoffrey.mcgill; Jul 21, 2010 at 4:04 AM.