Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

output of function

$
0
0

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?

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>