Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. we are lossing the Impression

we are lossing the Impression

Scheduled Pinned Locked Moved C#
designhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    r aa j
    wrote on last edited by
    #1

    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

    K 1 Reply Last reply
    0
    • R r aa j

      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

      K Offline
      K Offline
      Ken Mazaika
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups