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)
{
var ints = new int[] {1, 2, 3, 4, 5};
var result = string.Join(",", ints.Select(x => x.ToString()).ToArray());
changed_text1.InnerHtml = result;
string a = "1,2,3,4,5,6";  // 0,1,2
string b = a.Split(',')[2];
changed_text2.InnerHtml = b;
}
</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_text1" /></br>
<span runat="server" id="changed_text2" />
</form>
</body>
</html> 
The most helpful C# solutions
detect ie C#C#
Click to see more ...
5.7K
853
get latitude and longitude from ip address c#C#
Click to see more ...
3.4K
257
get real user country C#C#
Click to see more ...
2.2K
252
Get real client ip address using C# ?C#
Click to see more ...
2.3K
247
check if cookie exists c#C#
Click to see more ...
7.1K
173
get city country region timezone c#C#
Click to see more ...
3.3K
163
How to detect the browser opera using C# in asp.net ?C#
Click to see more ...
2.8K
136
get hostname using C#C#
Click to see more ...
1.6K
127
Get real client latitude and longitude using C# ?C#
Click to see more ...
1.3K
127
how to initialize a connection to mysql database using C# ?C#
Click to see more ...
2.8K
122