hi,
i am taking one master page and 3 childpages. i am writing java script function in one child page(page1). in page2,page3 i am not write javascript. page1 javascript function name is call in body tag of masterpage. like .
i provide links to all pages. my problem is when i click page2 or page3 it display one error in runtime i.e., "Microsoft JScript runtime error: Object expected". if i click page1 link it goes directly to page1, problem occured when i goes to page2,page3.
this error tells this check() function is not available in page2(,page3 how to load?). so this error occured,
how to solve this error please give a solution.
Thanks.
Loading
Dipa AhujaPosted May 8, 2010, 9:17 AM
ajay rajuPosted May 8, 2010, 8:14 AM
i am writing function in masterpage. first explain my javascript function i write a function i.e., check(). This function count the characters in textbox and display characters in another textbox, in that page1 i take 2 textboxes and button i write script for 2 textboxes, OK.
if i write javascript function in master page in that page not contain controls means i used 2 textboxes in Page1, These controls are not available in Master page. and i write function in master page here one error display i.e., "it tells textbox names are not declared."
here we can do one thing if any possibility to call child page controls in master page, we can do that.
I know how to call master page control in child page. but is it possible to call child page controls in master page?
if u know plese help me.
Thanks.
Dipa AhujaPosted May 6, 2010, 8:57 AM