All pastes #961058 Raw Edit

Stuff

public text v1 · immutable
#961058 ·published 2008-03-28 17:24 UTC
rendered paste body
TableCell tbcc=( TableCell ) PHItems.FindControl ( oRd [ "LeaseName" ].ToString ( ) );



protected void dd_TextChanged ( object sender , EventArgs e )
		{
			DropDownList dd =( DropDownList ) sender;
		//	Table TTB;
			int iQt=Convert.ToInt32 ( dd.Text );
			TableCell tbc=Page.FindControl ( "TCQtyPriced"+SysID.Text ) as TableCell;
			if ( tbc!=null )
				tbc.Text="$ "+Convert.ToString ( iQt*c_TLK.Quote_Sell )+".00";

			c_TLK.TableSelect ( "Lease" , "LeaseActive = "+"'"+1+"'" , "LeaseActive, LeaseSort DESC" , "LeaseName, LeaseMultiplier, LeaseDisclaimer, LeaseHeading, LeaseActive, LeaseTerm" );
			oRd=c_TLK.TLSql.ExecuteReader ( CommandBehavior.CloseConnection );
			if ( oRd.HasRows )
			{
				while ( oRd.Read ( ) )
				{
					tbc=( TableCell ) this.FindControl ( oRd [ "LeaseName" ].ToString ( ) );
					//	PlaceHolder ph=( PlaceHolder ) wt.Tabs.FromKeyTab ( e.Tab.Key ).ContentPane.FindControl ( "PHSpec"+NewProd );
					//tbc=Page.FindControl ( oRd [ "LeaseName" ].ToString ( ) ) as TableCell;
					if ( tbc!=null )
						tbc.Text=oRd [ "LeaseName" ].ToString ( )+" .   .  . ."+"<span class="+"\""+"ConfigTextLeaseR"+"\""+">&nbsp;&nbsp;"+Math.Round ( ( iQt*c_TLK.Quote_Sell )*Convert.ToDecimal ( oRd [ "LeaseMultiplier" ].ToString ( ) ) , 2)+"&nbsp;&nbsp;</span>";
				}
			}
			oRd.Close ( );
		}