J
Jay
I use many GridView controls bound to data sources on an
ASP.Net Web site.
One of my controls shows address information
as follows:
MyName
MyAddress1
MyAddress2
MyCity, MyState MyZIP
The above information are incorporated into an
ItemTemplate with the fields evaluated at run time
with HTML <br /> tags after each field except the
last.
If MyAddress2 contains no data, then I want
the city, state and ZIP to be on the next
line following MyAddress1.
How do I "inform" the template not to
leave a blank line if MyAddress2 is null?
ASP.Net Web site.
One of my controls shows address information
as follows:
MyName
MyAddress1
MyAddress2
MyCity, MyState MyZIP
The above information are incorporated into an
ItemTemplate with the fields evaluated at run time
with HTML <br /> tags after each field except the
last.
If MyAddress2 contains no data, then I want
the city, state and ZIP to be on the next
line following MyAddress1.
How do I "inform" the template not to
leave a blank line if MyAddress2 is null?