Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Modal form #2392


User avatar
0
epay created

Hi, can anyone suggest a good tutorial on asp.net boiler plate with Modals. As I am trying to get an edit modal form to populate and allow the saving of changes.

index.cshtml @if (IsGranted(AppPermissions.Pages_Tenant_PayRate_Edit)) { <button title="@L("Edit")" class="btn btn-circle btn-icon-only green edit-payRate" href="javascript"> <i class="icon-pencil"></i> </button> }

_EditPayRateModal.cshtml @Html.Partial("~/Areas/epayday/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditPayRate" + ": " + Model.PayRate.UsedPayRateID)))

<div class="modal-body"> <form role="form" novalidate class="form-validation">

    &lt;div class=&quot;form-group form-md-line-input form-md-floating-label no-hint&quot;&gt;
        &lt;input class=&quot;form-control&quot; type=&quot;text&quot; name=&quot;UsedPayRateID&quot; required maxlength=&quot;@PayRate.MaxUsedPayRateIDLength&quot; value=&quot;@Model.PayRate.UsedPayRateID&gt;
        &lt;label&gt;@L("UsedPayRateID")&lt;/label&gt;
    &lt;/div&gt;

    &lt;div class=&quot;form-group form-md-line-input form-md-floating-label no-hint&quot;&gt;
        &lt;input class=&quot;form-control&quot; type=&quot;text&quot; name=&quot;PayRateType&quot; required maxlength=&quot;@PayRate.MaxPayRateTypeLength&quot;&gt;
        &lt;label&gt;@L("PayRateType")&lt;/label&gt;
    &lt;/div&gt;

This is probably not the best way to go about this. Thanks, epay.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Since you are a customer of AspNet Zero, there are examples of this in our template. I also got your project via email and modified a few files to demonstrate it to you but when I try to send an email, the previous email address I contacted with seems removed.

    Can you send an email to <a href="mailto:[email protected]">[email protected]</a> so I can share my modification of your code with you.

    Thanks.