問題描述
如何將一個應用程序組裝到另一個應用程序中? (How to use assembly of one application in to another application?)
我想將一個應用程序組裝到另一個應用程序中。一個應用程序“EventCalendar”中有一個程序集,註冊為
<%@ Register TagPrefix="ec" Namespace="ControlCalender" Assembly="EventCalendar" %>
這被用作控制
<ec:EventCalendar runat="server" ID="eventscalendar" DataSourceID="sqldatasource1" BorderWidth="0" DayField="starttime" ShowTitle="true" CssClass="eventmonthtable">
<%‑‑ more code ‑‑%>
</ec:EventCalendar>
現在我想在另一個應用程序中應用相同的功能。我應該如何在另一個應用程序中使用這個程序集?提前致謝。
參考解法
方法 1:
Since you've tagged it as ASP.NET I assuming you want to refer to an assembly in your web application. All you need to do is put the dll in the bin folder of your web app.
Beyond that I think you need to be more specific =)
(by Devashri B.、Fung)