Hi,
I am trying to use upload option for attachment, there is no error but this one Object reference not set to an instance of an object. when every I try to run the page.
This is the 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 sendquote : System.Web.UI.Page
{
string strConnString = ConfigurationManager.ConnectionStrings["dstrConnectionString"].ConnectionString;
string str;
SqlCommand com;
protected void Page_Load(object sender, EventArgs e)
{
insertdata();
}
public void insertdata()
{
SqlConnection con = new SqlConnec ...
Go to the complete details ...