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
Israel
691
1.3k
219.6k
Updating from a label inserting sql query
Feb 6 2015 7:31 AM
Hi!
I have on a form a label where appear one data after making filter. Then I would like to know how can I take this information appearing on that label to upadate on my sql query.
Please see my idea from this code (its desnt works):
comm = new OleDbCommand();
conn.Open();
OleDbParameter
anex
= new OleDbParameter("@
anex
", SqlDbType.NChar);
comm.Parameters.Add(
anex
);
anex
.Value=
lblAnex
.Text;
comm.Connection = conn;
comm.CommandText = "UPDATE 1 SET [anexo]=
lblAnex.Text
WHERE ISNULL([
anex
]) OR [
anex
]='0'";
// it's on this line
comm.ExecuteNonQuery();
conn.Close();
Reply
Answers (
1
)
to send mail using asp.net this concept is required.
How to count the NULL or balnk line of column