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
Savita Joshi
NA
129
132.9k
Keyword not supported: 'datasource'.ERROR
Mar 30 2011 1:39 AM
Hi friends
Keyword not supported: 'datasource'.
The code behind for a button click is as below:
protected void Button1_Click(object sender, EventArgs e)
{
obj.connect();
obj.cmd.Parameters.Add("@ID",SqlDbType.Int).Value=TextBox1.Text;
obj.cmd.Parameters.Add("@Password", SqlDbType.VarChar).Value = TextBox2.Text;
obj.cmd.Parameters.Add("@ConfirmPassword", SqlDbType.VarChar).Value = TextBox3.Text;
obj.cmd.Parameters.Add("@Email", SqlDbType.VarChar).Value = TextBox4.Text;
obj.cmd = new SqlCommand("submitrecord");
obj.cmd.ExecuteNonQuery();
obj.db.Close();
Label l1 = new Label();
l1.Text = "Record has been submitted!";
}
Reply
Answers (
29
)
Datagridview cell validation only for Numbers
Cookies