コード例 #1
0
ファイル: ViewSwitcher.cs プロジェクト: ericziko/navigation
		/// <summary>
		/// Creates the child controls that make up the <see cref="Navigation.ViewSwitcher"/> control
		/// </summary>
		protected override void CreateChildControls()
		{
			Controls.Clear();
			ViewSwitchHyperLink = new NavigationHyperLink();
			ViewSwitchHyperLink.EnableViewState = false;
			ViewSwitchHyperLink.EnableTheming = false;
			ViewSwitchHyperLink.Direction = NavigationDirection.Refresh;
			ViewSwitchHyperLink.IncludeCurrentData = true;
			Controls.Add(ViewSwitchHyperLink);
		}
コード例 #2
0
ファイル: Sorter.cs プロジェクト: ericziko/navigation
		/// <summary>
		/// Creates the child controls that make up the <see cref="Navigation.Sorter"/> control
		/// </summary>
		protected override void CreateChildControls()
		{
			Controls.Clear();
			SortButton = new Button();
			SortImageButton = new ImageButton();
			SortLinkButton = new LinkButton();
			SortHyperLink = new NavigationHyperLink();
			SortButton.EnableViewState = false;
			SortImageButton.EnableViewState = false;
			SortLinkButton.EnableViewState = false;
			SortHyperLink.EnableViewState = false;
			SortButton.CausesValidation = false;
			SortImageButton.CausesValidation = false;
			SortLinkButton.CausesValidation = false;
			SortButton.EnableTheming = false;
			SortImageButton.EnableTheming = false;
			SortLinkButton.EnableTheming = false;
			SortHyperLink.EnableTheming = false;
			SortHyperLink.Direction = NavigationDirection.Refresh;
			SortHyperLink.IncludeCurrentData = true;
			SortHyperLink.PostBack = PostBackHyperLink;
			SortHyperLink.Command += SortClicked;
			SortButton.Command += SortClicked;
			SortImageButton.Command += SortClicked;
			SortLinkButton.Command += SortClicked;
			Controls.Add(SortButton);
			Controls.Add(SortImageButton);
			Controls.Add(SortLinkButton);
			Controls.Add(SortHyperLink);
		}