Click here to Skip to main content
15,885,954 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have a Datalist which contains some data(values) like id,bookname,booklanguage...bookprice.
and this Datalist one button, name is "buy".i want when user click the button then it redirect other page show bookName,..BookPrice etc on other page which contains Labels.
i want those records shows in labels.
Please help me anyone.ThnkYou

What I have tried:

in my redirect aspx page-
Label9.Text = sdr["BkName"].ToString();
                Label10.Text = sdr["BkPrice"].ToString();


This is very wrong i know but i am trying to show where i want datalist values in this label
Posted
Updated 7-Feb-19 0:52am
Comments
Richard Deeming 6-Feb-19 11:53am    
Pass the ID in the querystring, and use that to read the other values from the database.
Member 14083059 6-Feb-19 12:00pm    
sir how can u write some code
Herman<T>.Instance 7-Feb-19 4:30am    
by typing it!

1 solution

you can use Session for solving your problem.
 
Share this answer
 
Comments
Member 14083059 11-Feb-19 11:55am    
i am already used Session it fetch customer data but not selected product data which i want @Shamim Uddin

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900