Hello forum,
I have a code that generates random 10 digits number. This random number is displayed without a label control to display it and it is displaying in a position where I don’t want it to display. Please how can I make a label control to display this random number?
C#
protected void Button2_Click(object sender, EventArgs e)
{
Random r = new Random();
int num = r.Next();
Response.Write(num.ToString());
}