Skip to content
Loading
 }  
  • @*class="center">ibexPatients*@  
  • class="center">ibexPatients  
  • class="table table-condensed table-bordered table-striped table-hover">  
  •   
  • SequenceID  
  • ArrivalDate  
  • FirstName  
  • LastName  
  • MedicalRecordNumber  
  • AccountNumber  
  • IbexFile  
  •   
  • @{ int i = 1;}  
  • @foreach (var p in Model)  
  • {  
  • class="@(i++ % 2 == 0 ? "highlighted" : "")">  
  • @p.PatID  
  • @p.ArrivalDate  
  • @Html.ActionLink(@p.FirstName, "details")  
  • @p.LastName  
  • @p.MedicalRecordNumber  
  • @p.AccountNumber  
  • @Html.ActionLink(@p.Ibexfile, "details")  
  •   
  • }  
  •   
  • @section Scripts  
  • {  
  • @Scripts.Render("~/bundles/jqueryval")  
  • }  
  • My "Index.cshtml" page :
    1. @model IEnumerable   
    2. @{  
    3. ViewBag.Title = "IbexPatients Search";  
    4. }  
    5. @{ Layout = null;  
    6. }  
    7.   
    8.   
    9.   
    10. "viewport" content="width=device-width" />  
    11. Index  
    12.   
    13.   
    14. @using (Html.BeginForm("Index", "Home", FormMethod.Post))  
    15. {  
    16. "0" cellspacing="0">  
    17.   
    18. "2" align="center">Person Details  
    19.   
    20.   
    21. Account Number:   
    22.   
    23. @Html.TextBox("option", "Account Number")  
    24.   
    25.   
    26.   
    27. Medical Record Number:   
    28.   
    29. @Html.TextBox("option", "Medical Record Number")  
    30.   
    31.   
    32.   
    33. First Name:   
    34.   
    35. @Html.TextBox("option", "First Name")  
    36.   
    37.   
    38.   
    39. Last Name:   
    40.   
    41. @Html.TextBox("option", "Last Name")  
    42.   
    43.   
    44.   
    45.   
    46.   
    47. "submit" value="Search" />  
    48.   
    49.   
    50. }  
    51.   
    52.   
    53.   
    54.   
    55.   
    56.   
    57.   
    58.   
    59.   
    60.   
    61.   
    62.   
    63.   
    64.   
    65.   
    66.   
    67.   
    68.   
    69.   
    70. "float:left ; color:darkorange">  
    71.   
    72. @Html.ActionLink("Detailed List", "customapp", null, new { @style = "font-size : larger; color : Blue;" })  
    73.   
    74.   
    0
  • Ahmed Abdi
    0
    Hi palak!I have implemented exactly the same search feature you are looking for in my clinic project demo under the report part.Article link ---->https://www.c-sharpcorner.com/article/clinic-management-project-using-asp-net-mvc-5/
    0