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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Joginder BangerRank #360 · 7K reputationPosted Feb 23, 2014, 9:27 AM EST
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