Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 09, 2013 11:23 AM by SharpestTool
Member
1 Points
11 Posts
Feb 09, 2013 11:15 AM|LINK
Hi,
I have a customer with a simple single page site with a contact form at the bottom. The site uses anchor tags to navigate around the site sections.
However, when the contact form is submitted to the controller and the controller returns the View() how do I get it to go back to the #contact anchor?
Thanks in advance!
Feb 09, 2013 11:23 AM|LINK
Sorted!
return new RedirectResult(Url.Action("Index") + "#contact");
SharpestTool
Member
1 Points
11 Posts
How do I go back to specific anchor on Return View()?
Feb 09, 2013 11:15 AM|LINK
Hi,
I have a customer with a simple single page site with a contact form at the bottom. The site uses anchor tags to navigate around the site sections.
However, when the contact form is submitted to the controller and the controller returns the View() how do I get it to go back to the #contact anchor?
Thanks in advance!
SharpestTool
Member
1 Points
11 Posts
Re: How do I go back to specific anchor on Return View()?
Feb 09, 2013 11:23 AM|LINK
Sorted!
return new RedirectResult(Url.Action("Index") + "#contact");