giving error: Error: Object reference not set to an instance of an object.
here is code:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class advertisementSubmission : System.Web.UI.Page
{
protected String EmplyrSession;
protected int userId;
protected void Page_Load(object sender, EventArgs e)
{
EmplyrSession = (String)Session["UserEmail"];
Response.Write(EmplyrSession);
String conString = "Data Source=COSANOSTRA;Initial Catalog=Waleed_orsfinal;Integrated Security=True";
//Sql Connection
SqlConnection con = new SqlConnection(conStri ...
Go to the complete details ...