Easy - Datagrid displaying a comma

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello -

I didn't exactly know what to put in the Subject line, but here's my problem.

I have the following in my html. I would like to put a comma in after the
city. I tried just putting it in between the %> and </td>, but the comma
displays with an extra space before it., e.g. "someCity ,"

I want "someCity,"

<tr><td width=50%><%#Container.DataItem("City")%></td>

Any help will be greatly appreciated!
 
Any chance the data being bound from Container.DataItem("City") has a space?

Try something like this
<%#Container.DataItem("City").Trim()%>,</

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top