I am starting to use it alot and enjoy to use it .
e.g:
if (ddlLocation.SelectedIndex != 0 && ddlUnitSize.SelectedIndex != 0)
{
Response.Redirect("bookings.aspx?size=" +
chkNowSize.Checked + "?location=" +
ddlLocation.SelectedValue + "");
}
else
{
lblMessage.Text = "Selecting a value from " +
(ddlLocation.SelectedIndex == 0 ? "location dropdown is required" : "unitsize is required");
}
This works quite good , what do you thing about this operator ?
This post has been edited by marinus: 06 July 2011 - 05:24 AM

New Topic/Question
Reply


MultiQuote








|