Server Error in '/' Application.

Conversion from string "" to type 'Date' is not valid.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Conversion from string "" to type 'Date' is not valid.

Source Error:


Line 7:          <div class="link_a">
Line 8:              <div class ="dlink"><asp:Literal ID="lbllink_2" runat="server"></asp:Literal></div>
Line 9:              <div class="TimeL"><%=Ngay_2(ltrTimeN.Text)%></div>
Line 10:         </div>
Line 11:         <div class="clearfix"></div>

Source File: E:\HostingPlanC\vieclamhagiang.vn\controls\gioithieu.ascx    Line: 9

Stack Trace:


[InvalidCastException: Conversion from string "" to type 'Date' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value) +226
   ASP.controls_gioithieu_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\HostingPlanC\vieclamhagiang.vn\controls\gioithieu.ascx:9
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   ASP.desktop_master.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in E:\HostingPlanC\vieclamhagiang.vn\Desktop.Master:80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
   FormRewriterControlAdapter.Render(HtmlTextWriter writer) in E:\HostingPlanC\vieclamhagiang.vn\App_Code\FormRewriter.vb:7
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +11159451
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974