I have Two tables like
create table Product
(
prodid varchar(50) primary key,
prodname varchar(50),
price int
)
create table Customer
(
custid varchar(50) primary key,
custname varchar(50),
custaddress varchar(50),
prodid varchar(50) foreign key references Product(prodid)
)
I have two pages like ProductDetails.aspx and
CustomerDetails.aspx
So now i want to pass the PK value(Product Table) in Productdetails.aspx to FK Key(Customer)CustomerDetails.aspx,
So please help me how to pass this task.....
Thanks in Advance

Manas MohapatraRank #182 · 13.2K reputationPosted Aug 4, 2015, 4:26 AM EDT
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 4, 2015, 4:30 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 4, 2015, 4:48 AM EDT
int Yourvalue = 10;
Response.Redirect("productdetails.aspx?id=" + Yourvalue);
string id = Request.QueryString("id");
labeltext.Text = id;
Maniteja VegiRank #957 · 2.1K reputationPosted Aug 10, 2015, 2:03 AM EDT