2010年3月15日 星期一

web C# array and write

int[] myArray1 = new int[]{3,4,3,5,6,1};
Response.Write(Convert.ToString(myArray1[0]));
Response.Write("////
");
int[] numbers = { 4, 5, 6, 1, 2, 3, -2, -1, 0 };
foreach (int i in numbers)
{
Response.Write(i);
Response.Write("
");
}

int a,b,c,d,f;
f = Convert.ToInt16(TextBox1.Text);
b = f;
d = f;
a = f % 10;
b = b - a;
b = b / 10;
Convert.ToString(b);
Response.Write(b);
Response.Write("
");
c = f % 5;
d = d - c;
d = d / 5;
Convert.ToString(d);
Response.Write(d);
Response.Write("
");
Response.Write(TextBox1.Text);


Response.Redirect(http://www.yahoo.com.tw);

沒有留言:

張貼留言