Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "sampath"

Thanks a lot.But could you tell me why re-sharper unable to navigate that file ? Do I need to do something else ?

Hi, Can you tell me how to find out the value of 'User.MaxEmailAddressLength' ? I tried it by using re-sharper but unable to navigate.Could you tell me why? Thanks.

[Required]
        [EmailAddress]
        [StringLength(User.MaxEmailAddressLength)]
        public string EmailAddress { get; set; }

Hi, Can you tell me is there any apis to use when I need to send emails from my SPA app ? If you can provide any examples or useful links,it's highly appreciated.Thanks.

Note : And how to test the email functionality on localhost ?

Email Popup as shown below :

Hi, Could you tell me which table is used for saving setting's section data ? Thanks.

You're warmly welcome ! :)

Hi, I have done that by using $templateCache service.Cheers :)

app.js

appModule.run(["$templateCache", "$http", function ($templateCache, $http) {
    $http.get('~/App/tenant/views/propertymanagement/tabs/createPropertyForm.cshtml', { cache: $templateCache });
}]);

cshtml page

<uib-tab heading="@L("PropertyInformation")" ng-if="vm.permissions.propertyInformation">
                <div ng-include="'~/App/tenant/views/propertymanagement/tabs/createPropertyForm.cshtml'"></div>
            </uib-tab>

Yes,It's working now when I use as you mentioned above.But now the problem is,it is having considerable amount of delay.Which is noticeable. In other words I need to use it inside the popup.On that popup where having more than 12 tabs.After above template separation, popup shows the tab headings without the html content inside the tab.After the delay it loads the html content.This happens first time only.But it is very BAD user experience.Do you have any trick to improve its performance or other method ? Thanks.

<uib-tab heading="@L("PropertyInformation")" ng-if="vm.permissions.propertyInformation">
              <div ng-include="'~/App/tenant/views/propertymanagement/createPropertyForm.cshtml'"></div>
</uib-tab>

Hi, My app is SPA.So my question is, could you tell me how to use Angular ng-include with the razor page ? One of my page is having more than 12 tabs.So at this moment I have put all the html templates on the same page hence it does not work when I put its own pages.

This is the sample of that page :

<div class="modal-body">
        <uib-tabset class="tab-container tabbable-line">
            <uib-tab heading="@L("PropertyInformation")" ng-if="vm.permissions.propertyInformation">
                <div ng-include="'createPropertyForm.html'"></div>
            </uib-tab>
            <uib-tab heading="@L("OwnerInfo")" ng-if="vm.permissions.ownerInfo">
                <div ng-include="'createOwnerDetailForm.html'"></div>
            </uib-tab>
            <uib-tab heading="@L("DescriptionBpoForm")" ng-if="vm.permissions.descriptionBpoForm">
                <div ng-include="'createBpoForm.html'"></div>
            </uib-tab>
            <uib-tab heading="@L("ForeclosureActions")" ng-if="vm.permissions.foreclosureActions">
                <div ng-include="'createForeclosureActionsForm.html'"></div>
            </uib-tab>
            <uib-tab heading="@L("ResaleInformation")" ng-if="vm.permissions.resaleInformation">
                <div ng-include="'createResaleInformationForm.html'"></div>
            </uib-tab>
            <uib-tab heading="@L("EvaluatorForm")" ng-if="vm.permissions.evaluatorForm">
                <div ng-include="'createEvaluatorForm.html'"></div>
            </uib-tab>
        </uib-tabset>
    </div>

At this moment "createPropertyForm.html, createOwnerDetailForm.html,etc.." templates are on the same page as shown below.

<script type="text/ng-template" id="createPropertyForm.html">
        <form name="createPropertyForm" role="form" novalidate class="form-validation">
            <div class="row">
                <div class="col-xs-4">
                    <div class="form-group form-md-line-input form-md-floating-label no-hint">
                        <input class="form-control" type="text" name="StreetNumber" ng-model="vm.property.address.streetNumber" ng-class="{'edited':vm.property.address.streetNumber}" required maxlength="@Address.MaxLength">
                        <label>@L("StreetNumber")</label>
                    </div>
                </div>
                <div class="col-xs-4">
                    <div class="form-group form-md-line-input form-md-floating-label no-hint">
                        <input class="form-control" type="text" name="StreetName" ng-model="vm.property.address.streetName" ng-class="{'edited':vm.property.address.streetName}" required maxlength="@Address.MaxLength">
                        <label>@L("StreetName")</label>
                    </div>
                </div>

              //removed for clarity

    </form>
    </script>

I have asked this question on stack overflow here : [http://stackoverflow.com/questions/33591784/angular-ng-include-is-not-working-with-the-razor-page])

But I don't know how to apply that solution with the Asp.NetZero SPA template.Could you tell me how ? Thanks.

Aha.. Now it is working : :o OK I'll let you know if it'll not work again.Thanks.

OK sure.Thanks a lot :)

Showing 141 to 150 of 187 entries