Hi lingers
Pls Refer below code
HTML
<form id="form1" runat="server">
<asp:Label ID="Label1" runat="server"></asp:Label>
<br />
<asp:Label ID="Label2" runat="server"></asp:Label>
</form>
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
// Bind Label from Database.
Label1.Text = "WT0008918";
int nextNumber = Convert.ToInt32(Label1.Text.Replace("WT", "")) + 1;
Label2.Text = "WT" + nextNumber.ToString().PadLeft(7, '0');
}
VB.Net
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
' Bind Label from Database.
Label1.Text = "WT0008918"
Dim nextNumber As Integer = Convert.ToInt32(Label1.Text.Replace("WT", "")) + 1
Label2.Text = "WT" + nextNumber.ToString().PadLeft(7, "0"c)
End Sub
Screenshot