how to bulk print using asp.net, c#
<p>when i enter roll no it displays name, marks obtained in all subjects and pass/fail of the student and i can print clicking on print button. But the problem is i want to print all students record continuously by clicking only one time on [Print] button.
I used loop like this</p>

<pre><code>for(int i=1;i&lt;studentno.count;i++)
{
     bindgrid(i); // i is the roll no of the student
     Session["ctrl"] = Panel1;
     ClientScript.RegisterStartupScript(this.GetType(), "onclick", "&lt;script language=javascript&gt;window.open('Print.aspx','PrintMe','height=300px,width=300px,scrollbars=1');&lt;/script&gt;");
}
</code></pre>

<p>but it prints only the last one.</p>
