Re: Stop page going back to the top when submitting

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks Steve, I've been busy sorting other bits of the site today, but will
hopefully try the bits below tomorrow.

Do you know how they fit in with Accessibility/disability requirements of we
sites as this is of primary concern to the end user?

.....presumably this would be better handled with .Net 2.0?


Cheers, Mike.

"Steven Cheng[MSFT]" wrote:

> Hi Mike,
>
> Regarding on the question you mentioned, I think we have the below options:
>
> 1. for asp.net 1.x, we can either turn on the page's smartNavigation or
> manually register some clientside script and use clientside element's
> "focus()" script function to se the focus. We can add such code in your
> link button's click event, and register the script to set focus for your
> link button.
>
> 2. in asp.net 2.0, there has provided build "SetFocus" function for ASP.NET
> Page class, we can just pass the "SetFocus" function a control reference or
> a control's "ClientID" (a string value), so that the output page will
> contains script to set the control's client html elemetn as the focus.
>
> You can have a try on both of them(.NET 2.0 and VS.NET 2005 has been
> released :-)).
>
> Hope helps. Thanks,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> --------------------
> | Thread-Topic: Stop page going back to the top when submitting
> | thread-index: AcXe76H+4E4+wZm6Q8alW2XJzkZGBQ==
> | X-WBNR-Posting-Host: 195.80.17.131
> | From: =?Utf-8?B?TWlrZSBPd2Vu?= <whatnospam@xxxxxxxxxxxxx>
> | References: <2B57A591-0EE3-4C81-8A50-5E070118D3AB@xxxxxxxxxxxxx>
> <80a328c01cf18c7ad119fec7b6e@xxxxxxxxxxxxxxxxxx>
> | Subject: Re: Stop page going back to the top when submitting
> | Date: Tue, 1 Nov 2005 06:22:04 -0800
> | Lines: 41
> | Message-ID: <138E64C7-E44F-4832-917D-A03C58668560@xxxxxxxxxxxxx>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.dotnet.framework.aspnet.webcontrols:11615
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
> |
> | Hi Khalid,
> |
> | I am using V 1.1, but going to 2.0 in the next couple of weeks.
> |
> | How would the view state help?
> |
> |
> | Cheers, Mike.
> |
> | "Khaled Hussein" wrote:
> |
> | > Hello Mike,
> | > I guess you will have to handle the view state of the page.
> | > which version of .NET are you using?
> | >
> | > --
> | > Khaled Hussein
> | > Graduate Teaching Assistant
> | > College of Computing and Information Technology
> | > Arab Academy for Science and Technology and Maritime Transport
> | > Web Site: http://www.aast.edu
> | > (The power of imagination makes us infinite.)
> | >
> | > > I have a LinkButton in the middle of a page, which is used to submit
> | > > search criteria to a piece of back end code. The results of the seach
> | > > are shown just above the button.
> | > >
> | > > When the user clicks on the link button to perform a search, they are
> | > > taken back to the top of the page when the results appear, which then
> | > > necessitates a scroll back down to see the results.
> | > >
> | > > Is there anything I can do to prevent the user having to scroll back
> | > > down, apart from moving the search mechanism higher up the page of
> | > > course, which would be inconvenient due to the nature of the content
> | > > currently at the top?
> | > >
> | > > Thanks, Mike.
> | > >
> | >
> | >
> | >
> |
>
>
.



Relevant Pages

  • Re: Stop page going back to the top when submitting
    ... manually register some clientside script and use clientside element's ... "focus" script function to se the focus. ... Microsoft Online Support ... | Cheers, Mike. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: are you indirect, I mean, feeding because of encouraging citizens
    ... Mike to revive it. ... These days, go rebuild a script! ... What doesn't Milton commit ...
    (sci.crypt)
  • Re: freebsd-questions Digest, Vol 93, Issue 17
    ... >> Option has been set up so that the serial console replaces one of the ... >> Mike I also tried to use only following line in install.cfg ... > run the script instead would clear it up. ... >> Even though it doesn't seem to work from the command line, ...
    (freebsd-questions)
  • Re: Web Pages Revisited
    ... than just expanding the gross overuse of script. ... you want to spare roundtrips over your serverside code. ... For example in clientside validation ... It's just predefined new functionality in the Browser-Engine, ...
    (microsoft.public.vb.general.discussion)
  • Re: Copy Email in an "email formfield" to send along w/other set a
    ... I will speak to my online server admin. ... "Mike Mueller" wrote: ... consider going to a server-side script and a database. ... :>: Soun ...
    (microsoft.public.frontpage.programming)