I am trying to accomplish the following.I am displaying records from a database query that include a datetime value. If the datetime value is before the year 2000 (the database defaults to either 1753 or 1900), I want the textbox associated with the CalendarExtender to display nothing. So I created a control library, made a new class 'DateTextbox' and inherited from TextBox.I added the following code:
I've written a custom date control that inherits the TextBox control, but has it's own three textboxes for capturing month,day, and year separately. I wanted to use the CalendarExtender with it so people could plug in the date that way as well, but I cannot "trigger" the CalendarExtender to show with my custom control.
I've implemented a custom membership provider (as the user credentials are stored in a legacy application), however, the website is exhibiting two behaviours which it shouldn't. Firstly, it's not tracking invalid password attempts. My website does not use questions and answers, but according to MSDN (http://msdn.microsoft.com/en-us/library/f1kyba5e(v=VS.90).aspx) the "ValidateUser" method should still track them. When I put a breakpoint on the MaxInvalidPasswordAttempts property it is never even accessed.
Secondly, when I manually lock out a user, I can still log in with those credentials (I have confirmed that the MembershipUser object returned by the GetUser method during the login has the "IsLockedOut" property set correctly).The config file lists only the provider name and type - at the moment I'm hard-coding the provider's properties. (For this reason I'm not overriding the Initialize method.)Either I'm doing something wrong, or I have to track these invalid attempts myself, and fail authentication when the user is locked out - which would seem a little silly, since itappears like the membership provider infrastructure should handle that for you...
I am using the MaskedEditExtender and MaskedEditValidator, but have experienced some strange behaviour. (See code example below). When entering a date into the textbox this is what I see:
1. The mask
2. Entering the date and time e.g. "19-01-1980 10:11:12"
3. When removing focus from the textbox the result is: "19-01-1980 19:01:19"
The six first digits of the date is copied as the time? If entering a day of the month larger than 23 and any given month, year and time (eg. 25-10-1980 12:12:12) the validation fails as the six first digits are copied to the time resulting in a time 25:10:19 which obviously is not valid.
I have downloaded the AJAX toolkit sample code and experience the exact same behaviour. When running the AJAX Toolkit samples from[URL] works fine!
Additinal info: Culture is danish (DateTime format is dd-MM-yyyy hh:mm:ss). Tried changing my systems culture to en-US but same behaviour.
I have found an odd bug in my application. I have a dropdown status which is bound to my gridview. On selecting a status from the dropdown the selectedindex then fires and binds the results to the gridview.Now the strange behaviour in firefox and not IE:If I have a dropdown open and an ajax update fires on my gridview the option is selected from the dropdown (just by hovering my mouse over it rather than selecting it) and the results bound to the gridview. This does not happen in ie as you should have to physically select an item from the dropdown rather than firefox selecting it for you because you happened to hover over an option when the update event fires.
when using CalendarExtender with a TextBox, when i press mouse into the TextBox, a Calendar pop-ups. I want to know, does here asynchronous communication took place for bringing this calender from server to the browser ? or initially at the time of page load itself that calendar was loaded in the browser ?
I am having a very weird problem with 'CalendarExtender' as Ajax control in my application.
I added this extender to one of my textbox controls, but when I run the application and click on the textbox nothing happens. It does not show any errors either.I have added all the necessary references:
'AjaxControlToolkit.dll' & 'System.Web.Ajax.dll' to the project, but it des not work for some reason. Here is and the problematic piece of code:
basically wot i m doing is to validate the textbox that having the date but nothing happen as i dont select the date, textbox is only readonly, can any one assist me in this matter?
ASP.NET Ajax toolkit has a CalendarExtender control which is very cool as associate the CalendarExtender to a a TextBox. here am using two Ajax toolkit has a CalendarExtender controls with two textboxes but i want to validate of both CalenderExtenders ....... 2nd CalenderExtender Date should Greater Than 1st CalenderExtender Date.
I can't have my culture on CalendarExtender ? I've tryed to set Culture and UICulture to auto on the container page, but calendar still in US ?this CalendarExtender is on an Usercontrol.
The text box is updated correctly if it is empty or if the date is invalid e.g. 9/292010.
If the current text is 9/29/2010 and a different date is clicked then the calendar stays open with the previous date selected. I get the following error message "e.getDateOnly is not a function".
I have the following calendarextender connected to a text box (TextBoxDate). When I choose a new date, I can see that the textbox is updated. However, when I call the text box in a vb script, run when I click a button, the text box is null. The script worked fine when I would enter the date by hand. The failure began when I added the calendarextender.
my question is if anybody know how to execute method when select some date in calendarextender because i need get some information when i select the date
If the date selected (in the calendarExtender) is not in the allowed range, I want to reset the selected date to null in the "OnClientDateSelectionChanged" event. Dont know how.
Is there a way to set a maximum of a CalendarExtender? Like it can't go farther than '2079-06-06' (This is the limit ouf SqlServer SMALLDATETIME). Or the only way to block the user from entering a date that is out of range is to verify manually?
I have two calendar controls where format is set to "d-M-yyyy". When the corresponding textboxes are filled (from calendar control or typed) i do acallback with the new value. When value from first textbox > value from second textbox I swap the values. This part works... However if i try to set the values by using calendar.set_selectedDate(value) - where value is a string in the same format as the calendar should accept - then calendar produces output in the format "MM-dd-yyyy" which is not correct!
As a result, I'm now setting values for the text-fields, which does not update the calendar..
how to use/call ajaxToolkit:CalendarExtender in an xslt as I have an xslt control that renders data to my page but I am using ajax for the site now and I have to update a few xslt pages so that I can use ajax controls.PS : I don't understand xslt's much but do understand that they use standard html/javascript controls.