-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: manjpab
Message 1 in Discussion
Hi All, I have a .aspx, where I bind a label and a textbox to DataVeiw column that
contains date values. In this I want only date(not time) to be displayed. As an
example now I'm getting "7/26/1994 12:00:00 AM" like this, but I want like
"7/26/1994". And Lable and Tetxbox are part of the Template column of the DataGrid.
code sample is : <ITEMTEMPLATE><asp:Label id=Label5 text='<%#
DataBinder.Eval(Container.DataItem, "grade_code")%>'
Runat="server"></asp:Label></ITEMTEMPLATE><EDITITEMTEMPLATE><asp:DropDownList
id=edit_grade Runat="server" DataValueField="grade_id" DataTextField="grade_code"
DataMember="grade_code" DataSource="<%# PopulateDtGrid()%>" WIDTH="90px"
CssClass="txtbox"><asp:TemplateColumn HeaderText="Date of Join"
SortExpression="joindate">
<ItemTemplate>
<asp:Label Runat="server" ID="Label7" text='<%#
DataBinder.Eval(Container.DataItem, "joindate")%>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox Runat="server" CssClass="txtbox" WIDTH="130px"
ID="edit_joindate" text='<%# DataBinder.Eval(Container.DataItem, "joindate")%>' />
</EditItemTemplate>
</asp:TemplateColumn></asp:DropDownList> <asp:DropDownList Runat="server"
DataValueField="grade_id" DataTextField="grade_code" DataMember="grade_code"
DataSource="<%# PopulateDtGrid()%>" WIDTH="90px" CssClass="txtbox"></asp:DropDownList>
<asp:DropDownList Runat="server" DataValueField="grade_id" DataTextField="grade_code"
DataMember="grade_code" DataSource="<%# PopulateDtGrid()%>" WIDTH="90px"
CssClass="txtbox">Thanks in advance.</asp:DropDownList> <asp:DropDownList
Runat="server" DataValueField="grade_id" DataTextField="grade_code"
DataMember="grade_code" DataSource="<%# PopulateDtGrid()%>" WIDTH="90px"
CssClass="txtbox"></asp:DropDownList> <asp:DropDownList Runat="server"
DataValueField="grade_id" DataTextField="grade_code" DataMember="grade_code"
DataSource="<%# PopulateDtGrid()%>" WIDTH="90px" CssClass="txtbox">Manjunath
A.</asp:DropDownList> <asp:DropDownList Runat="server" DataValueField="grade_id"
DataTextField="grade_code" DataMember="grade_code" DataSource="<%# PopulateDtGrid()%>"
WIDTH="90px" CssClass="txtbox"></asp:DropDownList></EDITITEMTEMPLATE>
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]