You have to use Panel Control and for the title use the GroupingText property.
<asp:Panel ID="Panel1" runat="server" GroupingText="My Group" Width="200px">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br/>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</asp:Panel>