Reputation: 1990
I am facing a weird situation, I am developing an asp.net website, and I added a gridview control, it is placed inside td tag.
When I ran the website online, I noticed that the data shown on the rows are shifted to the left while their header tags are centered, so I gave the td an align="center"
property, trying to make the data show centered in each column, and that worked perfectly when debugging the site offline.
However, when I ran the site online (after upload), the data still showed shifted (or aligned left).
Am I missing something here?
Upvotes: 1
Views: 36201
Reputation: 52241
Try this:
<RowStyle HorizontalAlign="Center" />
<AlternatingRowStyle HorizontalAlign="Center" />
Upvotes: 13
Reputation: 8876
Set this property in the gridview: RowStyle-HorizontalAlign="Center"
Upvotes: 4
Reputation: 172280
Have a look at the HTML source in your browser. If you see the align="center" in the offline but not in the online version, something went wrong when publishing your web page (or your browser cache needs to be cleaned, see Crimson's answer).
Upvotes: 1
Reputation: 21838
1) Do an MD5 of the uploaded files to see if the upload did go through correctly
and,
2) Refresh your browser's cache
Upvotes: 0