Null reference error exception when date textbox calen emptyVVviv verma9yAsked Nov 10, 2016, 5:15 AM1.1kLearn iOS ProgrammingNull reference error exception when date field is blank in ASP.NET page
Pradeep Sahoo9y agoPosted Nov 10, 2016, 8:40 AMPlease put code to validate where it is going wrong . Based on my understanding I suggest you to Handle null condition . using proper try and catch handle the exception . Use (!String.IsNullorEmpty (text box to. Text.tostring()) to handle it.+1
Manas Mohapatra9y agoPosted Nov 10, 2016, 7:43 AMIt means provide relevant code snippet where you are getting exception. You can edit the question and update it.0
VVviv verma9y agoPosted Nov 10, 2016, 7:37 AMhello Lalit, post code where you are getting error ? I did not get this. plz clarify ....0
KKkrishna kanhaiya9y agoPosted Nov 10, 2016, 5:37 AMHi Viv ,I have face this types of problem ,I think you should set by Default Datetime.Now in page load .Particular TextBox or a field.....If user are not enter datetime that time he took current date .Don't forget Check if |Help this answer.0
Pradeep SahooPosted Nov 10, 2016, 8:40 AM
Manas MohapatraPosted Nov 10, 2016, 7:43 AM
viv vermaPosted Nov 10, 2016, 7:37 AM
krishna kanhaiyaPosted Nov 10, 2016, 5:37 AM
Lalit RaghavPosted Nov 10, 2016, 5:36 AM