Dear All,
I did pagination controls for HTML table view. please check below the code is not working. please help me to resolved.
Codebhind :
sHTML += "<div style='padding-top:14px;'>"; sHTML += "<table id='tablepaging' width='100%' border='0' cellspacing='0' cellpadding='0'>"; sHTML += "<tr><td width='10' class='promo_corners_TOP_LEFT'></td>"; sHTML += "<td style='border-top:#0b77bc solid 1px;'></td>"; sHTML += "<td width='194' style='border-top:#0b77bc solid 1px;'></td>"; sHTML += "<td width='81' style='border-top:#0b77bc solid 1px;'></td>"; sHTML += "<td width='85' style='border-top:#0b77bc solid 1px;'></td>"; sHTML += "<td width='80' style='border-top:#0b77bc solid 1px;'></td>"; sHTML += "<td width='31' style='border-top:#0b77bc solid 1px;'></td>"; sHTML += "<td width='10' class='promo_corner_TOP_RIGHT'></td></tr>"; sHTML += "<tr><td style='border-left:#0b77bc solid 1px;'> </td>"; sHTML += "<td width='100' rowspan='2' align='center'><img src='" + file + "' width='92' height='89' align='left' /></td>"; sHTML += "<td height='44' class='promo_heading_text'>Promotion</td>"; sHTML += "<td class='promo_heading_text'>Codes Promotion</td>"; sHTML += "<td class='promo_heading_text'>Coupons Remaining </td>"; sHTML += "<td class='promo_heading_text'>Discount</td>"; sHTML += "<td align='center'><a href='#'><img src='images/icon_plus.gif' width='24' height='24' align='middle' /></a></td>"; sHTML += "<td style='border-right:#0b77bc solid 1px;'> </td></tr>"; sHTML += "<tr><td style='border-left:#0b77bc solid 1px;'> </td>"; sHTML += "<td class='promo_BG'><div class='promo_text'>" + dsCurPromo.Tables[0].Rows[i]["title"] + "</div>"; sHTML += "<div class='promo_more'><a href='Details.aspx?id=" + dsCurPromo.Tables[0].Rows[i]["mopon_campaign_id"] + "'>Click here for more details</a></div>"; sHTML += "<div class='promo_remaining'>" + sDaysRemain + "</div></td>"; sHTML += "<td valign='top' class='promo_promocode promo_BG'>" + dsCurPromo.Tables[0].Rows[i]["mopon_code"] + "</td>"; sHTML += "<td valign='top' class='promo_normal promo_BG'>Unlimited</td>"; sHTML += "<td valign='top' class='promo_normal promo_BG'>" + iDisc + "%</td>"; sHTML += "<td align='center' class='promo_BG'><a href='#' onclick=\"javascript:window.open('refferal.aspx')\"><img src='images/icon_refer.gif' width='30' height='30' align='middle' /></a></td>"; sHTML += "<td style='border-right:#0b77bc solid 1px;' class='promo_BG'> </td></tr>"; sHTML += "<tr><td class='promo_corner_BOTTOM_LEFT'></td>"; sHTML += "<td style='border-bottom:#0b77bc solid 1px;'></td>"; sHTML += "<td bgcolor='#d3dfee' style='border-bottom:#0b77bc solid 1px;'></td>"; sHTML += "<td bgcolor='#d3dfee' style='border-bottom:#0b77bc solid 1px;'></td>"; sHTML += "<td bgcolor='#d3dfee' style='border-bottom:#0b77bc solid 1px;'></td>"; sHTML += "<td bgcolor='#d3dfee' style='border-bottom:#0b77bc solid 1px;'></td>"; sHTML += "<td bgcolor='#d3dfee' style='border-bottom:#0b77bc solid 1px;'></td>"; sHTML += "<td class='promo_corner_BOTTOM_RIGHT'></td></tr></table></div>"; } divCurPromo.InnerHtml = sHTML;
aspx page :
Anyhelp will be much more appreciated.
Waiting for your kind responses...