Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<b></b>When i use my page after applying Master Page then the java script in my Page Not work Properly<please help me fast
Posted
Comments
Prerak Patel 3-Nov-11 2:53am    
Without seeing your code?! Uh, can't.

1 solution

Check reference of your JavaScript file is correct.

Also run-time Ids of your controls gets changed when you use Master Page. This could be a cause of your Problem.

Try by using below syntax to get run-time Ids of your controls.
JavaScript
var txtTestId = '<%= txtTest.ClientID %>';
 
Share this answer
 
Comments
Vishwajeet Singh Chouhan 3-Nov-11 3:28am    
thank you for answering,
my simple alert box is showned but it still not working please will u suggest me something else.
RaisKazi 3-Nov-11 3:40am    
That means no problem with reference. Do check for Ids, as I mentioned above. Without looking at your code, I can only hit in a Dark. :)
Vishwajeet Singh Chouhan 4-Nov-11 0:55am    
thanks,it start working now,really a very thanks to you for your guidence,its the id problem
RaisKazi 4-Nov-11 6:08am    
You are welcome. :) Do not forget to click on "Accept Answer". :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900