how tp use ternary operator in this condition
if (drSiteDetail["sitetype"].ToString() == "Local") rdbType.SelectedIndex = 0; else rdbType.SelectedIndex = 1;
This way
rdbType.SelectedIndex = drSiteDetail["sitetype"].ToString() == "Local" ? 0 : 1;
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.