Tuesday 29 May 2012

How to prepare appam in kerala style? Appam recipe

Kerala Appam recipe

Ingredients for Appam recipe

2  cup(s) raw rice soaked for 4-5 hours
4  cups coconut shavings
1  cup(s) cooked rice
a pinch of yeast granules dissolved in some coconut water or little hot water
salt and sugar to taste

How to make Appam?

Drain the soaked rice and grind it along with the coconut shavings and cooked rice to a fine thick paste. Do not add too much water. Coconut water may be preferably used instead of water for grinding. Add the yeast and mix lightly. Mix in the salt and sugar to taste. Allow to ferment at room temperature for at least 6 hours.
Heat a small non-stick wok. Pour approximately half a cup of batter and quickly but gently swirl the pan around such that only a thin layer of the batter covers the sides and a thick layer collects at the bottom. Cover with a lid and cook each appam on medium heat for about 3 minute(s) or till the edges have become golden crisp and the centre is soft and spongy. Another sign of doneness would be when the edges start coming off the wok.


Serve it with vegetable stew or chicken stew or egg curry.

Friends I am sure that you will love this recipe. I love it. I prefer you to eat little bit hot.


Kerala appam
Appam


 

 

How to fetch TextArea value in .ashx file?

Definition: Fetch Textarea control value in .ashx file.

Example:
.Ashx file code:-

public void ProcessRequest (HttpContext context)
    {
        context.Response.ContentType = "text/html";
        try
        {
                  var comment = context.Request.Params["ctl00$ContentPlaceHolder1$txtComment"];                      context.Response.Write(comment);
         }
        catch { }
    }


Note:
contentplaceholder : because i have used Master Page.

Wednesday 16 May 2012

How to send email in .Net?or how to send an email from a Gmail address using SMTP server?

Definition: SMTP Server

SMTP protocol is used for sending email . SMTP stands for Simple Mail Transfer Protocol. System.Net.Mail namespace is used for sending email . We can instantiate SmtpClient class and assign the Host and Port . The default port using SMTP is 25 , but it may vary different Mail Servers .
The Gmail SMTP server name is smtp.gmail.com and the port using send mail is 587 and also using NetworkCredential for password based authentication.

Following example shows how to send email in .Net? or How to send email by using your gmail email id?


Example:


using System.Net.Mail;
 
private void SendMail_Click(object sender, EventArgs e)
        {
            try
            {
                MailMessage mail = new MailMessage();
                SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");

                mail.From = new MailAddress("your_gmail_id@gmail.com");
                mail.To.Add("To_emailid@xyz.com");
                mail.Subject = "Test Mail";
                mail.Body = "This is for testing SMTP mail from gmail.";

                SmtpServer.Port = 587;
  SmtpServer.Credentials=new System.Net.NetworkCredential("your_gmail_id@gmail.com", "your_gmail_id_password");
                SmtpServer.EnableSsl = true;

                SmtpServer.Send(mail);
                MessageBox.Show("Mail Send Successfully");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }