Hi all
i have an asp.net page content that used a master page. i placed a JQuery code in this page content, but it not work. but this JQuery code correctly work in other pages that not used a mater page file.
the Jquery file reference is true. i placed it in both the master page and the page that used it, but it not execute.
why it not work with master page?!?!?!?!
please hep me
"The world is a rose, smell its and pass it to your friends."
Loading

Anil KumarRank #367 · 6.8K reputationPosted Oct 23, 2012, 1:10 AM EDT
When you use master page, your control's ID get changed.
Ex. A control without Master page having ID -> ddlDropDownlistID
Its ID will get changed when you use Master Page and may be like - ctl00_ddlDropDownlistID
So instead of using $("#ddlDropDownlistID") use=> $("#ctl00_ddlDropDownlistID ")
or $("[id$=ddlDropDownlistID]")
Guest User62 reputationPosted Oct 23, 2012, 3:28 AM EDT
very thanks for your answer. i find this answer in the StackOverflow.com site yesterday.
but i have one Question and it is:
why the asp.net must changes the elements name in content page?
Anil KumarRank #367 · 6.8K reputationPosted Oct 23, 2012, 4:04 AM EDT
Guest User62 reputationPosted Oct 26, 2012, 1:08 PM EDT
Anil KumarRank #367 · 6.8K reputationPosted Oct 28, 2012, 3:48 AM EDT