I have the following code behind that was, until recently, working fine and dandy!
tbxProdAC.Attributes.Add("onclick", "$('#" + GridView1.ClientID + "').remove();
$('#" + radProdAC.ClientID + "').attr('checked', true);
$('#" + ddlBuyer.ClientID + "').val('--Choose Buyer--');
$('#" + ddlSub.ClientID + "').val('--Choose Sub Category--');
$('#" + ddlProd.ClientID + "').val('--Choose Product--');");
However, ever since I have introduced the notion of content place holders (from a master page), I am repeated getting the Object Expected error.
Now I understand why this is happening, asp.net is amending the control names to take into account the CPH i.e. $('#ctl00_ContentPlaceHolder1_radBuyer').attr('checked', true);
How do I go about reslving this issue, effectively 'renaming' my asp.net controls to take this into account?