开发者

Best practice to develop widget using asp.net on the Server side

Hi I have a hosted web application written in asp.net and 开发者_StackOverflow中文版would like to publish widgets for use in remote websites. For that purpose I believe I want to use embedded widgets over IFrame. I therefore need some client side code to retrieve the widget's HTML from the server. I'd appreciate assistance in the Client\ Server communication. If you have sample code to call a .NET webservice (or any other way) so that I can start by embedding this code within the widget's client UI. I would also appreciate recommendations for the client UI library (JQuery, ...)

Thanks a lot !


Some people find JQuery the best choice for this, but if you would rather not have (or don't need) the overhead of all of the JQuery scripts, you can use a ServiceReference in a ScriptManager to call a .Net WebService. See this example for that. There are also examples of loading the HTML from a UserControl via Javascript too if that route would be more fitting for your needs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜