Click to See Complete Forum and Search --> : Datagrid


Sarah Lee
09-12-2006, 12:03 PM
hi

i am displaying some information in datagrid as part of a shoping cart like this

prodname unitprice quantity tax total

xxxxxxx 12 2.3

here quantity column is editbale, and user enters at runtime, depending on that total should get displayed.

all the remaining information are displayed based on model number of the product which the user selected.
ie. i am passing this [model number] as the parameter fro the page the user selected the product.

how can i store these values using session?

or do i need to create a temporary table and store these values and user entering values?

how can i do that?

please be kind enough to help me in detail
thanks in advance

sirpelidor
09-12-2006, 12:43 PM
to save server memory, i normally perfer using GET then session.

suppose in ur grid, user can click on that row and a new window pops up:

<a href="productDetail.aspx?id=1234" target="blank">View</a>

on your new window "productDetail.aspx" just read your id through request.QueryString:

Page_load{
int id = Convert.ToInt32(Request.QueryString["id"]);
loadInformation(id);
}

loadInformation(int id){
//ur sql code here
}