Showing posts with label wrong. Show all posts
Showing posts with label wrong. Show all posts

Monday, March 26, 2012

Callback returns wrong SQL results!

I have a page that has buttons to change values in a few tables. When I use Postbacks it works fine, when I AJAXify it it shows the same results as it did before. Here's the strange bit, if I make a second change it shows the expected results from the first change and so on. It seems to always be one change behind.

I'm going to make a very small version of the page and post it here if it still happens.

It is only happening on one table. It is a very large table but I shouldn't think that would matter if the original Postback method works fine.

Does your AJAX.NET enabled page use a full Web Service? If so you install WSE 3.0 and turn on the trace utiliy. This should show what is being sent and recieve.

Wednesday, March 21, 2012

CalendarExtender: 2007-05-2 is a wrong date

I am not sure how big of a problem this is but here I got this response from of our customers endusers regarding the CalendarExtender.
Her "errorreport" suggested that the control failed to return the wrong dateformat. The format for today would be 2007-05-2 (swedish locale) which IRL looks unnatural because we write it as 2007-05-02 normally. Even though the dates are exactly identical it still causes confusion.

Any idea on how to fix this?

Hi,

try using to set the Format property of the Calendar Extender which would probably be in your case something like yyyy-MM-dd. Also take a look at this post:EnableGlobalization property on the ScriptManager.

Grz, Kris.


EnableScriptGlobalization="true" alraeady was set on the ScriptManager. However the formatstring was yyyy-MM-d, when I changed it to yyyy-MM-dd it worked.

CalendarExtender returns date in wrong format

Hi, i'm using the CalendarExtender control within my web forms. However it keeps returning my dates in the format mm/dd/yyyy but i need it in the format dd/mm/yyyy. I was wondering if someone could tell me how this could be done. ThanksUse the Format property of the CalendarExtender.