It can be accomplished in below way:
In ASPX file:
<asp:Button id="btnTarget" runat="server" Text="Target" OnClick="btnTarget_OnClick"/>
In code behind (.cs) file:
//First put the namespace of your target class in using block
protected void btnTarget_OnClick(object sender, EventArges e)
{
//Target.NameSpace.TargetClass target = new Target.NameSpace.TargetClass(); // without using namespace in using blcok
TargetClass target = new TargetClass(); // you can use direct Namespece here
target.TargetMethod();
}
Update:
Put your code of TargetClass in App_Code folder which will be available around the application, the TargetClass should be public access modifier.