What I have is pretty much what you wrote, but my the visible=true vs
visible=false is only 'looking at' the last item in the cart. Even if
I have an item that meets the criteria, if it's not the last item
added to the cart the checkbox is not visible.
On Apr 9, 12:52 pm, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.com> wrote:
> > asp.net 2.0 and language is c#
>
[quoted text clipped - 19 lines]
>
> checkBox1.Vislble = isVisible;
Ignacio Machin ( .NET/ C# MVP ) - 10 Apr 2008 18:35 GMT
> What I have is pretty much what you wrote, but my the visible=true vs
> visible=false is only 'looking at' the last item in the cart. Even if
[quoted text clipped - 30 lines]
>
> - Show quoted text -
can you post your code?
maybe you confused "=" with "=="
duncfair - 11 Apr 2008 18:52 GMT
Dansko_chkbx.Visible = false;
ProductDetailTableAdapter productadp = new
ProductDetailTableAdapter();
DataTable productdatatable =
productadp.GetDanskoProductDetailById(Convert.ToInt32(Orderid.ToString()));
foreach (DataRow ProductDataRow in productdatatable.Rows)
{
DanskoPrice =
Convert.ToDecimal(ProductDataRow["Price"].ToString());
Danskobrandname =
ProductDataRow["BrandName"].ToString();
if ((Danskobrandname.Contains("Dansko")) &&
(DanskoPrice > 100))
{
Dansko_chkbx.Visible = true;
}
else
{
Dansko_chkbx.Visible = false;
}
}
On Apr 10, 10:35 am, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.com> wrote:
> > What I have is pretty much what you wrote, but my the visible=true vs
> > visible=false is only 'looking at' the last item in the cart. Even if
[quoted text clipped - 35 lines]
>
> - Show quoted text -