网址映射中的问题 [英] Problem in url mapping

查看:100
本文介绍了网址映射中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我在该应用程序中开发了一个Web应用程序,我正在使用url映射,但是我无法在浏览器中获得所需的URL
它显示旧的URL但不显示映射的URL。我正在分享代码

供您参考。请给我这个问题的解决方案。



[注意:我只使用框架2.0]

< urlmappings enabled =   true >  
< add url = 〜/ Category.aspx >
mappedUrl = 〜/ Default.aspx? category = default />
< add url = 〜/ Software.aspx >
mappedUrl = 〜/ Default.aspx?category = software />
< / add > < / add > < / urlmappings >





我的项目中有Default.aspx但没有Category.aspx。我是这个urlmapping概念的新手。

请给我解决这个问题的方法。

解决方案

你可以用url重写来解决这个问题。问题

Hi sir,
I developed one web application in that application, i am using url mapping, but i cant able to get
the desired url in the browser, it shows the old url but not the mapped url. I am sharing the code
for your reference. Kindly give me the solution for this problem.

[Note: I am using framework 2.0 only ]

<urlmappings enabled="true">
  <add url="~/Category.aspx">
    mappedUrl="~/Default.aspx?category=default" />
  <add url="~/Software.aspx">
    mappedUrl="~/Default.aspx?category=software" />
</add></add></urlmappings>



I have Default.aspx in my project but not having Category.aspx. I am new to this urlmapping concept.
Kindly give me the solution for this problem.

解决方案

You can use url rewriting to solve the problem


这篇关于网址映射中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆