If you want your table column to not wrap in ASP.Net, you can use the NoWrap property in the tag like so:
- <td nowrap="nowrap">
- content
- </td>
<td nowrap="nowrap">
content
</td>
This makes the code xhtml compliant and prevents warnings in the source view of designer in Visual Studio. Normally you could just specify a nowrap attribute by itself in plain html.
Or the CSS equivalent of setting nowrap:
- <td style="white-space:nowrap;">
- content
- </td>
<td style="white-space:nowrap;">
content
</td>
Again, using the first option will prevent warnings in source view.
I recently needed to change the Title of an Application Page in SharePoint 2010 from code behind. This is how I did it in Page_Load...
So the sequence goes:
- Get a reference to the appropriate Content Placeholder
- Clear out anything that SharePoint might have put in it already
- Put your content in.
Or, in C#:
ContentPlaceHolder contentPlaceHolder = (ContentPlaceHolder) Page.Master.FindControl("PlaceHolderPageTitle");
contentPlaceHolder.Controls.Clear();
LiteralControl literalControl = new LiteralControl();
literalControl.Text = "Your text goes here";
contentPlaceHolder.Controls.Add(literalControl);