Friday, December 3, 2010
Sending Email with System.Net.Mail
.NET 2.0 includes much richer Email API support within the System.Net.Mail code namespace. I've seen a few questions from folks wondering about how to get started with it. Here is a simple snippet of how to send an email message from “sender@foo.bar.com” to multiple email recipients (note that the To a CC properties are collections and so can handle multiple address targets):
MailMessage message = new MailMessage();
message.From = new MailAddress("sender@foo.bar.com");
message.To.Add(new MailAddress("recipient1@foo.bar.com"));
message.To.Add(new MailAddress("recipient2@foo.bar.com"));
message.To.Add(new MailAddress("recipient3@foo.bar.com"));
message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient();
client.Send(message);
System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system (so for ASP.NET applications you’d configure this in your application’s web.config file). Here is an example of how to configure it:
<system.net>
<mailSettings>
<smtp from="test@foo.com">
<network host="smtpserver1" port="25" userName="username" password="secret" defaultCredentials="true" />
smtp>
mailSettings>
system.net>
Hope this helps,
BY
A.Mohamed Ileeyas (A MD I)
Learn English From Oxford Dictionary
Learn English From Oxford Dictionary
Oxford’s dictionaries for learners of English give the help and support you need to expand vocabulary and use words correctly. We explain words using language learners understand, with illustrations for difficult words, and help with grammar and pronunciation.
http://oxforddictionaries.com/page/learnersofenglish/for-learners-of-englishLearn English From Oxford Dictionary
I Gate Fresher Opening in Bangalore
IGATE invites 2010 B.E. / B.Tech / MCA Freshers to walk-in for a recruitment drive
Date: Sunday, 5th December 2010
Venue: NEW HORIZON College of Engineering, Sarjapur - Marathalli Ring Road, Bangalore
Registration: 5th December 2010 From 8:00 AM – 2:00 PM ( No Prior Registration )
Candidates MUST meet ALL of the following criteria:
1. B.E., B.Tech or MCA graduates are ONLY eligible to participate
2. Candidates MUST have 60% and above (from 10th onwards) in academics
3. Candidates MUST not have any gaps in education
4. B.E. / B.Tech candidates MUST have graduated in the following streams - Computer Science, Information Technology, Information Science, Electronics & Communication, Electronics & Electrical, Electrical, Electronics & Telecommunications, Mechanical, Industrial Production, and Instrumentation
ONLY candidates meeting the above listed criteria need to participate in the drive.
Suitable candidates MUST carry the following to the venue:
A. One (1) hard copy of resume duly signed by the candidate
B. One (1) passport size photo
C. Any of the following photo identification - College Identity card OR Driving License OR Voters ID Card OR Passport
D. MUST bring either a blue OR black ball point pen
PLEASE NOTE: Candidates who have undergone the recruitment process with iGATE in the last 6 months need NOT apply / participate.
For clarifications – please email your queries to fresher2010@igate.com.
Date: Sunday, 5th December 2010
Venue: NEW HORIZON College of Engineering, Sarjapur - Marathalli Ring Road, Bangalore
Registration: 5th December 2010 From 8:00 AM – 2:00 PM ( No Prior Registration )
Candidates MUST meet ALL of the following criteria:
1. B.E., B.Tech or MCA graduates are ONLY eligible to participate
2. Candidates MUST have 60% and above (from 10th onwards) in academics
3. Candidates MUST not have any gaps in education
4. B.E. / B.Tech candidates MUST have graduated in the following streams - Computer Science, Information Technology, Information Science, Electronics & Communication, Electronics & Electrical, Electrical, Electronics & Telecommunications, Mechanical, Industrial Production, and Instrumentation
ONLY candidates meeting the above listed criteria need to participate in the drive.
Suitable candidates MUST carry the following to the venue:
A. One (1) hard copy of resume duly signed by the candidate
B. One (1) passport size photo
C. Any of the following photo identification - College Identity card OR Driving License OR Voters ID Card OR Passport
D. MUST bring either a blue OR black ball point pen
PLEASE NOTE: Candidates who have undergone the recruitment process with iGATE in the last 6 months need NOT apply / participate.
For clarifications – please email your queries to fresher2010@igate.com.
Freshers Off Campus 2010 @ Tech Mahindra
Freshers Off Campus 2010 @ Tech Mahindra
CVs to CH0068482@techmahindra.com
Join Ur Buddies and relatives To My Blog and channel www.amditech.tk
CVs to CH0068482@techmahindra.com
Join Ur Buddies and relatives To My Blog and channel www.amditech.tk
Monday, November 29, 2010
Opening for .NET, Memphis, TN-USA
Opening for .NET, Memphis, TN-USA
Memphis, TN
$45/hr C2C
6+ Months
A Senior .Net / C# / SQL Server Developer is needed to expand an IIS application, housed in both a DMZ and internal network. The application is used in the health care industry for appointment scheduling and work flow management.
Required Skills:
- ASP .NET 3.5
- C#
- SQL Server 2005
- Strong Design Skills
- IIS
Preferred Skills/Background:
- SecureIIS
- MSMQ
- WebSphere Business Events Processor
- Health care industry experience
Thanks & have a nice day,
Suresh
First Soft Solutions
Email: suresh@firstsoftsolutions.net | Phone: 732.377.3683 | Mobile: 732.688.3876 | Fax 1.866.569.6621
15 Brook Street, Somerset, New Jersey 08873| www.firstsoftsolutions.net
sureshdk007@yahoo.com catch me live in Yahoo messenger.
$45/hr C2C
6+ Months
A Senior .Net / C# / SQL Server Developer is needed to expand an IIS application, housed in both a DMZ and internal network. The application is used in the health care industry for appointment scheduling and work flow management.
Required Skills:
- ASP .NET 3.5
- C#
- SQL Server 2005
- Strong Design Skills
- IIS
Preferred Skills/Background:
- SecureIIS
- MSMQ
- WebSphere Business Events Processor
- Health care industry experience
Thanks & have a nice day,
Suresh
First Soft Solutions
Email: suresh@firstsoftsolutions.net | Phone: 732.377.3683 | Mobile: 732.688.3876 | Fax 1.866.569.6621
15 Brook Street, Somerset, New Jersey 08873| www.firstsoftsolutions.net
sureshdk007@yahoo.com catch me live in Yahoo messenger.
Friday, October 22, 2010
Pagging In asp.net c#
How To Use Pagging In asp.net c#
In ASPX Page:
PageSize="5" AutoGenerateColumns="false" EmptyDataText="No Result Found" Width="100%"
OnRowCommand="gvVendor_RowCommand" OnSorting="grdView_OnSorting" OnRowDataBound="gvResults_RowDataBound"
CellPadding="4" AllowPaging="true" OnPageIndexChanging="gridView_PageIndexChanging">
Incode Behind :
protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gvVendor.PageIndex = e.NewPageIndex;
gvVendor.DataSource = Binddata();
gvVendor.DataBind();
gvVendor.PageSize = 10;
}
Pagging In asp.net c#
Sorting GridView Columns Manually in Asp.net and c#
private const string ASCENDING = " ASC";
private const string DESCENDING = " DESC";
private const string DESCENDING = " DESC";
public SortDirection GridViewSortDirection
{
get
{
if (ViewState["sortDirection"] == null)
ViewState["sortDirection"] = SortDirection.Ascending;
return (SortDirection) ViewState["sortDirection"];
}
set { ViewState["sortDirection"] = value; }
}
protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
{
string sortExpression = e.SortExpression;
if (GridViewSortDirection == SortDirection.Ascending)
{
GridViewSortDirection = SortDirection.Descending;
SortGridView(sortExpression, DESCENDING);
}
else
{
GridViewSortDirection = SortDirection.Ascending;
SortGridView(sortExpression, ASCENDING);
}
}
private void SortGridView(string sortExpression,string direction)
{
// You can cache the DataTable for improving performance
DataTable dt = GetData().Tables[0];
DataView dv = new DataView(dt);
dv.Sort = sortExpression + direction;
GridView1.DataSource = dv;
GridView1.DataBind();
}










