C
C#β€’2y 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β€’2y ago
Use breakpoints $debug
MODiX
MODiXβ€’2y 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β€’2y ago
Message Not Public
Sign In & Join Server To View
RJ
RJOPβ€’2y ago
Thank you so much for the answersπŸ™Œ
Accord
Accordβ€’2y 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.
Want results from more Discord servers?
Add your server