TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kiran kumar
NA
1k
270.5k
problem with createuser wizard
Dec 15 2009 2:58 AM
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=KIRAN\\SQLEXPRESS;Initial Catalog=kiran;Integrated Security=True"); con.Open(); string querystring; querystring = "insert into reg(username,password,email,securityquestion,securityanswer)values('@username','@password','@email','@securityquestion','@securityanswer')"; SqlCommand cmd = new SqlCommand(querystring, con); SqlParameter uname = new SqlParameter("@username", SqlDbType.NVarChar, 50); uname = CreateUserWizard1.UserName; cmd.Parameters.Add(uname); SqlParameter pass = new SqlParameter("@password", SqlDbType.NVarChar, 50); pass = CreateUserWizard1.Password; cmd.Parameters.Add(pass); SqlParameter ema = new SqlParameter("@email", SqlDbType.NVarChar, 50); ema = CreateUserWizard1.Email; cmd.Parameters.Add(ema); SqlParameter secques = new SqlParameter("securityanswer", SqlDbType.NVarChar, 50); secques = CreateUserWizard1.Question; cmd.Parameters.Add(secques); SqlParameter secans = new SqlParameter("securityanswer", SqlDbType.NVarChar, 50); secans = CreateUserWizard1.Answer; cmd.Parameters.Add(secans); cmd.ExecuteNonQuery(); con.Close(); Cannot implicitly convert type 'string' to 'System.Data.SqlClient.SqlParameter'
Reply
Answers (
1
)
web user control
JavaScript : code those compatibile for all the browsers (IE/FF/NetScape/Opera/Google Crome)