C
C#β€’14mo ago
RJ

❔ NullReferenceException was unhandled by user code

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class User_Member : System.Web.UI.MasterPage { DS_AITEM.ITEM_SELECTDataTable IDT = new DS_AITEM.ITEM_SELECTDataTable(); DS_AITEMTableAdapters.ITEM_SELECTTableAdapter IAdapter = new DS_AITEMTableAdapters.ITEM_SELECTTableAdapter(); protected void Page_Load(object sender, EventArgs e) { lblname.Text = "welcome " + Session["fname"].ToString() + " " + Session["lname"].ToString(); } protected void Button1_Click(object sender, EventArgs e) {
Session["s"] = TextBox1.Text+"%"; Response.Redirect("Search.aspx"); } protected void LinkButton2_Click(object sender, EventArgs e) {
} } Can someone please help me with this problem πŸ™
5 Replies
Buddy
Buddyβ€’14mo ago
Use breakpoints $debug
MODiX
MODiXβ€’14mo ago
Tutorial: Debug C# code - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
Unknown User
Unknown Userβ€’14mo ago
Message Not Public
Sign In & Join Server To View
RJ
RJβ€’14mo ago
Thank you so much for the answersπŸ™Œ
Accord
Accordβ€’14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.