calling javascript function written in separate js file to validate contentpage controls which inherits masterpage
-
I want to validate each page controls which is inherited from master page. i call this javascript in master page, it is not working, my question is how can we pass each page id to the javascript function when we run the website all the pages form id is showing as aspnetForm.
-
I want to validate each page controls which is inherited from master page. i call this javascript in master page, it is not working, my question is how can we pass each page id to the javascript function when we run the website all the pages form id is showing as aspnetForm.
call this function and simply add the id of some control.. like i have on button control ... btn_add.Attributes.Add("onclick", "return abc('" + fu_file.ClientID + "','"+ddl_sub.ClientID+"');"); i call a function which is on master page and pass two id of two controls.. and in fuction use this id and do watever u want to do.
-
call this function and simply add the id of some control.. like i have on button control ... btn_add.Attributes.Add("onclick", "return abc('" + fu_file.ClientID + "','"+ddl_sub.ClientID+"');"); i call a function which is on master page and pass two id of two controls.. and in fuction use this id and do watever u want to do.
-
what is this fu_file.ClientID and ddl_sub.ClientID. Is it a controls id, then how the javascript file find the form of this controls. what is "fu_file" and what is "ClientID"
they find id of these controls and u can find id of any control and in java script u can get id of any control like this function abc(ID,id) { return confirm('Are you sure you want to save the file '+ document.getElementById(ID).value + ' in process '+document.getElementById(id).value+ "." ); }
-
they find id of these controls and u can find id of any control and in java script u can get id of any control like this function abc(ID,id) { return confirm('Are you sure you want to save the file '+ document.getElementById(ID).value + ' in process '+document.getElementById(id).value+ "." ); }