16,016,527 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 .NET 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 Vivek_Sharma (Top 7 by date)
Vivek_Sharma
7-May-12 2:02am
View
The SelectCommand property has not been initialized before calling 'Fill'.
error accured when using this above format of code
Vivek_Sharma
7-May-12 2:00am
View
Deleted
The SelectCommand property has not been initialized before calling 'Fill'.
when i am following this code given above
Vivek_Sharma
4-May-12 1:27am
View
still i am facing problem with this web method in accessing it in javascript function
[WebMethod]
public static void ChangePass(string UserName,string AltEmail,string OldPass,string NewPass,string ComfPass)
{
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Connect"].ConnectionString);
SqlDataAdapter sp = new SqlDataAdapter("select Password from User_Registration where Password='" + OldPass + "'", con);
DataSet ds = new DataSet();
sp.Fill(ds);
if (ds.Tables[0].Rows.Count != 0)
{
SqlDataAdapter dap = new SqlDataAdapter("update User_Registration set Password='" + ComfPass + "' where Email_Id='" + UserName + "'", con);
DataSet ds1 = new DataSet();
dap.Fill(ds1);
MailMessage mail = new MailMessage("tech@xyz.com", AltEmail);
mail.Body = "Email:-" + mail.From + "<br/>" + "New Password:-" + ComfPass;
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.EnableSsl = true;
NetworkCredential NetCre = new NetworkCredential();
NetCre.UserName = "tech@xyz.com";
NetCre.Password = "abc@123";
smtp.UseDefaultCredentials = true;
smtp.Credentials = NetCre;
smtp.Port = 587;
smtp.Send(mail);
}
}
Vivek_Sharma
1-May-12 1:13am
View
thanks for the solution sir
Vivek_Sharma
30-Apr-12 6:24am
View
Sir i am working on travel domain so i am just trying to ask when ever our clients book there tickets then how can i send confirmation mail with there ticket id which will be display on html form, on there E-mail address using c#
Vivek_Sharma
30-Apr-12 6:21am
View
Deleted
Sir i am working on travel domain so i am just trying to ask when ever our clients book there tickets then how can i send confirmation mail with there ticket id which will be display on html form, on there E-mail address using c#
Vivek_Sharma
30-Apr-12 6:10am
View
Sir Still i having same problem but the error line is change and ie.
dap.InsertCommand.CommandText = "HotelInsert";
now same error coming in this line pls help
Show More