473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Unable to change set with AJAX calendar extender/selectedvalue property

Hello,

I have a text box on an .aspx page that an AJAX calendar extender is tied to. When this page is loaded the text box in question is populated with a date from a selected record. I've tried using the "SelectedValue" property of the calendar extender to populate this text box, but what happens is this text box retains the focus after the page is loaded, which causes the calendar from the calendar extender to appear. I do not want this text box to have the focus on page load. I've tried using javascript and code in my code-behind fine to set the focus to another control but neither of these methods work. Does anyone have a solution to this?

Thanks in advance.

PS I'm using the following:
Visual Studio 2005/C#
AJAX Control Toolkit 1.0.20229.0
System.Web.Extensions 1.0.61231.0
Jul 3 '08 #1
1 6036
acoder
16,027 Expert Mod 8TB
Find the code which sets the focus to the text box. It'll be set using the focus() method. Can you show the code that you've tried, or some relevant code, e.g. the control that you're trying to set the focus to (please post the client-side code [view source in the browser], not .NET code).

One question I'd like to ask though: why does setting the focus on the text box cause the calendar to appear?
Jul 3 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Garg | last post by:
Hi, I am using an AJAX calendar extender and binding it to a atextbox in my application. I want my calendar to enable only a few dates fro user to select. Say, dates from JAn 2006 to Jan 2007....
1
by: William Youngman | last post by:
I have a gridview displaying data and would like to use the AJAX dropdown extender so that when the user clicks on a record a dropdown menu will display providing the user with a menu of selections...
4
by: BillE | last post by:
Can I make the Ajax calendar extender appear on top of dropdown lists instead of behind them? Thanks Bill
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am using a calendar extender with a masked edit validator and masked editextender that provides a dropdown calendar and a text box for date entry. On the same page I am using a sliderExtender...
3
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am using an ajax masked edit extender along with a text box and masked edit validator and calendarExtender. It was working correctly but now for some reason when the user selects the image...
2
by: =?Utf-8?B?QWJoaWxhc2g=?= | last post by:
Hi, I am using AJAX calendar extender.Everything is works fine on date selection from pop up image option but when i dont select a date and click outside on the page,calender remains poped up,it...
1
by: pvong | last post by:
Currently, my calendar extender is returning with the date value 7/31/2008. Is it possible to tell the extender to return it in this format? 2008-07-31 Please note, I'm a newbie and I'm doing...
3
by: =?Utf-8?B?Y21lZWsxXzE5OTk=?= | last post by:
Hello, On a webpage, create an UpdatePanel with two DropDownLists. Set AutoPostBack of DropDownList1 to true. In the SelectedIndexChanged method, refill DropDownList2 and set the focus to...
1
by: beulajo | last post by:
I have used ajax calendar extender my framework is 2.0 In this calendar extender, I face problem of showing calender when the user clicks outside the control The calendar is getting hidden...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.