hello plz help me ,
actually m binding a dropdown list using this code
also [webmethod] invoking fine but the problem is this dropdown gets populated if my page contains
& if m using masterpage & in its content page the dropdown is not populating...
can u tell me y???
Pradeep ShetPosted Jan 21, 2015, 2:49 PM
This is because when u dont have masterpage your client Id for dropdown will be ddlCategory.
But when your page comes with masterpage then this same clientID will change to contentplaceholderID_ddlCatgory.
So your jquery code will not able to find the control . To make it simple use the code like
$('[id$=_ddlCategory]').append(....)
This selector indicates that the control id which ends with _ddlCategory and find it.
Hope this helps you. Plz mark it as answered if it is so.