I would like to create a single control containing a TextBox and a Button but I have never created a custom control before and I am not sure how to do it, this is what I have done :
namespace CustomControls
{
public partial class TBP : TextBox
{
protected void Page_Load(object sender, EventArgs e)
{
}
public TBP()
{
this.Controls.Add(_Button);
}
private Button _Button = new Button();
}
}
redefinerather you will have to define them all. Check for basic tutorials for both and please keep in mind Custom control is difficult as compared to User Control.