Here is my code:
Code:
<asp:SqlDataSource runat="server" ID="sqlAuthorsInfo" ConnectionString="<%$
<asp:SqlDataSource runat="server" ID="sqlAuthorsInfo" ConnectionString="<%$
<asp:ObjectDataSource runat="server" ID="odsAuthorsDoc" SelectMethod="GetAuthorsDocByID" TypeName="Library.Media.AuthorDoc" UpdateMethod="UpdateAuthorsDoc"> <SelectParameters> <asp:QueryStringParameter Name="RequestID" QueryStringField="id" Type="Int32"
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient;
private void FindAllOfMyString(string searchString) { // Set the SelectionMode property of the ListBox to select multiple items. cblAuthorsList.SelectionMode
SELECT CData.value('(/fields/Genres)[1]', 'varchar(255)')FROM Categories WHERE ReqNum = 9281
DECLARE @cmd varchar (1000) SET @cmd = 'SELECT CData.value('(/fields/Genres)[1]', 'varchar(255)')FROM Categories WHERE ReqNum = 9281'
SELECT CData.value('(/fields/Genres)[1]', 'varchar(255)')FROM Categories WHERE ReqNum = 9281
King, Saul, Robb
King Saul Robb
if (cblGenres.SelectedIndex != -1) foreach (ListItem cbListItem in cblGenres.Items) { if (cbListItem.Selected)
asp:DropDownList runat="server" ID="lbAuthorsList" style="float:left;" DataSourceID="AuthorsList" DataTextField="DisplayName"
protected void AddAnAuthor(object
protected void addAuthors_button(object sender, EventArgs e) { AddAuthors_ds.Insert(); StringCollection sc = new StringCollection(); foreach (ListItem item in AuthorsList.Items) { if (item.Selected) { AddAuthors_ds.InsertParameters.Clear();
<asp:ListBox runat="server" ID="AuthorList" DataTextField="AuthorName" DataValueField="AuthorName" DataSourceID="Authors" SelectionMode="Multiple"/>
Leave a comment: