Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 51:         Dim Sql As String = "select * from flight.tip where id=" & Request("tip_id")
Line 52:         Dim dt As DataTable = mf.SelectDBRows_mysql(Sql, constring_sql)
Line 53:         If dt.Rows.Count > 0 Then
Line 54:             Dim title As String = mf.n2text(dt.Rows(0).Item("title"))
Line 55:             Dim tag As String = mf.n2text(dt.Rows(0).Item("tag"))

Source File: D:\vietsmile\webVisa\smiletravelvietnam\tips\tip.aspx.vb    Line: 53

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   tips_tip.page_title() in D:\vietsmile\webVisa\smiletravelvietnam\tips\tip.aspx.vb:53
   tips_tip.Page_Load(Object sender, EventArgs e) in D:\vietsmile\webVisa\smiletravelvietnam\tips\tip.aspx.vb:17
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0