Welcome aboard! We are happy you are here and wish you good net-raft!
<% @Page Language="C#" %>
<!-- code section -->
<script runat="server">
private void test1(object sender, EventArgs e)
{
int[] array = new int[10];
array[0] = 1;
string your_array = "";
for (int i = 0; i < 10; i++)
{
array[i] = i + 1;
}
for (int i = 0; i < array.Length; i++)
{
your_array = your_array + array[i] + " ";
}
changed_text.InnerHtml = your_array; 
}
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<input runat="server" id="button1" type="submit" value="Click" OnServerClick="test1"/>
<hr />
<h3> Results: </h3>
<span runat="server" id="changed_text" />
</form>
</body>
</html> 
The most helpful C# solutions
detect ie C#C# Click to see more ... 4.7K 853