ArgumentOutOfRangeException

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span class="x_long_text" id="x_result_box" lang="en <span class="x_hps Index<span class="x_hps out of range.<span class="x_hps The index must<span class="x_hps be a positive number<span>, and its<span class="x_hps size
should not<span class="x_hps exceed the<span class="x_hps size of the collection<span>.<br/>
<span class="x_hps Parameter name<span class=" : index
<span class="x_long_text x_short_text" id="x_result_box" lang="en <span class="x_hps where the error?
<pre class="prettyprint public List<HtmlElement> Select(string string_9)
{
List<HtmlElement> list = new List<HtmlElement>();
foreach (HtmlElement htmlElement in this.wb.Document.All)
{

if (htmlElement.Name == string_9)
{
list.Add(htmlElement);
}
}
return list;
}[/code]
<span class="x_long_text x_short_text" id="x_result_box" lang="en <span class="x_hps so <span class="x_hps call
Select("type")[0].SetAttribute("selectedIndex", "4");<span class="x_long_text x_short_text" id="x_result_box" lang="en <span class="x_hps



View the full article
 
Back
Top