English 中文(简体)
ASP。 NET MVC Routing /SEO Friendly URL
原标题:ASP.NET MVC Routing / SEO Friendly URL

我试图做像 st流一样的事情。

a. 从 st流中进行联系,例如:

C#的隐藏特征?

if you remove the last part (Hidden Features of C#?) it still returns the same result.

For my routing in Global.asax I tried doing something like "{action}/{id}/{title}"

我在一页上把我联系起来:

<%= Html.ActionLink(video.Title, "Details", "Videos", new {id = video.ID, title = video.Title.Replace(" ", "-")}, null) %>

我只想做些什么,但后来又在“? entitled=blah-blah上扔下。

我想说的是“id/blah-blah”。

我的问题是什么? (除去)

最佳回答

这条路线认为,它应当与“行动链接”这一呼吁相配合,因此,这是一个猜测。 贵国是否登记了<条码>{action}/{id}/{}。 违约路线之后的路线? 如果是的话,违约路线将首先相匹配,而只是将所有权价值放在 que中,因为 route在路上。 如果您在<条码>{>控制器}/{action}/{id}之前登记您的习惯路线。 否则,它就应当发挥作用。

问题回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签