Monday, September 7, 2015
Send a Email Using Asp.net and C#
protected void sendEmail()
{
using (MailMessage message = new MailMessage())
{
message.From = new MailAddress("from_address@gmail.com");
message.To.Add(new MailAddress("to_address@test.med.sa"));
//message.CC.Add(new MailAddress("copy@domain.com"));
...
Asp.net Repeater Export to Excel using c#
protected void btnExport_Click(object sender, EventArgs e)
{
{
Response.ClearContent();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment;filename=Excel-Filename.xls");
Response.Charset = "";
Response.ContentType = "application/excel";
...