Re: Stop page going back to the top when submitting
- From: Mike Owen <whatnospam@xxxxxxxxxxxxx>
- Date: Wed, 2 Nov 2005 13:36:02 -0800
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.
> | > >
> | >
> | >
> | >
> |
>
>
.
- Follow-Ups:
- Re: Stop page going back to the top when submitting
- From: Steven Cheng[MSFT]
- Re: Stop page going back to the top when submitting
- References:
- Re: Stop page going back to the top when submitting
- From: Khaled Hussein
- Re: Stop page going back to the top when submitting
- From: Steven Cheng[MSFT]
- Re: Stop page going back to the top when submitting
- Prev by Date: UserControl's Page_Load firing automatically
- Next by Date: Re: Any freeware Side Menu with vb/c#?
- Previous by thread: Re: Stop page going back to the top when submitting
- Next by thread: Re: Stop page going back to the top when submitting
- Index(es):
Relevant Pages
|