errot in program that Textbox-Textbox4 does not exsist in current context
-
I was making a simple guestbook where i define labels(Name,mail,location and message ). i made a table for this. when i run the program . error comes that Textbox1- Text4 does not exsists in current context. following is coding that i have done. ---------------------------------------------------------------------- guestbook.aspx:- ]]> Untitled Page
Name:
E-mail:
Location:
Message:
------------------------------------------ default.cs :- using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["cn"].ConnectionString); SqlCommand cmd = new SqlCommand(); protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs
-
I was making a simple guestbook where i define labels(Name,mail,location and message ). i made a table for this. when i run the program . error comes that Textbox1- Text4 does not exsists in current context. following is coding that i have done. ---------------------------------------------------------------------- guestbook.aspx:- ]]> Untitled Page
Name:
E-mail:
Location:
Message:
------------------------------------------ default.cs :- using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["cn"].ConnectionString); SqlCommand cmd = new SqlCommand(); protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs