Article View: be.comp.programming
Article #9250array's c#
From: T-D!X
Date: Sun, 19 May 2002 07:28
Date: Sun, 19 May 2002 07:28
60 lines
2374 bytes
2374 bytes
Exception Details: System.IndexOutOfRangeException: Index was outside the
bounds of the array.
dit is men foutmelding echt leuk is het nie ma ik zie geen enkele fout
zitten
heb nen array gemaakt die zich zelf opvult en daarna zou ik hem moeten
kunnen lezen via een htm bestand in een tabel
<%@ Page language="c#" %>
<html>
<head>
<title>WebForm12</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<script runat=server>
void Page_Load()
{
string[,] vNet = new string[4,4] ;
string vOpvullen ;
for(int r=0; r<4; r++)
{
for(int k=0; k<4; r++)
{
vNet[r,k] = "row " + r + "kol " + k;
}
}
vOpvullen = "<table border=1>";
for(int r=0; r<4; r++)
{
vOpvullen = vOpvullen + "<tr>";
for(int k=0; k<4; r++)
{
vOpvullen = vOpvullen + "<td>" + vNet[r,k] + "</td>";
}
vOpvullen = vOpvullen + "</tr>";
}
vOpvullen = vOpvullen + "</table>";
txtInfo.Text = vOpvullen;
}
</script>
</head>
<body MS_POSITIONING="GridLayout">
<form id="WebForm12" method="post" runat="server">
<asp:Label Runat=server ID=txtInfo/>
</form>
</body>
</html>
Technical Details
Message-ID:
<SuIF8.939$J%2.402246695@hestia.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.infoave.net!skynet.be!skynet.be!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,ea26880be4c3d4d,start X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-05-19 00:28:53 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.infoave.net!skynet.be!skynet.be!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail From: "T-D!X" <PrinceBelial@msn.com> Newsgroups: be.comp.programming Subject: array's c# Lines: 62 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <SuIF8.939$J%2.402246695@hestia.telenet-ops.be> Date: Sun, 19 May 2002 07:28:50 GMT NNTP-Posting-Host: 213.118.40.34 X-Complaints-To: abuse@telenet.be X-Trace: hestia.telenet-ops.be 1021793330 213.118.40.34 (Sun, 19 May 2002 09:28:50 CEST) NNTP-Posting-Date: Sun, 19 May 2002 09:28:50 CEST Organization: Telenet Internet