Friday, April 27, 2012

Date format string in Gridview


  <asp:BoundField DataField="releasedate" HeaderText="Release Date" SortExpression="releasedate"
                            DataFormatString="{0:M/dd/yyyy}">
                            <HeaderStyle BackColor="LightSkyBlue" Font-Bold="False" HorizontalAlign="Center"
                                Width="90px" BorderColor="LightSkyBlue" BorderWidth="1px" ForeColor="Black" />
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" BorderColor="LightSkyBlue"
                                BorderWidth="1px" />
                        </asp:BoundField>

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...