protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "Master"; ListBox1.Width = Unit.Pixel(175); ListBox1.Height = Unit.Pixel(150); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "ContinentName"; ListBox1.DataValueField = "ContinentID"; ListBox1.HeaderTemplate = new HeaderTemplate("CONTINENTS"); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "Master"; ListBox2.Width = Unit.Pixel(200); ListBox2.Height = Unit.Pixel(150); ListBox2.EnableLoadOnDemand = true; ListBox2.DataSourceID = "sds2"; ListBox2.DataTextField = "CountryName"; ListBox2.DataValueField = "CountryID"; ListBox2.HeaderTemplate = new HeaderTemplate("COUNTRIES"); ListBox2.LoadingItems += Detail_LoadingItems; ListBox1.Details.Add(ListBox2); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(200); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(200); ListBox2.DataSourceID = "sds1"; ListBox2.DataTextField = "CompanyName"; ListBox2.DataValueField = "CustomerID"; ListBox2.CssSettings.ItemsContainer = "ob_iLboIC center"; ListBox2Container.Controls.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ListBox3"; ListBox3.Width = Unit.Pixel(200); ListBox3.DataSourceID = "sds1"; ListBox3.DataTextField = "CompanyName"; ListBox3.DataValueField = "CustomerID"; ListBox3.CssSettings.ItemsContainer = "ob_iLboIC right"; ListBox3Container.Controls.Add(ListBox3); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(250); ListBox1.Height = Unit.Pixel(200); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1.FolderStyle = "styles/black_glass"; ListBoxContainer1.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(250); ListBox2.Height = Unit.Pixel(208); ListBox2.DataSourceID = "sds1"; ListBox2.DataTextField = "CompanyName"; ListBox2.DataValueField = "CustomerID"; ListBox2.FolderStyle = "_"; ListBoxContainer2.Controls.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ListBox3"; ListBox3.Width = Unit.Pixel(250); ListBox3.Height = Unit.Pixel(208); ListBox3.DataSourceID = "sds1"; ListBox3.DataTextField = "CompanyName"; ListBox3.DataValueField = "CustomerID"; ListBox3.FolderStyle = "_"; ListBoxContainer3.Controls.Add(ListBox3); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(345); ListBox1.Height = Unit.Pixel(265); ListBox1.FolderStyle = "styles/premiere_blue"; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CountryName"; ListBox1.DataValueField = "CountryID"; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(475); ListBox2.FolderStyle = "styles/premiere_blue"; ListBox2.DataSourceID = "sds1"; ListBox2.DataTextField = "CountryName"; ListBox2.DataValueField = "CountryID"; ListBox2Container.Controls.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ListBox3"; ListBox3.Width = Unit.Pixel(650); ListBox3.FolderStyle = "styles/premiere_blue"; ListBox3.DataSourceID = "sds1"; ListBox3.DataTextField = "CountryName"; ListBox3.DataValueField = "CountryID"; ListBox3Container.Controls.Add(ListBox3); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBoxItem item1 = new ListBoxItem(); item1.Text = "Item 1"; item1.Value = "1"; ListBox1.Items.Add(item1); ListBoxItem item2 = new ListBoxItem(); item2.Text = "Item 2"; item2.Value = "2"; ListBox1.Items.Add(item2); ListBoxItem item3 = new ListBoxItem(); item3.Text = "Item 3"; item3.Value = "3"; ListBox1.Items.Add(item3); ListBoxItem item4 = new ListBoxItem(); item4.Text = "Item 4"; item4.Value = "4"; ListBox1.Items.Add(item4); ListBoxItem item5 = new ListBoxItem(); item5.Text = "Item 5"; item5.Value = "5"; ListBox1.Items.Add(item5); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(175); ListBox1.SelectedIndex = 2; ListBoxItem item1 = new ListBoxItem(); item1.Text = "USA"; item1.Value = "1"; item1.ImageUrl = "resources/Images/flags/flag_usa.png"; ListBox1.Items.Add(item1); ListBoxItem item2 = new ListBoxItem(); item2.Text = "UK"; item2.Value ="2"; item2.ImageUrl = "resources/Images/flags/flag_england.png"; ListBox1.Items.Add(item2); ListBoxItem item3 = new ListBoxItem(); item3.Text = "Germany"; item3.Value = "3"; item3.ImageUrl = "resources/Images/flags/flag_germany.png"; ListBox1.Items.Add(item3); ListBoxItem item4 = new ListBoxItem(); item4.Text = "France"; item4.Value = "4"; item4.ImageUrl = "resources/Images/flags/flag_france.png"; ListBox1.Items.Add(item4); ListBoxItem item5 = new ListBoxItem(); item5.Text = "Russia"; item5.Value = "5"; item5.ImageUrl = "resources/Images/flags/flag_russia.png"; ListBox1.Items.Add(item5); ListBoxItem item6 = new ListBoxItem(); item6.Text = "India"; item6.Value = "6"; item6.ImageUrl = "resources/Images/flags/flag_india.png"; ListBox1.Items.Add(item6); ListBoxItem item7 = new ListBoxItem(); item7.Text = "Japan"; item7.Value = "7"; item7.ImageUrl = "resources/Images/flags/flag_japan.png"; ListBox1.Items.Add(item7); ListBoxItem item8 = new ListBoxItem(); item8.Text = "China"; item8.Value = "8"; item8.ImageUrl = "resources/Images/flags/flag_china.png"; ListBox1.Items.Add(item8); ListBox1Container.Controls.Add(ListBox1); }
public void DataBindTemplate(object sender, EventArgs e) { PlaceHolder templatePlaceHolder = sender as PlaceHolder; DetailsViewRow row = templatePlaceHolder.Parent.Parent as DetailsViewRow; SuperForm form = row.Parent.Parent as SuperForm; Obout.ListBox.ListBox listBox = templatePlaceHolder.Controls[0] as Obout.ListBox.ListBox; listBox.SelectedValue = DataBinder.Eval(form.DataItem, "CountryIds").ToString(); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CountryName"; ListBox1.DataValueField = "CountryID"; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(250); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(400); ListBox1.SelectionMode = ListSelectionMode.Multiple; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CountryName"; ListBox1.DataValueField = "CountryID"; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(200); ListBox1.Height = Unit.Pixel(200); ListBox1.DataSourceID = "ods1"; ListBox1.DataTextField = "ShipName"; ListBox1.DataValueField = "OrderID"; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(125); ListBoxItem1 = new ListBoxItem(); ListBoxItem1.ID = "ListBoxItem1"; ListBoxItem1.Text = "10"; ListBoxItem2 = new ListBoxItem(); ListBoxItem2.ID = "ListBoxItem2"; ListBoxItem2.Text = "50"; ListBoxItem3 = new ListBoxItem(); ListBoxItem3.ID = "ListBoxItem3"; ListBoxItem3.Text = "75"; ListBoxItem4 = new ListBoxItem(); ListBoxItem4.ID = "ListBoxItem4"; ListBoxItem4.Text = "100"; ListBoxItem5 = new ListBoxItem(); ListBoxItem5.ID = "ListBoxItem5"; ListBoxItem5.Text = "1000"; ListBox1.Items.Add(ListBoxItem1); ListBox1.Items.Add(ListBoxItem2); ListBox1.Items.Add(ListBoxItem3); ListBox1.Items.Add(ListBoxItem4); ListBox1.Items.Add(ListBoxItem5); RequiredFieldValidator1 = new RequiredFieldValidator(); RequiredFieldValidator1.ID = "Validator1"; RequiredFieldValidator1.ControlToValidate = "ListBox1"; RequiredFieldValidator1.ErrorMessage = "Please select a value."; RequiredFieldValidator1.CssClass = "tdText"; RequiredFieldValidator1.Display = ValidatorDisplay.Dynamic; RangeValidator1 = new RangeValidator(); RangeValidator1.ID = "RangeValidator1"; RangeValidator1.ControlToValidate = "ListBox1"; RangeValidator1.Display = ValidatorDisplay.Dynamic; RangeValidator1.ErrorMessage = "Please specify a value between 50 and 100."; RangeValidator1.MinimumValue = "50"; RangeValidator1.MaximumValue = "100"; RangeValidator1.Type = ValidationDataType.Integer; RangeValidator1.CssClass = "tdText"; ListBox1Container.Controls.Add(ListBox1); ValidatorContainer.Controls.Add(RequiredFieldValidator1); ValidatorContainer.Controls.Add(RangeValidator1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(500); ListBox1.ItemTemplate = new ItemTemplate(); ListBox1.Items.Add(new ListBoxItem()); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(430); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "ControlName"; ListBox1.DataValueField = "ControlID"; ListBox1.ItemDataBound += ListBox1_ItemDataBound; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(200); ListBox1.Height = Unit.Pixel(200); ListBox1.EnableLoadOnDemand = true; ListBox1.DataTextField = "CountryName"; ListBox1.DataValueField = "CountryID"; ListBox1.LoadingItems += ListBox1_LoadingItems; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(550); ListBox1.CssSettings.ItemsContainer += "ob_iLboIC long-states"; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(335); ListBox2.CssSettings.ItemsContainer += "ob_iLboIC short-states"; ListBox2Container.Controls.Add(ListBox2); String[] arrStates = {"Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"}; // creating an array with all the states - short names String[] arrShortStates = {"AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"}; int i; // looping through the full names array and adding each state to the first combobox for (i = 0; i < arrStates.Length; i++) { ListBox1.Items.Add(new ListBoxItem(arrStates[i])); } // looping through the short names array and adding each state to the second combobox for (i = 0; i < arrShortStates.Length; i++) { ListBox2.Items.Add(new ListBoxItem(arrShortStates[i])); } }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.AutoPostBack = true; ListBox1.SelectedIndexChanged += ListBox1_SelectedIndexChanged; ListBox1.Items.Add(new ListBoxItem("black_glass")); ListBox1.Items.Add(new ListBoxItem("grand_gray")); ListBox1.Items.Add(new ListBoxItem("plain")); ListBox1.Items.Add(new ListBoxItem("premiere_blue")); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(325); ListBox1.FolderStyle = "styles/premiere_blue"; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1.ItemTemplate = new ItemTemplate(); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(200); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "ControlName"; ListBox1.DataValueField = "ControlID"; ListBox1.SelectionMode = ListSelectionMode.Multiple; ListBox1.ItemTemplate = new ItemTemplate(); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(400); ListBox1.Height = Unit.Pixel(150); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "SupplierID"; ListBox1.HeaderTemplate = new HeaderTemplate(); ListBox1.ItemTemplate = new ItemTemplate(IsPostBack); ListBox1.FooterTemplate = new FooterTemplate(); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(300); ListBox1.Height = Unit.Pixel(200); ListBox1.AutoPostBack = true; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1.SelectedIndexChanged += ListBox1_SelectedIndexChanged; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(550); ListBox1.CssSettings.ItemsContainer += "ob_iLboIC long-states"; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(335); ListBox2.CssSettings.ItemsContainer += "ob_iLboIC short-states"; ListBox2Container.Controls.Add(ListBox2); String[] arrStates = { "Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming" }; // creating an array with all the states - short names String[] arrShortStates = { "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN","IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY" }; int i; // looping through the full names array and adding each state to the first combobox for (i = 0; i < arrStates.Length; i++) { ListBox1.Items.Add(new ListBoxItem(arrStates[i])); } // looping through the short names array and adding each state to the second combobox for (i = 0; i < arrShortStates.Length; i++) { ListBox2.Items.Add(new ListBoxItem(arrShortStates[i])); } }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(275); ListBox1.Height = Unit.Pixel(200); ListBox1.AutoPostBack = true; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1.HeaderTemplate = new HeaderTemplate("CUSTOMERS"); ListBox1.SelectedIndexChanged += ListBox1_OnSelectedIndexChanged; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(200); ListBox2.Height = Unit.Pixel(200); ListBox2.AutoPostBack = true; ListBox2.Enabled = false; ListBox2.DataSourceID = "sds2"; ListBox2.DataTextField = "OrderID"; ListBox2.DataValueField = "OrderID"; ListBox2.HeaderTemplate = new HeaderTemplate("ORDERS"); ListBox2.SelectedIndexChanged += ListBox2_OnSelectedIndexChanged; ListBox2Container.Controls.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ListBox3"; ListBox3.Width = Unit.Pixel(200); ListBox3.Height = Unit.Pixel(200); ListBox3.Enabled = false; ListBox3.DataSourceID = "sds3"; ListBox3.DataTextField = "CompanyName"; ListBox3.DataValueField = "SupplierID"; ListBox3.HeaderTemplate = new HeaderTemplate("SUPPLIERS"); ListBox3Container.Controls.Add(ListBox3); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(275); ListBox1.Height = Unit.Pixel(200); ListBox1.AutoPostBack = true; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1.AppendDataBoundItems = false; ListBox1.SelectedIndexChanged += ListBox1_OnSelectedIndexChanged; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(200); ListBox2.Height = Unit.Pixel(200); ListBox2.AutoPostBack = true; ListBox2.Enabled = false; ListBox2.DataSourceID = "sds2"; ListBox2.DataTextField = "OrderID"; ListBox2.DataValueField = "OrderID"; ListBox2.AppendDataBoundItems = false; ListBox2.SelectedIndexChanged += ListBox2_OnSelectedIndexChanged; ListBox2Container.Controls.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ListBox3"; ListBox3.Width = Unit.Pixel(200); ListBox3.Height = Unit.Pixel(200); ListBox3.Enabled = false; ListBox3.DataSourceID = "sds3"; ListBox3.DataTextField = "CompanyName"; ListBox3.DataValueField = "SupplierID"; ListBox2.AppendDataBoundItems = false; ListBox3Container.Controls.Add(ListBox3); if (!IsPostBack) { ConfigureHeaderTemplates(); } }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(200); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "ControlName"; ListBox1.DataValueField = "ControlID"; ListBox1.SelectionMode = ListSelectionMode.Single; ListBox1.ItemTemplate = new ItemTemplate(); ListBox1.ClientSideEvents.OnItemClick = "ListBox1_ItemClick"; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(250); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1.ClientSideEvents.OnSelectedIndexChanged = "ListBox1_SelectedIndexChanged"; ListBox1.ClientSideEvents.OnItemClick = "ListBox1_ItemClick"; ListBox1.ClientSideEvents.OnFocus = "ListBox1_Focus"; ListBox1.ClientSideEvents.OnBlur = "ListBox1_Blur"; ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "CustomersList"; ListBox1.Width = Unit.Pixel(275); ListBox1.Height = Unit.Pixel(150); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1.HeaderTemplate = new HeaderTemplate1("CUSTOMERS"); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "OrdersList"; ListBox2.Width = Unit.Pixel(200); ListBox2.Height = Unit.Pixel(150); ListBox2.EnableLoadOnDemand = true; ListBox2.DataSourceID = "sds2"; ListBox2.DataTextField = "OrderID"; ListBox2.DataValueField = "OrderID"; ListBox2.HeaderTemplate = new HeaderTemplate1("ORDERS"); ListBox2.ItemTemplate = new ItemTemplate(); ListBox2.LoadingItems += OrdersList_LoadingItems; ListBox1.Details.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ProductsList"; ListBox3.Width = Unit.Pixel(200); ListBox3.Height = Unit.Pixel(150); ListBox3.EnableLoadOnDemand = true; ListBox3.DataSourceID = "sds3"; ListBox3.DataTextField = "ProductName"; ListBox3.DataValueField = "ProductID"; ListBox3.HeaderTemplate = new HeaderTemplate1("PRODUCTS"); ListBox3.LoadingItems += ProductsList_LoadingItems; ListBox2.Details.Add(ListBox3); ListBox1Container.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(250); ListBox1.Height = Unit.Pixel(200); ListBox1.DataTextField = "ShipName"; ListBox1.DataValueField = "OrderID"; ListBox1Container.Controls.Add(ListBox1); if (!Page.IsPostBack) { ListBox1.DataSource = OrdersGenericData.GetGenericOrders(); ListBox1.DataBind(); } }
public void CreateEditCountryTemplate(Object sender, Obout.Grid.GridRuntimeTemplateEventArgs e) { PlaceHolder oPlaceHolder = new PlaceHolder(); e.Container.Controls.Add(oPlaceHolder); Obout.ListBox.ListBox ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Height = 100; ListBox1.Width = Unit.Percentage(100); ListBox1.DataSourceID = "SqlDataSource2"; ListBox1.DataTextField = "CountryName"; ListBox1.DataValueField = "CountryName"; ListBox1.AppendDataBoundItems = false; oPlaceHolder.Controls.Add(ListBox1); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(225); ListBox1.Height = Unit.Pixel(200); ListBox1.DataTextField = "ShipName"; ListBox1.DataValueField = "OrderID"; ListBox1Container.Controls.Add(ListBox1); if (!Page.IsPostBack) { ListBox1.DataSource = OrdersData.GetOrders(); ListBox1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(400); ListBox1.Height = Unit.Pixel(150); ListBox1.EnableLoadOnDemand = true; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "SupplierID"; ListBox1.LoadingItems += ListBox1_LoadingItems; ListBox1.HeaderTemplate = new HeaderTemplate(); ListBox1.ItemTemplate = new ItemTemplate(); ListBox1.FooterTemplate = new FooterTemplate(); ListBox1Container.Controls.Add(ListBox1); }
public void InstantiateIn(Control container) { PlaceHolder templatePlaceHolder = new PlaceHolder(); container.Controls.Add(templatePlaceHolder); Obout.ListBox.ListBox ListBox1 = new Obout.ListBox.ListBox(); templatePlaceHolder.Controls.Add(ListBox1); ListBox1.ID = "CountryIds"; ListBox1.DataSourceID = "SqlDataSource2"; ListBox1.Width = Unit.Percentage(100); ListBox1.Height = Unit.Pixel(150); ListBox1.DataValueField = "CountryID"; ListBox1.DataTextField = "CountryName"; ListBox1.SelectionMode = ListSelectionMode.Multiple; templatePlaceHolder.DataBinding += new EventHandler(DataBindTemplate); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CountryName"; ListBox1.DataValueField = "CountryID"; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(250); ListBox2.Height = Unit.Pixel(150); ListBox2.DataSourceID = "sds1"; ListBox2.DataTextField = "CountryName"; ListBox2.DataValueField = "CountryID"; ListBox2Container.Controls.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ListBox3"; ListBox3.Width = Unit.Percentage(25); ListBox3.Height = Unit.Pixel(150); ListBox3.DataSourceID = "sds1"; ListBox3.DataTextField = "CountryName"; ListBox3.DataValueField = "CountryID"; ListBox3Container.Controls.Add(ListBox3); ListBox4 = new Obout.ListBox.ListBox(); ListBox4.ID = "ListBox4"; ListBox4.Width = Unit.Percentage(50); ListBox4.Height = Unit.Pixel(150); ListBox4.DataSourceID = "sds1"; ListBox4.DataTextField = "CountryName"; ListBox4.DataValueField = "CountryID"; ListBox4Container.Controls.Add(ListBox4); }
protected string GetSelectedCountries() { Obout.ListBox.ListBox CountryIds = (Obout.ListBox.ListBox)((DetailsViewRow)SuperForm1.Rows[3]).FindControl("CountryIds"); string selectedCountryIds = ""; foreach (ListBoxItem item in CountryIds.Items) { if (item.Selected == true) { if (selectedCountryIds != "") { selectedCountryIds += ","; } selectedCountryIds += item.Value; } } return(selectedCountryIds); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(150); ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CountryName"; ListBox1.DataValueField = "CountryID"; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(150); ListBox2.Height = Unit.Pixel(150); ListBox2.DataSourceID = "sds1"; ListBox2.DataTextField = "CountryName"; ListBox2.DataValueField = "CountryID"; ListBox2Container.Controls.Add(ListBox2); }
protected void Page_Load(object sender, EventArgs e) { ListBox1 = new Obout.ListBox.ListBox(); ListBox1.ID = "ListBox1"; ListBox1.Width = Unit.Pixel(200); ListBox1.Height = Unit.Pixel(200); ListBox1.SelectionMode = ListSelectionMode.Multiple; ListBox1.SelectedIndexes = "3,4,5"; ListBox1.DataSourceID = "sds1"; ListBox1.DataTextField = "CompanyName"; ListBox1.DataValueField = "CustomerID"; ListBox1Container.Controls.Add(ListBox1); ListBox2 = new Obout.ListBox.ListBox(); ListBox2.ID = "ListBox2"; ListBox2.Width = Unit.Pixel(200); ListBox2.Height = Unit.Pixel(200); ListBox2.SelectionMode = ListSelectionMode.Multiple; ListBox2.SelectedValue = "ANATR,ALFKI,AROUT"; ListBox2.DataSourceID = "sds1"; ListBox2.DataTextField = "CompanyName"; ListBox2.DataValueField = "CustomerID"; ListBox2Container.Controls.Add(ListBox2); ListBox3 = new Obout.ListBox.ListBox(); ListBox3.ID = "ListBox3"; ListBox3.Width = Unit.Pixel(200); ListBox3.Height = Unit.Pixel(200); ListBox3.SelectionMode = ListSelectionMode.Multiple; ListBox3.DataSourceID = "sds1"; ListBox3.DataTextField = "CompanyName"; ListBox3.DataValueField = "CustomerID"; ListBox3.ItemDataBound += ListBox3_ItemDataBound; ListBox3Container.Controls.Add(ListBox3); }