Click here to Skip to main content
16,012,468 members

Comments by kwelpooh (Top 25 by date)

kwelpooh 18-Aug-15 15:00pm View    
Thank you so much its now showing image.
kwelpooh 26-Jun-15 7:40am View    
Hai I tried everything I don't know how to do this please help how to trigger button click event in rowdatbound
kwelpooh 18-Jun-15 9:29am View    
yes i changed that and kept breakpoint and checked it at row index 0 it takes the value and it throws exception There is no row at position 1. that means select query which i have posted here not taking all the rows how to solve this and have taking all the rows from cart table using productid which i have used in Datakeynames
kwelpooh 17-Jun-15 16:07pm View    
the problem is its takes only last value and only one value in tbl_tpd

string proid = Application["id"].ToString();
"select tpd.productid,tpd.productname,tpd.ProductImage,tpd.price,tpd.qty,tpd.totalcost,tpd.cdate from rsa_addtocart tpd where tpd.productid=" + proid + " ", con);


protected void Gridcart_RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType==DataControlRowType.DataRow)
{

Application["id"] = Convert.ToInt32(Gridcart.DataKeys[e.Row.RowIndex].Values[0]);
}
}
kwelpooh 16-Jun-15 9:16am View    
i did that already but it adds the same item 2 times