Fareeda Hussain

Fareeda Hussain

  • NA
  • 93
  • 92.4k

how to show the placeholder of dropdownlist in confirm box?

Apr 9 2017 4:25 AM
Hi
    In my web application  there is  a dropdown list that will show confirm box  while changing the listitem . I have  added  title for each listitem 
  eg :
<asp:DropDownList ID="myddl" runat="server" AppendDataBoundItems="true" onchange="Confirm()" AutoPostBack="true" 
OnSelectedIndexChanged="myddl_SelectedIndexChanged" >
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem  title="ABC"  Value="1" >AAA</asp:ListItem>
<asp:ListItem title="EFG" Value="2" >BBB</asp:ListItem>
</asp:DropDownList> 
 
How can I show the title of these selected item on confirm box?
 
 
thanks inadvance
Fareeda 
 

Answers (4)