2. Run aspnet_regsql.exe from C:\windows\Microsoft.NET\Framework\v4.0XXX (or whatever version).
3. Follow the wizard and select the database that has been created in Step 1.
<asp:Menu ID="NavigationMenu" runat="server" Orientation="Horizontal" />
The default layout setting of Menu control will rendering a blank row on top of the menu item which looks like extra padding. This happens to Google Chrome.<asp:Menu ID="NavigationMenu" runat="server" Orientation="Horizontal" SkipLinkText="" />For more details, please read:ASP.NET Menu Control Accessibility Feature renders incorrectly in Safari and Chrome Browsers.
This is straight forward. Set the “SelectedValue” attribute for DropDownList control.
Note. The “SelectedValue” is not in the intelligent context menu. It won’t automatic pop-up when you typing, but it does exist.
For example, we display a product in a DetailsView. In edit mode, we want to use a dropdown list to select the type of that product. Assume the type id is used in the product table, the edit template would be like:
<EditItemTemplate>
<asp:DropDownList **** DataTextField="Name" DataValueField="typeid" SelectedValue='<%# Bind("typeid") %>'></asp:DropDownList>
</EditItemTemplate>
This will auto bind the type id to the list and update with the selected id. The update command and parameters are as usual.