Click here to Skip to main content
15,884,472 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Link protection Pin
pforu110-Jul-09 16:36
pforu110-Jul-09 16:36 
QuestionWord Document Automation : Need Control after its opened Pin
Sandumone9-Jul-09 10:05
Sandumone9-Jul-09 10:05 
AnswerRe: Word Document Automation : Need Control after its opened Pin
David Mujica9-Jul-09 10:23
David Mujica9-Jul-09 10:23 
QuestionBrowser compatability Issues Pin
VivekUtsa9-Jul-09 8:00
VivekUtsa9-Jul-09 8:00 
AnswerRe: Browser compatability Issues Pin
Jeremy Likness9-Jul-09 8:24
professionalJeremy Likness9-Jul-09 8:24 
Questionproblem in getting the count of listitems in listbox javascript Pin
nainakarri9-Jul-09 5:20
nainakarri9-Jul-09 5:20 
AnswerRe: problem in getting the count of listitems in listbox javascript Pin
Blue_Boy9-Jul-09 6:14
Blue_Boy9-Jul-09 6:14 
QuestionDataBind having error with null values Pin
dreamaway8209-Jul-09 5:15
dreamaway8209-Jul-09 5:15 
I am using a GridView and one of the fields is a DateTime. The values in this field can be null. When I call gvwDetails.DataBind() I get this error:

"String was not recognized as a valid DateTime."

I just want it to display an empty string if its a null value. It doesn't seem that hard but I have tried searching google and read a bunch of MS pages on GridViews and DataBind. The closest I have come is setting the ConvertEmptyStringToNull property in my field to true but its not doing anything. My code for the template field is:

<asp:TemplateField HeaderText="Date Due"> <br />
                <EditItemTemplate> <br />
                    <asp:TextBox ID="txtDateDue" runat="server" Text='<%# Bind("DATE_DUE") %>'></asp:TextBox> <br />
                </EditItemTemplate> <br />
                <FooterTemplate> <br />
                    <asp:TextBox ID="txtNewDateDue" runat="server" Width="100" ></asp:TextBox> <br />
                </FooterTemplate> <br />
                <ItemTemplate> <br />
                    <asp:Label ID="lblDateDue" runat="server" Text='<%# Eval("DATE_DUE") %>'></asp:Label> <br />
                </ItemTemplate> <br />
                <HeaderStyle HorizontalAlign="Left" /><br />
            </asp:TemplateField>


Is this really simple and I'm not seeing it? I'm sure there's some way of handling null values that I must not be seeing. Thank you for any help.
AnswerRe: DataBind having error with null values Pin
Zafar A khan 9-Jul-09 19:14
professionalZafar A khan 9-Jul-09 19:14 
GeneralRe: DataBind having error with null values [modified] Pin
dreamaway82010-Jul-09 4:32
dreamaway82010-Jul-09 4:32 
QuestionHow to reset a counter on database table Pin
VivekUtsa9-Jul-09 5:00
VivekUtsa9-Jul-09 5:00 
AnswerRe: How to reset a counter on database table Pin
DoctorMick9-Jul-09 5:04
DoctorMick9-Jul-09 5:04 
GeneralRe: How to reset a counter on database table Pin
VivekUtsa9-Jul-09 5:47
VivekUtsa9-Jul-09 5:47 
GeneralRe: How to reset a counter on database table Pin
Manas Bhardwaj9-Jul-09 5:59
professionalManas Bhardwaj9-Jul-09 5:59 
GeneralRe: How to reset a counter on database table Pin
VivekUtsa9-Jul-09 6:14
VivekUtsa9-Jul-09 6:14 
GeneralRe: How to reset a counter on database table Pin
N a v a n e e t h9-Jul-09 17:45
N a v a n e e t h9-Jul-09 17:45 
GeneralRe: How to reset a counter on database table Pin
VivekUtsa11-Jul-09 6:03
VivekUtsa11-Jul-09 6:03 
Questionuse one gridview with two tables having no common field? Pin
shankbond9-Jul-09 4:36
shankbond9-Jul-09 4:36 
AnswerRe: use one gridview with two tables having no common field? Pin
Christian Graus9-Jul-09 4:39
protectorChristian Graus9-Jul-09 4:39 
GeneralRe: use one gridview with two tables having no common field? Pin
shankbond9-Jul-09 5:39
shankbond9-Jul-09 5:39 
GeneralRe: use one gridview with two tables having no common field? Pin
shankbond10-Jul-09 1:34
shankbond10-Jul-09 1:34 
GeneralRe: use one gridview with two tables having no common field? Pin
Zafar A khan 10-Jul-09 19:27
professionalZafar A khan 10-Jul-09 19:27 
QuestionCreate select stored procedure and create connection string Pin
Mix Wheels9-Jul-09 3:08
Mix Wheels9-Jul-09 3:08 
AnswerRe: Create select stored procedure and create connection string Pin
Christian Graus9-Jul-09 3:15
protectorChristian Graus9-Jul-09 3:15 
GeneralRe: Create select stored procedure and create connection string Pin
Manas Bhardwaj9-Jul-09 3:21
professionalManas Bhardwaj9-Jul-09 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.