更新时间:2023-01-14 09:42:20
如果你不想完整的页面刷新那么您可以将控件包装在更新面板中。或者,更好的方法是创建基本的html控件,然后进行Web Service或Web Api调用以执行服务器端代码。 service / api可以以JSON的形式返回数据,可以根据您的需要使用。这只是您应该如何进行的概述,有关详细信息,您可以参考以下内容,或者您应该谷歌搜索各种问题。
http://www.asp.net/web-api [ ^ ]
http://msdn.microsoft.com/en-us/library/8wbhsy70(v=vs.90).aspx [ ^ ]
:)
If you do not want complete page refreshes then you can wrap your controls in an Update Panel. Alternatively, the better way is to create basic html controls and then make Web Service or Web Api calls to execute server side code. The service/api can return data in the form of JSON which can be used as per your needs. This is just an overview of how you should proceed, for more details you can refer to the following, or you should google for a variety of questons.
http://www.asp.net/web-api[^]
http://msdn.microsoft.com/en-us/library/8wbhsy70(v=vs.90).aspx[^]
:)