|
Post by bokyo on Jan 7, 2016 11:04:29 GMT
protected void ddlAmount_SelectedIndexChanged(object sender, EventArgs e)
{
int Avail;
int ddl;
Avail = int.Parse(lblAvailable.Text);
ddl = int.Parse(ddlAmount.SelectedValue);
if (Avail < ddl)
{
lblResult.Text = "IMPOSIBLE!!!";
// MsgBox("Imposible! You requested more item than the available stock...");
}
Pls help me to validate ddl value to label value: if ddl > than label then can not continue... Actually, this part was found on product.aspx.cs in webshop tutorial lesson and I want a validation on SelectedIndexChanged event....
Thanks alot
|
|
|
Post by ikulopiqup on Oct 16, 2019 2:04:11 GMT
|
|
|
Post by cehoqebuqun on Oct 16, 2019 8:18:55 GMT
|
|