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. Web Development
  3. ASP.NET
  4. we are lost the impressions

we are lost the impressions

Scheduled Pinned Locked Moved ASP.NET
designhelp
3 Posts 2 Posters 1 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 {

    N 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 {

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Raj, I am sure no one will read the entire code and come up with a solution. You will get good replies if you post only relevant code and explain the issues clearly. :)

      Navaneeth How to use google | Ask smart questions

      R 1 Reply Last reply
      0
      • N N a v a n e e t h

        Raj, I am sure no one will read the entire code and come up with a solution. You will get good replies if you post only relevant code and explain the issues clearly. :)

        Navaneeth How to use google | Ask smart questions

        R Offline
        R Offline
        r aa j
        wrote on last edited by
        #3

        concept is whenever getting the impression we are insert +1 to database with creative ID,Already Inserted means we are Updating...the problem is In clientSide(Company Client) server is showing impression more than Our Application(we handling other server)....Both server sholud be display same... that means we are lossing the impression.. Plz help me in this

        Raaj

        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