使用逗号网址中两个值之间用逗号查询字符串 [英] Query string with comma between two values in a mail url

查看:98
本文介绍了使用逗号网址中两个值之间用逗号查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我必须在确认邮件中传递查询字符串中的值。



www.example.com/default。 aspx?Id = 43,46



我正在使用第三方邮件服务器。



有可能以这种方式传递值,

这是否正确?因为我没有收到这样的邮件。



www.example.com/default.aspx?Id=43

我收到邮件的方式。

请建议我。

谢谢。

解决方案

1.The values <您要传递的code> 43,46 将被解释为单个值: 43,56 ;



2.如果您想为数组传递两个值,您可以使用:

www.example.com/default .aspx?Id = 43& Id = 56

但是你调用的网站后面的代码应该会得到一个int值数组。



3.如果你想传递Id和ComanyId这两个值,你必须建立一个类似下一个的URL:

www.example的.com / Default.aspx的编号= 43&安培; CompanyId = 56

Hi,
I have to pass values in query string in a conformation mail.

www.example.com/default.aspx?Id=43,56

I am using 3rd party mail severs.

It is possible to pass values in this way,
This is correct or not? because I am not getting any mails in this way.

www.example.com/default.aspx?Id=43
In this way I got mails.
Please suggest me.
Thank you.

解决方案

1.The values 43,56 that you want to pass will be interpreted as a single value: "43,56";

2.If you want to pass two values for an array you could use:
www.example.com/default.aspx?Id=43&Id=56
but your code behind from the invoked site should expect to got an array of int values.

3.If you want to pass two values like Id and ComanyId you have to build a URL like the next one:
www.example.com/default.aspx?Id=43&CompanyId=56


这篇关于使用逗号网址中两个值之间用逗号查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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