All pastes #880593 Raw Edit

Something

public text v1 · immutable
#880593 ·published 2008-01-29 20:40 UTC
rendered paste body
protected void DetailWT_TabClick ( object sender , WebTabEvent e )
		{
			string NewProd ="";
			UltraWebTab wt=this.DetailWT;
			foreach ( Control con in wt.Tabs.GetTab(0).ContentPane.Controls ) //    e.Tab.ContentPane.Controls.IndexOf ( 0 ) )
			{
				if ( con.ID != null)
						if ( con.ID.ToString ( ).Substring ( 0 , 9 )=="ProductID" )
						NewProd=con.ID.ToString ( ).Substring ( 9 , (con.ID.Length - 9) );
			}
			if ( e.Tab.Key=="2" ) // Specifications
			{
				_Specs ( CompNo , NewProd , PHSpec);
			}
			else if ( e.Tab.Key=="0"|e.Tab.Key=="10" )
			{
				WebAsyncRefreshPanel wa=this.SpecWarp;
				if ( wt.Height!=400 )
				{
					_Specs ( CompNo , NewProd , PHSpec ); 
					wt.Height=400;
					wt.Tabs.FromKey ( "1" ).Visible=true;
					wt.Tabs.FromKey ( "2" ).Visible=true;
					wt.Tabs.FromKey ( "3" ).Visible=true;
					wt.Tabs.FromKey ( "4" ).Visible=true;
					wt.SelectedTabIndex=3;
				}
				else
				{
					//	( ( WebImageButton ) sender ).Appearance.Url="./Images/ArrowDown_Blue_16.png";
					//wa.Visible=false;
					//wt.Visible=false;
					//	wt.Width=1000;
					wt.Height=20;
					wt.Tabs.FromKey ( "1" ).Visible=false;
					wt.Tabs.FromKey ( "2" ).Visible=false;
					wt.Tabs.FromKey ( "3" ).Visible=false;
					wt.Tabs.FromKey ( "4" ).Visible=false;
					wt.SelectedTabIndex  =  0 ;
				}
			}
		}

tr6=new TableRow ( );

							tc1=new TableCell ( );
							tc1.CssClass="ProdSmallRow";
							tc1.ColumnSpan=7;
							tr6.Cells.Add ( tc1 );
								
							    WebAsyncRefreshPanel warp=new WebAsyncRefreshPanel ( );
								warp.ID="SpecWarp"+PrID;
								tc1.Controls.Add ( warp );

								UltraWebTab wt=new UltraWebTab ( );
								wt.ID="DetailWT"+PrID;
								wt.BackColor=Color.WhiteSmoke;
								wt.BorderColor=Color.Silver;
								wt.BorderStyle=BorderStyle.Solid;
								wt.BorderWidth=Unit.Pixel ( 1 );
								wt.Height=Unit.Pixel ( 200 );
								wt.Width=Unit.Percentage ( 100 );


								wt.EnableAppStyling=Infragistics.WebUI.Shared.DefaultableBoolean.False;
								wt.SelectedTab=2;
								wt.SpaceOnLeft=85;
								wt.AutoPostBack=true;
								wt.AsyncMode=Infragistics.WebUI.UltraWebTab.AsyncMode.On;
								wt.AsyncOptions.EnableLoadOnDemand=true;
								//wt.TabClick+=new TabClickEventHandler ( DetailWT_TabClick );
								wt.DefaultTabStyle.Padding.Left=Unit.Pixel ( 4 );
								wt.DefaultTabStyle.Padding.Right=Unit.Pixel ( 4 );
								wt.SelectedTabStyle.BackgroundImage="./Images/Button_LTBlue_Gradient_Lg.png";
								wt.SelectedTabStyle.ForeColor=Color.White;
								wt.HoverTabStyle.BorderWidth=Unit.Pixel ( 4 );
								wt.HoverTabStyle.ForeColor=Color.Navy;

								warp.Controls.Add ( wt );
								wt.TabClick+=new TabClickEventHandler ( DetailWT_TabClick );

								Tab tbs=new Tab ( );