Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2007, 10:41 AM
Authorized User
 
Join Date: Jan 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default GridView auto populate

I have a problem with my gridview i am trying to auto populate a field like time. SO here is the code that i have written

Code:
<asp:TemplateField HeaderText="Time" SortExpression="Time">
                                <ControlStyle Width="60px" />
                                <ItemTemplate>
                                    <asp:Label ID="lblTime" runat="server" Width="120px" Text='<%# Bind("Time") %>' CssClass="gvItem" />
                                </ItemTemplate>
                                <EditItemTemplate>
                                         <asp:textbox ID="txtTime" runat="server" Width="120px" Text='<%# Format(Now, "hh.mm tt") %>' CssClass="gvItem" />
                                </EditItemTemplate>
                                <HeaderStyle Font-Bold="False" />
                            </asp:TemplateField>
It will show the right time but for some reason it will not populate out to the database what am i doing wrong.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto populate/look up slim Access 6 May 31st, 2007 03:58 AM
Populate Auto-Number Field JeffGirard Access 2 August 26th, 2005 06:49 AM
Auto Populate fields in a form mnemec24 Access 8 March 9th, 2005 02:11 PM
Auto Populate a field ? mar0364 Classic ASP Databases 4 July 9th, 2004 11:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.