I want to call the codebehind function from jquery.
The aspx file name is group_master.aspx
jquery
function populatecontrol(list, control) {
var id = 0;
var GroupName=document.getElementById('<%=hdnGroupNameCheck.ClientID %>');
if (list.length > 0) {
$.each(list, function (key, value) {
var obj = JSON.parse(value);
document.getElementById('<%=hdnGroupNameCheck.ClientID %>').value=obj.Second;
control.html("Group already exist").append('<a id="editclick" href ="edit('+obj.Second+')">Click here to edit or enquire</a>');
});
}
else
control.text="Group does not exist"
}
Editing ('+ obj.Second +') is an editing function in codebehind.
Thank,
asifa source
share