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
Aseem Bhardwaj
1.6k
114
20.3k
multiple statements through single procedure by appcode clas
Sep 7 2016 7:52 AM
ei have single stored procedure in which, i have put poly statements (insert, update and delete) by using if condition [if
@mode='insert'
(insert into tablename (id,ab,cd,) values(@id,@ab,@cd).
now problem is "i am using connection class from appcode folder of asp.net. in which i have given connection string and build objects of sqlcommand, sql commandtype, datareader, data set, data adapter. now i am having problem in insert data from textbox to sql server. the problem is i do not know, how to concatenate string and values."
in normal we can use
cmd.Parameters.AddWithValue("@mode", "Insert");
but now i do not know how would i use
@mode='insert'
. please help
Reply
Answers (
7
)
how to check duplicates
70-486 certification training in hyderabad