with a data of product
when a user clcik a add to cart inside appropriate button inside the datalist
that product must add into antoher database
i using two tier architecture


Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Joginder BangerPosted Feb 23, 2014, 2:27 PM
protected void add_toCart_Click(object sender, EventArgs e)
{
AddtoCart= true;
}
bool Addtocart;
protected void Dataviewdetails_ItemCommand(object source, DataListCommandEventArgs e)
{
try
{
if (AddtoCart)
{
// do stuff here like that database or another as you want.
}
catch(exception ex)
{
// do stuff here
}
}
for more information hit to reply
happy coding jsb