Question

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

No correct solution

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top