Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
From my ASP.NET Web App I would like to output a page that other users can embed inside their web pages. I suppose that this can be done only via a Web Service. If this is correct my questions are:
1 - Should I prepare my output building all the HTML dynamically or is there a way to use gridview and other asp.net controls and let them prepare the HTML output
2 - what others should include in their html pages to call my website, catch my output and put it inside a div or any other html
Thanks
Posted

If you wanted to provide some output to users, yes, you would create a service and expose it and well document that output and its structure. It would be up to the consumer of this service as to how they would want to format and use it. You can't assume automatically assume it will be used in a website, or div, or any particular element. End users could always simply use an iframe to embed you asp.net page in the site.
 
Share this answer
 
Well, what exactly are you trying to achieve.

To embed your asp.net:
This can easily be achieved via IFrame. Bascially the hosting page does not need to do anything except provide you with real estate. Depending on your asp.net page design it may or may not fit the given real estate.


If you want to provide data, but you want the hosting page decide on the presentation then you can use webservices. In this case, all you doing is passing them with the data and you don't have to build the html for them. Of course there is nothing that prevents you from returning html on web service calls, but that defeats the whole idea of web services.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900