Solved

How to send to an anchor ?

Posted on 2010-09-17
6
372 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
  • 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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