title: How to select first value in list box by default when the page loads
body: <pre><code>&lt;asp:ListBox ID="listbox_Userrole"  runat="server" DataSourceID="SK" DataTextField="RoleName" DataValueField="RoleName" &gt;&lt;/asp:ListBox&gt;
  &lt;asp:SqlDataSource ID="SurelyKnown" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ConnectionString %&gt;"
                                  ProviderName="&lt;%$ ConnectionStrings:ConnectionString.ProviderName %&gt;"
                                  SelectCommand="SELECT RoleName FROM tbl_role WHERE RoleID&amp;gt;1"&gt;&lt;/asp:SqlDataSource&gt;
  </code></pre>
  
  <p>How to select first value in list box by default when the page loads.</p>