| Forum: ASP.NET2.0 | 
																Thema: 
																	AW: AW: AW: Detailsview - Dynamische Anzeige der Bearbeiten Schaltfläche | 
																	Von: 
																		Bernhard Grojer (
																	23.08.2007 10:36) | 
														
													
												
            
		enabled='<%# MyReturnTrueFalseFunction(Eval("MyTableColumn")) %>'
MyReturnTrueFalseFunction(object x)
{
if (x == DBNULL.value)
{
return false
}
else
{
return (Convert.ToInt32(x) == 1)
}
}
Damit wird der Butto Enabled oder Disabled gesetzt ... Geht natürlich auch mit Visible.
	
	
													
												
            
														
		
			
																
																	
																		| Betreff | 
																		Von | 
																		Datum | 
																	 
															
		
			| 
								 |  
									| 
										
									 | 
									Helmut
											Röser
										
									 | 
									31.08.2007 19:27 | 
								 
							
		
			| 
							 |   
							 | 
		
	
							Antworten
							
							
							Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!