Flight Details
- <%#Eval("Leg1From")%>
Terminal: <%#Eval("Leg1DepTerminal")%>
<%#Eval("Leg1DepDate")%> at <%#Eval("Leg1DepTime")%>
Flight No: <%#Eval("Leg1Carrier")%><%#Eval("Leg1FltNo")%> - <%#Eval("Leg1To")%>
<%#Eval("Leg1ArrDate")%> at <%#Eval("Leg1ArrTime")%> - Aircraft:
Duration:
Cabin:
Meals: - <%#Eval("Leg1Equip")%>
<%#Eval("Leg1Time")%>
<%#Eval("Leg1ECabin")%>
<%#Eval("Leg1MealCode")%>
IN this I want to hide "Flight No: " according to condition , how can i hide this?(i will take it as label)

Amit ChoudharyPosted Feb 10, 2011, 5:48 AM
Create a function in your .aspx.cs file say ShowFlight(object FlightNo) make it public,
Here you can return the complete string as FlightNo.=1123 from the above function based on condition there return either the string.Empty or the string FlightNo.=1123.
<%#ShowFlight(Eval("Leg1FltNo"))%>
Hope it make sense to you.
Thanks.
Vikas AhlawatPosted Feb 10, 2011, 9:03 PM