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
Devendra Kumar
NA
517
246k
how to remove data that bind inside repeater in c#
Jul 16 2016 2:20 AM
how to remove repeater item
for example repeater show multiple item
describe item:
1. add one products that id is =2 and sizeid=01
second item product that id is same =2 but size id=02
when i will want to delete first product then it remove both products
because i will pass product id : likr this
<asp:LinkButton ID="LinkButton1" Text="Remove" ToolTip="Remove item" runat="server"
CommandArgument='<%#Eval("ProductId") %>' CommandName="cmd_remove" />
i will want to pass sizeid but how please any body describe
my code is:
if (e.CommandName == "cmd_remove")
{
ObjAdmin.ProductId = int.Parse(e.CommandArgument.ToString());
ObjAdmin.SessionId = Session.SessionID;
ObjAdmin.size_id = int.parse(Session["lbl_sizeid"].ToString());
int val = ObjAdmin.Delete_MyCart();
CheckCart();
Response.Redirect("MyCart.aspx");
}
in this size id not get
Reply
Answers (
1
)
Session variable and Application variable
Index was out of range. Must be non-negative and less than t