Monday 16 April 2012

How can we send encypted data using querystring in asp.net

We usually pass value through query string of the page and then this value is pulled from Request object in another page.

FirstForm.aspx.cs

Response.Redirect(“SecondForm.aspx?item1=” + TextBox1.Text);

SecondForm.aspx.cs

TextBox1.Text = Request. QueryString["item1"].ToString();

After Encryption Send data using query string in asp.net

Sunday 8 April 2012

How can we change the forcolor of link button when mouse over button in asp.net


//css file.

body
{
background-color:Black;
}
.simple
{
color: #000080;
}
.simple:hover
{

color: #FF6600;
}


Tuesday 3 April 2012

How can we implement for and foreach loop in c#

For Loop:-

  int[] myname = new int[1];
        int count = 0;
        for (int i = 0; i < myname.Length; i++)
        {
            count += myname[i];
        }