Programming

//Programming
­
14 11, 2015

Generate Random Numbers in C#

By |November 14th, 2015|Programming|0 Comments

Try these simple steps to create random numbers:
create function
private int randomnumber(int min, int max)
{Random rnum = new Random();
return rnum.Next(min, max);}
Use the above function in a location where you want to use random numbers. Suppose you want to use it in a text box.
textBox1.Text = randomnumber(0, […]

14 11, 2015

HTML Button like a ASP.NET Button

By |November 14th, 2015|Programming|0 Comments

Html tags attributed with runat=”server” are called HtmlControls and you need to handle ServerClick event.
Markup
Submit
Code behind
protected void doIt(object sender, EventArgs e)
{TextBox1.Text = “Hellow World !!!”;}