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".
精彩评论