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 KumarPosted Oct 23, 2012, 5:10 AM
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]")
Anil KumarPosted Oct 28, 2012, 7:48 AM
Guest UserPosted Oct 26, 2012, 5:08 PM
Anil KumarPosted Oct 23, 2012, 8:04 AM
Guest UserPosted Oct 23, 2012, 7:28 AM
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?