Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<asp:RadioButtonList ID="rbRootCause" runat="server" RepeatDirection="Horizontal"
RepeatLayout="flow" [b]OnPreRender="setNoOption"[/b]>
<asp:ListItem Value="1" Text="Yes"></asp:ListItem>
<asp:ListItem Value="6" Text="No"></asp:ListItem>
</asp:RadioButtonList>
<div id="divWhyNot" style="display: none; padding-top: 5px;">
Why?
<asp:TextBox ID="txtWhyNot" runat="server" Width="500" /><br />
<asp:Label ID="lblWhoSaid" runat="server" Style="font-size: 7pt; margin-left: 35px;" />
</div>
public void setNoOption(object sender, EventArgs e)
{
string selVal = rbRootCause.SelectedIndex.ToString();
foreach (ListItem li in rbRootCause.Items)
{
if (li.Text == "No")
{ li.Attributes["onclick"] = "showWhyNot(" + rbRootCause.ClientID + ",'block');"; }
else
{ li.Attributes["onclick"] = "showWhyNot(" + rbRootCause.ClientID + ",'none');"; }
}
}
function showWhyNot(clicked, show)
{
var dynCtrl = clicked.id.substring(0,clicked.id.lastIndexOf("_")+1);
divWhyNot.style.display=show;
if (show == "block")
document.getElementById(dynCtrl+"txtWhyNot").focus();
}