I think you should use the Redirect
method along with Url.RouteUrl
to accomplish it.
return Redirect(Url.RouteUrl(new { controller = "Thread", action = "ShowThreadLastPostPage", threadOid = threadId }) + "#" + postOid);
More Related Contents:
- Disable browser cache for entire ASP.NET website
- Is trying to develop for Medium Trust a lost cause?
- Advantage of creating a generic repository vs. specific repository for each object?
- jqGrid: using multiple methods to filter data
- ASP.NET Identity with EF Database First MVC5
- Asp.Net Forms Authentication when using iPhone UIWebView
- Is it possible to use Razor View Engine outside asp.net
- Using VirtualPathProvider to load ASP.NET MVC views from DLLs
- Why does the CheckBoxFor render an additional input tag, and how can I get the value using the FormCollection?
- How to render a DateTime in a specific format in ASP.NET MVC 3?
- How to add validation to my POCO(template) classes
- MVC 5 Access Claims Identity User Data
- Visual Studio 2012 Web Publish doesn’t copy files
- Connecting to Visual Studio debugging IIS Express server over the lan
- Is it a good practice to avoid using Session State in ASP.NET MVC? If yes, why and how?
- SSL pages under ASP.NET MVC
- What is the claims in ASP .NET Identity
- What are the Web.Debug.config and Web.Release.Config files for?
- In asp.net mvc is it possible to make a generic controller?
- Creating a URL in the controller .NET MVC
- Web Config Transform not working
- New Asp.Net MVC5 project produces an infinite loop to login page
- JQuery’s $ is in conflict with that of StringTemplate.Net in ASP.Net MVC
- Adding sub-directory to “View/Shared” folder in ASP.Net MVC and calling the view
- Unable to Retrieve Metadata
- Change User Id type to int in ASP.NET Identity in VS2015
- Value cannot be null. Parameter name: items (DrodownList)
- how to know if the request is ajax in asp.net mvc?
- How to decide which is right, WebForms or MVC when doing ASP.NET
- Getting the GUID of the current user?