Pooja Chowdhury

Pooja Chowdhury

  • NA
  • 396
  • 39.2k

pagination in mvc without using entity framework

Jan 28 2017 12:46 AM
@using (Html.BeginForm("MemberDetails", "Member", FormMethod.Post))
{
         
    <table>
        <tr>
            <td>
                @Html.ActionLink("Search By Phone Number ", "InsertMobile")
            </td>
        </tr>
    </table>


    <table style="width: 100%">
        <tr>
            <th>Screen Name</th>
            <th>Mobile Number</th>
            <th>SmsBalance</th>
        </tr>


        @{

    for (int i = 0; i < Model.StoreAllData.Tables[0].Rows.Count; i++)
    {
        var MemberId = Model.StoreAllData.Tables[0].Rows[i]["MemberId"].ToString();
        var ScreenName = Model.StoreAllData.Tables[0].Rows[i]["ScreenName"].ToString();
        var MobileNo = Model.StoreAllData.Tables[0].Rows[i]["MobileNo"].ToString();
        var SmsBalance = Model.StoreAllData.Tables[0].Rows[i]["SmsBalance"].ToString();
      
            <tr>

                <td>
                    @ScreenName
                </td>

                <td>
                    @MobileNo
                </td>
                <td>
                    @SmsBalance
                </td>
            </tr>
    }
        }
    </table>
}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
i want to add paging for this design

Answers (1)