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
Maniteja VegiPosted Aug 10, 2015, 6:03 AM
Upendra Pratap ShahiPosted Aug 4, 2015, 8:48 AM
int Yourvalue = 10;
Response.Redirect("productdetails.aspx?id=" + Yourvalue);
string id = Request.QueryString("id");
labeltext.Text = id;
Amitesh VermaPosted Aug 4, 2015, 8:30 AM
Manas MohapatraPosted Aug 4, 2015, 8:26 AM