开发者

How to add a page adaptor to an ASP.NET project?

开发者 https://www.devze.com 2023-02-25 21:18 出处:网络
I want to try the method of saving the viewstate to the DB as mentioned here but am confused by t开发者_如何学Che PageAdaptor part. It says I should use app.browser to direct force my Adaptor to be us

I want to try the method of saving the viewstate to the DB as mentioned here but am confused by t开发者_如何学Che PageAdaptor part. It says I should use app.browser to direct force my Adaptor to be used however, I don't use Visual Studio (using Delphi) so have no App_Browsers folder (if thats where it is) so I do not know how to tell my website that my custom adaptor should be used.

I have tried adding a .browser file to my website root but this doesn't help.

I appreciate I might be acting dumb here, just not sure :)

Thanks.


You need to create an App_Browsers folder inside you ASP.Net Website, then inside this you can create a browsers file like the following BrowserFile.browser :

<!--
You can find existing browser definitions at
<windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers
-->
<browsers>
  <browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.UpdateProgress" adapterType="YourCompany.Web.UI.Adapters.UpdateProgressAdapter" />
    </controlAdapters>
    </browser>
</browsers>
0

精彩评论

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