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
mani_krish
NA
1
0
Inserting data into a database
Jun 22 2004 5:27 PM
Hi, I am using the following code, can any one help me i am trying to solve this problem science 3 days. Urgent need please...... string cmdstr="INSERT INTO tblRegisteredUsers (UserID,TPwd,UserFName,UserLName) VALUES('"+UserId.Text+"', "+ " '"+Pwd.Text+"','"+FirstName.Text+"','"+LastName.Text+"')"; The data is not inserting into a table.....and giving the exception error that Index cant be empty. But When I am trying to insert data like this its working. string cmdstr="INSERT INTO tblRegisteredUsers (UserID,TPwd,UserFName,UserLName) VALUES ('aaa','aaa','aaa','aaa')"; Whats wrong with this....... I am not using any ASP code.....its just c# and ADO.net. Thanks a lot for hlep.
Reply
Answers (
1
)
how to catch mouse messages
Building a web interface