Click here to Skip to main content
15,914,335 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSiteMap Pin
William Fitzgerald9-Jul-09 14:18
William Fitzgerald9-Jul-09 14:18 
Questionmultiselect listbox - set selections using delimeted string Pin
ublend9-Jul-09 13:02
ublend9-Jul-09 13:02 
AnswerRe: multiselect listbox - set selections using delimeted string Pin
www.Developerof.NET9-Jul-09 20:52
www.Developerof.NET9-Jul-09 20:52 
GeneralRe: multiselect listbox - set selections using delimeted string Pin
ublend10-Jul-09 8:41
ublend10-Jul-09 8:41 
QuestionLink protection Pin
pforu19-Jul-09 11:26
pforu19-Jul-09 11:26 
AnswerRe: Link protection Pin
ublend9-Jul-09 13:19
ublend9-Jul-09 13:19 
GeneralRe: Link protection Pin
pforu19-Jul-09 14:47
pforu19-Jul-09 14:47 
GeneralRe: Link protection Pin
Gary Stafford9-Jul-09 16:08
Gary Stafford9-Jul-09 16:08 
GeneralRe: Link protection Pin
ublend10-Jul-09 8:39
ublend10-Jul-09 8:39 
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 

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.