So Ive written AJAX functions to avoid using update panels before. But i did this by writing all the JS myself, and just learned about webservices that can do the same thing that used to take a bunch of JS. One thing I liked about using my JS solution was that I could write a dynamic page in html and return it as the innerHtml of a div to update the current page I am on. All the examples I have see for webservices show just returning simple strings like names and greetings. I was wondering how I can return a set of html from a webservice. Do I just write the html in the asmx file, or do I ahve to write a bunch of Response.Write code in my code behind.
I like that I can have one service with multiple methods to call to return different data, but if I put html in the asmx file, how do i get it to only return the parts that I want?
Thanks
Please remember to click "Mark as Answer" on this post if it helped you.