we are lossing the Impression
-
hi all , I am developing advertising Website-Registering Impression,click etc..here problem is whenever user registering Impression that we are loss the 40% impression and here we doing geolocation also.I attached following code also..Plz reply me if u know...Thanks using System; using System.Data; using System.Data.SqlClient; using dataacesslayer; using System.Web; public partial class Admin_getbase : System.Web.UI.Page { string Crid = ""; SqlConnection conn = null; SqlCommand cmdinsert = null; protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); SqlParameter paramvalue; conn = new SqlConnection("Data Source=dddd;Initial Catalog=new;User ID=fg;Password=hg"); if (Request.QueryString["Crid"] != null) { Crid = Request.QueryString["Crid"].ToString(); } try { cmdinsert = new SqlCommand("sd_Basreg", conn); cmdinsert.CommandType = CommandType.StoredProcedure; paramvalue = new SqlParameter("@Crid", SqlDbType.Int); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = Crid; cmdinsert.Parameters.Add(paramvalue); paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = IpAddress(); cmdinsert.Parameters.Add(paramvalue); conn.Open(); cmdinsert.ExecuteNonQuery(); Response.ContentType = "text/plain"; Response.Write("&imp=registered&"); } catch (Exception ex) { cmdinsert = new SqlCommand("sd_Basreg", conn); cmdinsert.CommandType = CommandType.StoredProcedure; paramvalue = new SqlParameter("@Crid", SqlDbType.Int); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = Crid; cmdinsert.Parameters.Add(paramvalue); paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt, 50); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = "0"; cmdinsert.Parameters.Add(paramvalue); conn.Open(); cmdinsert.ExecuteNonQuery(); Response.ContentType = "text/plain"; Response.Write("&imp=registered&"); } finally { cmdinsert.D
-
hi all , I am developing advertising Website-Registering Impression,click etc..here problem is whenever user registering Impression that we are loss the 40% impression and here we doing geolocation also.I attached following code also..Plz reply me if u know...Thanks using System; using System.Data; using System.Data.SqlClient; using dataacesslayer; using System.Web; public partial class Admin_getbase : System.Web.UI.Page { string Crid = ""; SqlConnection conn = null; SqlCommand cmdinsert = null; protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); SqlParameter paramvalue; conn = new SqlConnection("Data Source=dddd;Initial Catalog=new;User ID=fg;Password=hg"); if (Request.QueryString["Crid"] != null) { Crid = Request.QueryString["Crid"].ToString(); } try { cmdinsert = new SqlCommand("sd_Basreg", conn); cmdinsert.CommandType = CommandType.StoredProcedure; paramvalue = new SqlParameter("@Crid", SqlDbType.Int); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = Crid; cmdinsert.Parameters.Add(paramvalue); paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = IpAddress(); cmdinsert.Parameters.Add(paramvalue); conn.Open(); cmdinsert.ExecuteNonQuery(); Response.ContentType = "text/plain"; Response.Write("&imp=registered&"); } catch (Exception ex) { cmdinsert = new SqlCommand("sd_Basreg", conn); cmdinsert.CommandType = CommandType.StoredProcedure; paramvalue = new SqlParameter("@Crid", SqlDbType.Int); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = Crid; cmdinsert.Parameters.Add(paramvalue); paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt, 50); paramvalue.Direction = ParameterDirection.Input; paramvalue.Value = "0"; cmdinsert.Parameters.Add(paramvalue); conn.Open(); cmdinsert.ExecuteNonQuery(); Response.ContentType = "text/plain"; Response.Write("&imp=registered&"); } finally { cmdinsert.D
Hi Raaj, I'm not sure what your question is, otherwise I would try to help. I'm not sure what this means:
..here problem is whenever user registering Impression that we are loss the 40% impression and here we doing geolocation also.
-Ken