HTML客户端自定义路由问题 [英] HTML Client custom routing question

查看:92
本文介绍了HTML客户端自定义路由问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想构建一些从应用程序的MVC部分到LightSwitch部分的自定义路由,以创建友好的url,例如:HTMLClient/Employees.这很容易,但是说我有一个典型的HTML客户端网址:HTMLClient/#/BrowseEmployees/[c9c568f66], 您如何计算[c9c568f66]部分?我注意到您可以将其设置为任意值,并且可以正常使用(例如[0]有效),但这感觉并不对.以正确的方式"将网址的该部分设置为任何方式?谢谢!

I want to build some custom routes from the MVC portion of an application to the LightSwitch portion in order to make friendly urls like: HTMLClient/Employees.  This is easy enough, but say I have a typical HTML client url: HTMLClient/#/BrowseEmployees/[c9c568f66], how do you account for the [c9c568f66] portion?  I have noticed you can set it to anything and it will work, (e.g. [0] works), but that just doesn't feel right.  Any way to set that portion of the url the "right way"?  Thanks!

推荐答案

这将说明正在发生的事情,并可能提供您的答案:

This will explain what is going on and perhaps provide your answer:


这篇关于HTML客户端自定义路由问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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