Posts

Showing posts from December 31, 2018

how to use loader in Angular 7

Install ngxspinnerservicr Npm package Import {ngxspinnerservicr}from 'ngx-spinner' Constructor(private spinner:Ngxspinnerservicr) Create a function- Spinnersloding(){ this.spinner.show(); setTime((=>{this.spinner.hide();}, 5000);}

How to Send Email code in c#

The following method sends mail to another user in C sharp Add Namespace File, using System.Net; using System.Net.Mail;  Public void SendEmail (string Message, string EmailID)         {             try             {                 MailMessage mail = new MailMessage();                 mail.From = new MailAddress("sudamtambe44@gmail.com");                 mail.To.Add(EmailID);                 mail.Subject = "Application Status";                 mail.Body = Message;                 SmtpClient smtp = new SmtpClient("smtp.office365.com", 587);                 smtp.EnableSsl = true;       ...

How to Show Javascript Alert Message in c#

if(condition) { Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('sorry you are not authorized to view this page')", true);   return; } else { }

Popular posts from this blog

String Program in C#

Extension Method & Partial Class

CSV using XmlNode