COMMUNITY: How to properly ask a question on Forums
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Santosh Reddy
1.5k
64
4.8k
i got the some error
Mar 6 2017 8:00 AM
protected void Page_Load(object sender, EventArgs e)
{
string r = @"server=.;database=romesh;trusted_connecton=true";
SqlConnection con = new SqlConnection(r);
}
protected void btn_insert_Click(object sender, EventArgs e)
{
string i= "insert into sample values('"+txt1.Text+"','"+txt2.Text+"','"+txt3.Text+"')";
con
.open();
SqlCommand cmd =
con
.createcommend();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "i";
cmd.EndExecuteNonQuery();
con
.close();
}
}
// I will get the error my code
Reply
Answers (
12
)
MVC chart control
change function so it will only get a part of the users
"