I have a published project which is used by side company and which can not be updated now. The application got quite some changes which should not be published to this certain URL. Instead on one aspx page.

Question - how can I create DLL for one single aspx page inside big project so I will be able publish only it.

Thank you

没有正确的解决方案

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top