15,906,626 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14719027 (Top 3 by date)
Member 14719027
17-Jan-20 6:02am
View
//this is the mail side part.Where the Maild-body content has been written
body = body.Replace("{ServerIDs}", Convert.ToString(emailContent.Rows[0]["Server_ID"])); //Server_ID is an database coloumn name
body = body.Replace("{IPs}", Convert.ToString(emailContent.Rows[0]["IP_Address"])); //IP_Address is an database coloumn name
//this is my dataclass page, where i needed the values dynamically from mail side part
TBDData tb = new TBDData();
DataTable dt = new DataTable();
dt.Columns.Add("Server_ID");
dt.Columns.Add("IP_Address");
DataRow dr = dt.NewRow();
dr["Server_ID"] = " " ; //here
dr["IP_Address"] = " "; //here
dt.Rows.Add(dr);
objMail.Mail(tb, dt, "notification.html");
Member 14719027
17-Jan-20 5:52am
View
values means whatever the data in the database that i needed when i checking the checkbox.
Without typing the values in the datarow, i need to fetch the values automatically.
Member 14719027
17-Jan-20 5:04am
View
dr1[colName] = "value";
Without this "value" , i need to pass the values dynamically from one .cs to another, for email purpose
From this to,
body = body.Replace("{ip}", Convert.ToString(emailContent.Rows[0]["ip1"]));
this,
DataRow dr = dtemailcontent.NewRow();
dr["ip1"] = ***** ;