Posts

Showing posts from March, 2018

C# Asp.net The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

Add following line in web.config  <appSettings>       <add key="AWS.S3.UseSignatureVersion4" value="true" /> </appSettings> or refer following URL Click here

Upload Excel File Using Angular 2-3-4-5

Component.Html Design : <div class="ui-g-12 ui-md-6 ui-lg-2" [style]="{'display':'block','margin-top':'0px','height':'34px'}">       <div style="border: 1px solid #ebedf0;padding-top: 10px;margin-top: 10px;padding-bottom:  10px;padding-left: 15px;">                <input type="file" style="display: block;" (change)="incomingfile($event)" placeholder="Upload file" accept=".xlsx" style="background-color: #edeff2; width: 95%;">       </div>     </div>      <div class="ui-g-12 ui-md-6 ui-lg-1" [style]="{'display':'block','margin-top':'0px','height':'34px'}">           <button type="button" class="btn btn-info" (click)="Upload()" [disabled]="!this.file" style="margin-top:18px;">Upload...

Get Current Method Name in Catch Block

This Method use to get current controller or action method name in MVC> ActionContext.ActionDescriptor.ActionName

Send Push Notification to ANDROID Devices

SEND PUSH NOTIFICATION TO ANDROID DEVICES public static string APPSendNotification(string Title, string Text, string DeviceID, CSendNoti Data, int DeviceType = 1)     {         var result = "-1";         try         {             if (!string.IsNullOrEmpty(DeviceID))             {                 var webAddr = "https://fcm.googleapis.com/fcm/send";                 //VAISHALI GEMS                 //string SERVER_API_KEY = "SERVERAPIKEY";                 //string SENDER_ID = "SENDERID";                 string SERVER_API_KEY = "SERVERAPIKEY";                 string SENDER_ID = "SENDERID";     ...

Angular 4: Get Distinct Record From Array List Object Typescript

Angular 4: Get Distinct Record From Array List Object Typescript  this._HeadList =this._AllList.filter(             (obj, idx, arr) => (arr.findIndex((o) => o.Supplier_ID === obj.Supplier_ID) === idx)         );