使用ASP.NET 4 Web窗体进行URL路由 [英] URL Routing with ASP.NET 4 Web Forms

查看:75
本文介绍了使用ASP.NET 4 Web窗体进行URL路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友。



我想要一些关于使用asp .net4进行URL路由的帮助



问题:我的问题是,当我把这个网址(http:// localhost:4448 / A-OneTour-FW4 /印第安纳假期)这个网址成功运行时。但是当我把这个链接(http:// localhost:4448 / A-OneTour-FW4 / Indian Holidays / 8)带参数时,我的页面布局结构很糟糕。请告诉我为什么会发生这种情况。

Hello friends.

I want to some help about URL Routing with asp .net4

Problem: My Problem is that when I put (http://localhost:4448/A-OneTour-FW4/Indian Holidays) this url my project run successfully. but when i put this link (http://localhost:4448/A-OneTour-FW4/Indian Holidays/8)with parameter, my page layout structure is spoil badly. please tell me why this happening.

推荐答案

尝试传递这样的参数值http:// localhost:4448 / A-OneTour-FW4 / Indian Holidays / variable = 8而不是http:// localhost:4448 / A-OneTour-FW4 /印第安假期/ 8



这里的变量与你给出的Querystring或会话变量相同你的代码。
Try to pass parameter value like this http://localhost:4448/A-OneTour-FW4/Indian Holidays/variable=8 instead of http://localhost:4448/A-OneTour-FW4/Indian Holidays/8

here variable is same as Querystring or session variable you have given in your code.


这篇关于使用ASP.NET 4 Web窗体进行URL路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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