hi,i have a faunction like this:
[WebMethod]
public bool setstatus(int bid)
{
Models.mBlockTextContext ctx = new mBlockTextContext();
var bselect = (from b in ctx.mBlocksLists
where b.BlockID == bid
select b).FirstOrDefault();
if (bselect != null)
{
bselect.BlockStatus = !bselect.BlockStatus;
ctx.SaveChanges();
return bselect.BlockStatus;
}
return false;
}this is in my webservice
i have a button,i want to write the code,that when button is clicked,some string will be printed on page with ajax
how can i do?