<%
#IIf((Eval(“id”) Is System.DBNull.Value), Eval(“Last”) & “, “ & Eval(“First”), “<a href=” ../default.aspx?id=” & Eval(“id”) & “>” & Eval(“Last”) & “, “ & Eval(“First”) & “</a>”)%>
<%
#IIf((Eval(“id”) Is System.DBNull.Value), Eval(“Last”) & “, “ & Eval(“First”), “<a href=” ../default.aspx?id=” & Eval(“id”) & “>” & Eval(“Last”) & “, “ & Eval(“First”) & “</a>”)%>
<asp:DropDownList runat="server" ID="DDLTest"> <asp:ListItem Text="Item1" Value="11"></asp:ListItem> <asp:ListItem Text="Item2" Value="22"></asp:ListItem> <asp:ListItem Text="Item3" Value="33"></asp:ListItem> </asp:DropDownList>
<script type="text/javascript"> $(document).ready(function () { $('#<%=DDLTest.ClientID %>').change(function () { var myControl = $('#<%=DDLTest.ClientID %>').val(); alert(myControl); }) }); </script>