Asked By srilatha janakaraj
27-Feb-06 06:31 PM
Hi,
This is how my table looks like
<table>
<TR id="row1" style="display:none">
<td>lblName1, lblID1, lblStatus1</td>
<td> File1</td>
</tr>
<TR id="row2" style="display:none">
<td>lblName2, lblID2, lblStatus2</td>
<td> File2</td>
</tr>
...
</table>
I have a javascript function that will make a specific # of my table rows from invisible to visible.
function show_rows($num) {
//Loop through rows until $num...set display style accordingly
for (var $i=1; $i<=$num; $i++) {
//Change the style to make visible
document.getElementById('row'+$i).style.display = "";
}
}
</script>
My C# code behind has a function called "Build_BulkUpload" which will receive the number of users chosen for BUlk Upload.
Depending on that number, I want to turn certain # of table rows from invisible to visible.
So how can I call the "show_rows" javascript function from my C# function "Build_BulkUpload" ??