i want to convert my aspx.cs to dll

Posted by jay rathod on Stack Overflow See other posts from Stack Overflow or by jay rathod
Published on 2014-08-23T16:16:36Z Indexed on 2014/08/23 16:20 UTC
Read the original article Hit count: 260

Filed under:
|
|
|

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??

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET