AJAX :: CalendarExtender Popup Appearing When Hitting "Enter" Key?
Sep 6, 2010
I have used a CalendarExtender in a page with textboxes. When I press the 'enter' key from another textbox, calendar popup is appearing.I have also tried putting defaultbutton as my button id in form tag , but this is also not woking.<form id="myform" defaultbutton="searchButton"/>
I am having an odd issue where when I hit the 'enter' key, a button on my page (not on the Popup) is being activated. Consequently, it is firing a command that I do not want fired.Put another way, I have a ModalPopup with a 'TextBox', 'Image', and three buttons. I can click inside of the TextBox, begin typing, then hit 'enter', and for some reason it acts as though I am clicking on a button that is on my page, not on the Popup.
I have user control withUpdate panel (updatemode=conditional), textbox, button and gridview with paging. All these controls are in panel and displayed using Modal Popup Extender. I have strange behavior where comma appears on the text box each time I click pagination or button that causes page post back a comman is appended to the text box. Comma is appended in a incremental mode that is no. of commas is equal to the no. of times panel posts back.
2. button click event call th SQL stored procedure to save the form values
3. after save and get the output value from the SQL SP ( its boolean value)
4. if true i have to show the javascript alert or else nothing have to alert, so this is the code
if (CheckandBooked()) { ScriptManager.RegisterClientScriptBlock(btnBook, typeof(string), "alertscript", "alert('Selected time period clashes with existing booking');", true); } bug: this is working good but while showing the alert time i can see the calender( it look like design view) the design is adjusted how to avoid this
I've got a form that when a button is clicked it sends the data to a database and returns a record number. how can i stop the user form using the back button and hitting enter again?
I'm having a problem with the CalendarExtender's position in Google Chrome (4.0.249.78 (36714)) when a page is scrolled down such that the scrollbar position is > 0
- Scroll down so that the "Calendar Demonstration" subheading is just below the top of the browser rendering area.
- Click the first TextBox labelled "Default Calendar"
- The CalendarExtender popup appears with it's top edge at the very top of the page instead of below the TextBox.
The same happens when you click on the 2nd TextBox or on the button trigger for the "Calendar with an associated button" example.
It seems that the "top" css value of the resuting popup div isn't being calculated with the scroll position taken into account. Running the same example in Firefox results in a "top" value of 391px, with the Chrome value being 273px.
The problem is that for any other TextBox on the page which is using this MasterPage, for example the login page, if you type your user name and password and hit Enter, The page is redirected to the SearchPage. If you click on login buttton everything works fine. How do I make sure hitting enter on the page in any other text box does not post back to SearchPage.aspx?
I have a page where the calendar imagebutton and extendar are the first button on the page. I notice that when I hit enter on any of the fields (textboxes) that the calendar will open. How can I prevent this?
I tried setting a default button for the form, which works, but it then causes another problem in that it fires my validators when I hit enter on a field that triggers a button other than the default button. For example, I have a lookup field with a button and if I hit enter on this field the validators will flash quickly because the default button is the submit button and it's trying to submit the form.
I put a break point inside MyWebMethod. When I invoke this call on the page, the break point never gets hit. It works fine when I remove all parameters from MyWebMethod's signature and pass in '{}' from JS as parameters. Once I try to pass in a string parameter, it stops working.
I am using a ComboBox from the ASP.NET AJAX Toolkit (version for .NET 3.5) with values populated into its DataSource property.If I use my mouse to drop the combobox down and select a value, then highlight the value and click backspace, I get an error: Microsoft JScript runtime error: '_optionListItems[...].text' is null or not an objectMy DropDownStyle is set to "DropDown" so I should be able to have text in the control that does not exactly match one of the items in it. Therefore, I do not understand why I get this error. It seems to work perfectly otherwise.
I was trying to apply a pop up control to a Link button on my ASP.NET website. The popup appears only on button click. How can the behavior be moedified to make the popup appear when on mouseover and ide on mouseout?
I was just typing on an old site of mine that requires the constant contact method that uses threading and an update panel to prevent users from being logged out since despite setting the timeout period in web.config to what mathematically should be millions of minutes people still seem to get logged out after like 5 minutes. I tried the web service method, but it was ineffective.
The constant contact with an update panel accomplishes its primary objective well, however when a user clicks on their keyboards back button at the wrong time they get redirected to the previous page and if they click the forward button in their browser the page contains none of their typed data.
Is there a way to override whatever causes the backspace button to do this?
This is really annoying me now!! I found a lot of references to this last night but none now :-(I am attempting to use the editor control in a 3.5 site created in VS 2010 beta and whilst the control is appearing and I can use and reference it fine in code I cannot get the popups to appear for love nor money.The pop ups that I am refering to are the ones that appear to choose colour or to add a link.I am using the latest ajax toolkit available for download from codeplex, as I said VS2010 and working on the 3.5 fw
I am trying to get a modal popup inside a modal popup?, also i want to fire the modal popup on a condition in a text change event of a textbox?...is this possible and can anyone give me directon on this
In my application I have a formview which is inside of a Ajax modal popup.Once users enter the information in the formview and click save, I validation the input.errors, I want to display an error message as a popup or as a modal popup (not javascript alert) with in the ajax modal.How do I do that. I tried several ways but it closes the ajax modal popup.
I have added a ValidatorCallOutExtender to my code and the error msg appears fine BUT the background to the middle section of the extender is white (whereas the default is meant to be yellow. The little pointer arrow & the close button have the default yellow background but the main msg error appears white.
I then tried to change the background color through CSS but the same thing happened. I set the background color to blue but the main msg area appears with a white background whereas the little arrow & close button have the blue background. Here is my code:
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?