Solved

How to send to an anchor ?

Posted on 2010-09-17
6
394 Views
Last Modified: 2012-05-10
HI

After checking if a Page is valid I need to send the focus to a specific area of the reloaded page, I wonder if an anchor could do this.

Would you mind bring an example ?
0
Comment
Question by:dimensionav
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:jkurzner
ID: 33705259
0
 

Author Comment

by:dimensionav
ID: 33705293
Sorry, I haven´t found any anchor ASP.net control, is there any other option ?

How do you use that code in a postback like this:

        If Not Page.IsValid Then
            ' Here should be the requested code
        End If
0
 
LVL 3

Accepted Solution

by:
rgeers earned 500 total points
ID: 33705357
output something like:

<meta http-equiv="refresh" content="2;url=http://test.com/bob.html#anchor1/">
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dimensionav
ID: 33708779
rgeers:

I need that the refresh will be conditioned to if page is invalid, after checking some required field validator controls.
0
 
LVL 3

Expert Comment

by:rgeers
ID: 33720044
output it only after you do the condition checks in you asp page
0
 

Author Closing Comment

by:dimensionav
ID: 33721238
Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question