lulu50
asked on
send an alert to the user
Hi,
I have a button that would add partid to the list. what I want
is to send a user a javascript message saying that "the tire you selected
have been added to your cart".
before redirect them to other page.
here's what I have:
protected void AddToCart_Command(object sender, CommandEventArgs e)
{
if (e.CommandName == "PostBack")
{
var partIDs = Session["PartIDs"] as List<int>;
if (partIDs == null)
partIDs = new List<int>();
partIDs.Add(int.Parse(e.Co mmandArgum ent.ToStri ng()));
Session["PartIDs"] = partIDs;
}
I need javascript message here = "The tires you selected have been added to your cart";
Response.Redirect("tire-se arch-resul ts.aspx?Br and=" + HDBrand.Value + "&SectionWidths=" + HDSectionWidths.Value +
"&AspectRatios=" + HDAspectRatios.Value + "&Rims=" + HDRims.Value + "&TireSizeDiameter=" + HDTireSizeDiameter.Value +
"&TireSizeSideWall=" + HDTireSizeSideWall.Value + "&TireSizeWidth=" + HDTireSizeWidth.Value +
"&Zip=" + HDZip.Value
+ "&Year=" + HDYear.Value + "&Make=" + HDMake.Value +
"&Model=" + HDModel.Value + "&Option=" + HDOption.Value
);
}
I have a button that would add partid to the list. what I want
is to send a user a javascript message saying that "the tire you selected
have been added to your cart".
before redirect them to other page.
here's what I have:
protected void AddToCart_Command(object sender, CommandEventArgs e)
{
if (e.CommandName == "PostBack")
{
var partIDs = Session["PartIDs"] as List<int>;
if (partIDs == null)
partIDs = new List<int>();
partIDs.Add(int.Parse(e.Co
Session["PartIDs"] = partIDs;
}
I need javascript message here = "The tires you selected have been added to your cart";
Response.Redirect("tire-se
"&AspectRatios=" + HDAspectRatios.Value + "&Rims=" + HDRims.Value + "&TireSizeDiameter=" + HDTireSizeDiameter.Value +
"&TireSizeSideWall=" + HDTireSizeSideWall.Value + "&TireSizeWidth=" + HDTireSizeWidth.Value +
"&Zip=" + HDZip.Value
+ "&Year=" + HDYear.Value + "&Make=" + HDMake.Value +
"&Model=" + HDModel.Value + "&Option=" + HDOption.Value
);
}
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks
http://www.yaldex.com/FSMessages.htm
Hope it helps