Search

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

Matching Posts

  • Page.ClientScript.RegisterStartupScript() not working with AJAX

    Hi, In an ASP .NET 2.0 (VB) web page with one AJAX UpdatePanel that encloses all the body's contents, there's code-behind that sets a call to a Javascript alert() by using Page.ClientScript.RegisterStartupScript(). But this alert() is never called, looking at the code generated for the page, I realize it doesn't have the alert() anywhere. Why isn't Page.ClientScript.RegisterStartupScript() working? How can I make my JS alert() function pop up when AJAX is done updating the page? Thanks
  • Re: Form loses focus after Ajax update

    Thank you. I read the article--very interesting, but this issue is something that .NET/AJAX should take care of at the low level. (the following "subliminal" message is for MicroSoft) should be If the application programmer's code doesn't explicitly change the form's focus, the form's focus should be maintained by the framework just like the controls' state are. The problem with implementing the fix in that article is that if .NET/AJAX changes API, function names, etc
  • Form loses focus after Ajax update

    Hello, This problem is about a webpage in ASP .NET 2.0 (VB.NET) and AJAX. There's a conditional update panel around a dropdown, which populates the dropdown. When this update panel finishes the update, the focus goes to the 1st control on the page instead of staying on the control it was before the update. There's no explicit code in this page to change focus anywhere, so the focus should stay where it was before the AJAX update. Is this a bug in AJAX? Is there a solution for this? Your help
    Posted to ASP.NET AJAX Discussion and Suggestions (Forum) by e_man_online on 10/6/2008
    Filed under: ajax focus
  • Re: ASP .NET 2.0 - VB.NET - AJAX - Controls lose focus

    Hi Vince, Thank you for your help. Sorry, I forgot to explain that on this page, each control has its own UpdatePanel, and they all have UpdateMode="Conditional" Let's say we have: DropDown1 and DropDown2 inside UpdatePanel2... If the focus is on DropDown1, and the user selects a value from DropDown1, DropDown2 refreshes, but the focus goes to the first control on the page, so if the user presses Tab, they expect the focus to go to DropDown2, but it doesn't. Your kind help with
  • ASP .NET 2.0 - VB.NET - AJAX - Controls lose focus

    Hello, I have a webpage in ASP .NET 2.0 (VB.NET) and AJAX. There's an update panel. When the update panel finishes the update, the focus goes to the 1st control on the page. There's no explicit code in this page to change focus anywhere, so the focus should stay where it was before the update. The focus...it's so simple, so basic, why do I have to be dealing with this problem? Ajax was supposed to speed forms up, not to create new problems. The issue with the focus should be handled
    Posted to ASP.NET AJAX Discussion and Suggestions (Forum) by e_man_online on 7/30/2008
    Filed under: AJAX focus
  • ASP.NET AJAX Required Validator doesn't work

    I have a webpage in asp.net, which has 2 required field validators, and everything worked before. I added ajax support in the web.config, and updatepanel tags to some pages in he same application, and ajax partial page update works. But on pages like the one with the validators, they don't work anymore. This page has 2 dropdown controls: Country, and Subregion. Each one has a required field validator. The page also has a Submit button, and a gridview The page works like this: User selects a Country
    Posted to ASP.NET AJAX UI (Forum) by e_man_online on 5/17/2008
  • Event handler in vb code or in html page?

    Hi. Where should the event handling subroutines go in the vb form code like this: Sub MyEventHandler(...) handles MyControl.Event ... End Sub or in the HTML script on the page like this: <asp:ControlName ... onClick="MyEventHandler"... /> Thanks in advance, Rick
    Posted to Web Forms (Forum) by e_man_online on 3/1/2004
Page 1 of 1 (7 items)