diff --git a/Site/Controls/v5/Base/AjaxDropDown.ascx b/Site/Controls/v5/Base/AjaxDropDown.ascx new file mode 100644 index 00000000..3f2d4449 --- /dev/null +++ b/Site/Controls/v5/Base/AjaxDropDown.ascx @@ -0,0 +1,88 @@ +<%@ Control Language="C#" AutoEventWireup="true" Inherits="Swarmops.Frontend.Controls.Base.AjaxDropDown" CodeFile="AjaxDropDown.ascx.cs" CodeBehind="AjaxDropDown.ascx.cs" %> +<%@ Import Namespace="System.Threading" %> +<%@ Import Namespace="Swarmops.Common.Enums" %> + + + + +<% if (this.Layout == LayoutDirection.Vertical){ %>
<% } %> + +<% if (this.Layout == LayoutDirection.Vertical) { %>
<% } %> diff --git a/Site/Controls/v5/Base/AjaxDropDown.ascx.cs b/Site/Controls/v5/Base/AjaxDropDown.ascx.cs new file mode 100644 index 00000000..04e1ed83 --- /dev/null +++ b/Site/Controls/v5/Base/AjaxDropDown.ascx.cs @@ -0,0 +1,49 @@ +using System; +using System.Web.UI; +using System.Web.UI.WebControls; +using Swarmops.Common.Enums; + + +namespace Swarmops.Frontend.Controls.Base +{ + public partial class AjaxDropDown : ControlV5Base + { + public ListItemCollection Items + { + get { return this.DropControl.Items; } + } + + public string SelectedValue + { + get { return this.DropControl.SelectedValue; } + set { this.DropControl.SelectedValue = value; } + } + + public string OnClientChange { get; set; } + public string DataUrl { get; set; } + + public string ClientControlID + { + get { return this.ClientID + "_DropControl"; } + } + + public DropDownList ClientControl + { + get { return this.DropControl; } + } + + public LayoutDirection Layout { get; set; } + + protected void Page_Load (object sender, EventArgs e) + { + if (this.Layout == LayoutDirection.Unknown) + { + this.Layout = LayoutDirection.Vertical; + } + } + + public string AjaxCallbackUrl { get; set; } + public string Cookie { get; set; } + + } +} \ No newline at end of file diff --git a/Site/Controls/v5/Base/AjaxDropDown.ascx.designer.cs b/Site/Controls/v5/Base/AjaxDropDown.ascx.designer.cs new file mode 100644 index 00000000..2fe92714 --- /dev/null +++ b/Site/Controls/v5/Base/AjaxDropDown.ascx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Frontend.Controls.Base { + + + public partial class AjaxDropDown { + + /// + /// DropControl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList DropControl; + } +} diff --git a/Site/Site.csproj b/Site/Site.csproj index be239421..07f26b90 100644 --- a/Site/Site.csproj +++ b/Site/Site.csproj @@ -110,6 +110,13 @@ AjaxToggleSlider.ascx + + AjaxDropDown.ascx + ASPXCodeBehind + + + AjaxDropDown.ascx + ImpersonationWarningBox.ascx ASPXCodeBehind @@ -695,6 +702,7 @@ +