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> 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 […]
Continue reading...Tuesday, June 23, 2009
To format columns in a GridView control, you can use the FormatString property: //Formatting Currency <asp:GridView id="grid" Runat="Server" > <Columns> <asp:BoundField HeaderText="Amount" DataField="amt" FormatString="{0:c}"/> </Columns> </asp:GridView> To format a Date column, you must also set the HTMLEncode property to “False”. //Formatting a date column <asp:BoundField HeaderText="Amount" DataField="date1" FormatString="{0:d}" HTMLEncode="False" /> To format a Currency with […]
Continue reading...Wednesday, November 5, 2008
Comments Off on Slow Web Service calls to LocalHost in ASP.NET
Here’s a few troubleshooting steps you can use to resolve slow calls to web services that are on your local host. 1. When I googled this issue, I found this link. It reveals a setting you can make in your web.config to force all calls to local web services to bypass your proxy (if you […]
Continue reading...Sunday, May 6, 2007
Update: Metabuilders.com updated their controls for Net 2.0! Metabuilders had a free ASP.Net web control (with source) called DualList (or DynamicListBox) that worked really well in ASP.Net 1.1. I wanted to use it in 2.0 but there are some minor fixes needed in the code. Here is summary of the fixes I found here and […]
Continue reading...
Thursday, June 25, 2009
Comments Off on NoWrap in ASP.Net