Search

You searched for the word(s): userid:765853

Matching Posts

  • Re: session object not being formed

    Hi, Are telling me to create this class within the same cs file which already has a class.Can one .cs file have multiple classes Any idea why the good old method doesn't work and therefore I go in a roundabout way Thanks for your reply.
    Posted to State Management (Forum) by sunny74 on 11/2/2009
  • Re: session object not being formed

    Hi Mohsin, Can u send me the code for what you r saying? Thanks for ur reply.
    Posted to State Management (Forum) by sunny74 on 10/28/2009
  • session object not being formed

    Dear Friends, I am trying to initialize Session objects in a class file i.e cs but it's just not happening. HttpContext.Current.Session["longi"] = Convert.ToString(0.00); Then I tried to initialize it in a different way. float longi = 0.00F; HttpContext.Current.Session.Add("longi", longi); But in both cases I am getting the error "Object reference not set to an instance of an object". what wrong am I doing? I am getting similar error with cache. Thanks for ur responses
    Posted to State Management (Forum) by sunny74 on 10/27/2009
  • Re: session object not being formed

    Hi Viral, [quote user="vvsce349"] 1. Have you write using System.Web; in your code file? 2. Are you getting HttpContext.Current.Session as not null in your code file? I have implmented same code as you did and not getting any Errors. [/quote] 1. It is there. 2. Httpcontext.Current.Session is coming from intellisense so it is not null. I had also implemented the similar thing before with no errors but right now it doesn't work. Could it be that I am missing something or the technology
    Posted to State Management (Forum) by sunny74 on 10/27/2009
  • Re: check if data in DB table is old

    Hi, Thanks for ur reply. [quote user="vinz"]You can fetch the data and based on the dates you can compare it with the current Date and Time. If the field from DB is less than the date and time today (current) then that means it's older.[/quote] so u are telling me to compare the date in the DB with the current date time and if its less then its older. But basically I need to compare the data i.e latitude,longitude stored in the DB the last time with the present one. Since data in the
  • Re: check if data in DB table is old

    Hi Sivakumar, Thanks for ur brief reply. [quote user="sivagates05"]say iam getting one record from the db . while getting that record i will get that date column to and while again iam hitting the db i will check whether the same date is there if not then some updation has happen else it is the same record.[/quote] It is OK if I keep a Datetime column in the same DB table.When I will update the record I will also insert Datetime into the corresponding column. But there is one problem.There
  • check if data in DB table is old

    Dear Friends, I am picking up data of 3 columns from a postgres DB. The columns are recordid, longitude and latitude.There are 2 records for each of these columns which I am picking up in an interval of 1 minute. The data in the DB comes from a GPS base modem. Sometimes the modem fails to update the DB table every minute. So before picking up the data I want to check whether the data in the DB table which was there in my dataset the previous time is the same as this time or not. If the data is unchanged
  • Sys.ArgumentTypeException: Object of type 'Number' cannot be converted to type 'Function'

    Dear Friends, Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Number' cannot be converted to type 'Function'. I am getting this error when I am trying to return a Point i.e POINT(72.689697265625 23.09658203125) as a string thru a webservice. My webservice function is as follows: [WebMethod] [ScriptMethod(UseHttpGet = true)] public string getWkT() { DBConnect db = new DBConnect(); //string ptstr = string.Empty; int [] seq = new int[2]; seq[0] = 1; seq[1
  • Re: Debugging ScriptResource.axd

    Hi Pawan, [quote user="Pawan_Mishra"]These files are generated automatically and I guess they are not modifiable.[/quote] You are right.These files are unmodifiable and created at run time. But the error is generated from javascript code.So I want to know where in js code is the source of this error. As far as the scenario is concerned it is like this. I had written javascript code to fetch point geometry from a postgres DB which is then converted into lonlat i.e longitude and latitude
  • Re: Debugging ScriptResource.axd

    Hi Avinash, [quote user="qwe123kids"] http://blogs.msdn.com/carloc/archive/2008/12/04/webresource-axd-or-scriptresource-axd-not-working.aspx Chk the above link [/quote] Your link partially solved the problem. In fact the article is a good one and it tells to turn off "check if file exists" for axd file. But this checkbox was already off. Later it talked about .ad file and there was another checkbox with the same label. I thought about turning it off even though not mentioned in
Page 1 of 55 (544 items) 1 2 3 4 5 Next > ... Last »