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
Nandha Kumar Nagarajan
NA
284
57.2k
how to delete while i pass two arguments in commant argument
May 21 2019 6:37 AM
hi friends
i need to delete from command arguments id
i already searched in web they using split(| ) i don't understand tel me!!!!
how i doo????
HERE IS MY CODE
<
asp:LinkButton
ID
=
"lnk_delete"
runat
=
"server"
OnCommand
=
"lnk_btn_delete_Menu_Access"
CommandArgument
=
'<%#Eval("N_LINK_ID")+","+Eval("N_ID")%>'
Text
=
"DELETE"
>
</
asp:LinkButton
>
how can i get a IDs from command arguments
protected
void
lnk_btn_delete_Menu_Access(
object
sender, CommandEventArgs e)
{
int
id = Convert.ToInt32(e.CommandArgument);
// here is comes get one cmd arg ID
sqlParams =
new
DL.SQLParams();
sqlParams.Add(
"@VC_ACTION"
, SqlDbType.VarChar,
"DELETE"
);
sqlParams.Add(
"@N_ID"
, SqlDbType.VarChar, id);
dbUtility.ExecuteCommand(Procedure.USP_MENU_ACCESS, sqlParams.GetParams);
}
it will gets i could easly perform delete opertation
Reply
Answers (
1
)
how to pass a session value
Treeview with drag and drop file upload