在asp.net中查询字符串格式 [英] query string formats in asp.net
本文介绍了在asp.net中查询字符串格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
是否需要在asp.net中使用'?'标志查询字符串?
并且可以转换我的查询字符串
www.xyz.com/test.aspx?name=rajeev
to
www.xyz.com/rajeev或www.xyz.com/name=rajeev
hello all,
is it Required to use '?' sign for query string in asp.net ?
and can its possible to convert my query string
www.xyz.com/test.aspx?name=rajeev
to
www.xyz.com/rajeev or www.xyz.com/name=rajeev
推荐答案
这个链接可能你会帮助
http://stackoverflow.com/questions/21269867/how-to-convert-query-string-parameters-to-route-in-asp-net -mvc-4 [ ^ ]
this link may u help
http://stackoverflow.com/questions/21269867/how-to-convert-query-string-parameters-to-route-in-asp-net-mvc-4[^]
如果您不使用MVC,可以使用Url Rewriting Concept
https://www.youtube.com/watch?v=tR2St7YrO iU [ ^ ]
http://www.c-sharpcorner.com/UploadFile/ akkiraju / url-rewriting-in-Asp-Net / [ ^ ]
使用ASP.NET重写URL的示例 [ ^ ]
ASP.NET 2.0中的URL重写 [ ^ ]
You can use Url Rewriting Concept if you are not using MVC
https://www.youtube.com/watch?v=tR2St7YrOiU[^]
http://www.c-sharpcorner.com/UploadFile/akkiraju/url-rewriting-in-Asp-Net/[^]
An Example of URL Rewriting With ASP.NET[^]
URL Rewriting in ASP.NET 2.0[^]
这篇关于在asp.net中查询字符串格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文