:charcter不支持Mozilla浏览器的查询字符串 [英] : charcter is not supporting in Query string for Mozilla browser
问题描述
在查询字符串中我正在传递值TimeFrom = 06:17 PM&TimeTo = 06:17 PM它正在IE和Chrome中工作但在Mozilla中它会抛出异常资源找不到资源。
i我正在使用C#和asp.net。
我的完整Querstring是:
~ / abc.aspx ?ReportParam.CONSTREPORTDATASOURCE = IntimateToConsumer&RequestFor =永久连接&日期=&VisitedBy =&RequestID = 21051101409&TimeFrom = 06:17 PM&TimeTo = 06:17 PM
在这里,如果我删除TimeFrom和Time To Field,那么它在Mozilla中工作正常。
In Query String i am passing value TimeFrom=06:17 PM &TimeTo=06:17 PM it is working in IE and Chrome but in Mozilla it is throwing exception thet Resource is not found.
i am using C# and asp.net.
My Full Querstring is:
~/abc.aspx?ReportParam.CONSTREPORTDATASOURCE=IntimateToConsumer&RequestFor=Permanent Connection&Date=&VisitedBy=&RequestID=21051101409&TimeFrom=06:17 PM &TimeTo=06:17 PM
Here if I remove TimeFrom and Time To Field then its is working fine also in Mozilla.
推荐答案
可以对不直接支持的字符进行编码,以便任何字符可以在URL上。只需使用这个 [ ^ ]对您的URL字符串进行编码。
Characters that are not supported directly, can be encoded, so that any character can be on the URL. Just use this[^] to encode your URL string.
这篇关于:charcter不支持Mozilla浏览器的查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!