i want to convert my aspx.cs to dll
- by jay rathod
i have a default.aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btn" runat="server" Text="clicke here" OnClick="btn_Click"/>
<asp:TextBox ID="txt" runat="server"></asp:TextBox>
<asp:Label runat="server" ID="lbl"></asp:Label>
</div>
</div>
</form>
</body>
</html>
and default.aspx.cs :
public partial class _Default : System.Web.UI.Page
{
string test;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btn_Click(object sender, EventArgs e)
{
test = txt.Text;
lbl.Text = test;
}
}
now i want to make the dll of my default.aspx.cs file and remove it from the website and give the reference of it.
so how can i do this??