开发者

Create an assembly in a Web Application project in Visual Studio 2008

开发者 https://www.devze.com 2023-02-18 00:40 出处:网络
In a Web Application project in VS08, how do you create an assembly? E.g. you derive a class based on HtmlGenericControl to form your own div, override the ClientId and UniqueId properties, so as not

In a Web Application project in VS08, how do you create an assembly? E.g. you derive a class based on HtmlGenericControl to form your own div, override the ClientId and UniqueId properties, so as not to get screwed up id's on the client-side, and then you want to use/reference this control in an aspx page开发者_如何学编程.

Please refer to David Lively's answer (c# control names) regarding the same thing. I have tried his solution but I keep getting "could not load assembly file".


I'm not sure what you mean? You create an assembly the same way as with any other kind of project - create a class library.

It sounds like you're talking about creating a control, though. Use File->Add New Project and choose "ASP.NET Control Library".

0

精彩评论

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