Encapsulate all logic in a class library :
public class MyBusinessLogic
{
public bool DoSomethingWithFormData(string val1, string val2)
{
//do your logic here...
}
}
And create your Aspx page , in the code behind use :
protected void YourButtonOnPage_Click(object sender, EventArgs e)
{
MyBusinessLogicm = new MyBusinessLogic();
m.DoSomethingWithFormData(txt1.Text,txt2.Text);
}
In this way you have to publish only a dll and an aspx page. Note that the code is not clean.. don't pass textbox data to business in this way but do some validation first.