如何将 C# 变量声明为 HTML 类型变量?

发布于 2024-08-13 04:32:07 字数 60 浏览 1 评论 0原文

C# 相当于什么,

以便您可以将其用于 PayPal API 集成中的 Web 表单?

What's the C# equivalent of

so you can use it for web forms in PayPal API integration?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

陌上青苔 2024-08-20 04:32:07

如果您在 ASP.NET 中有任何 C# 变量的声明,例如标签或文本框类型,并且为了让 html 或 Web 的客户端能够读取您所拥有的 C# 变量的声明中的内容声明这可以做到:

input type="hidden" name="name_type" value='textbox1.Text'

If you have any decalaration of any C# variable in ASP.NET like a label or a text box type and in order for html or the client side of your web to be able to read what is on that decaration of the C# variable that you have declared this can do:

input type="hidden" name="name_type" value='textbox1.Text'
痴梦一场 2024-08-20 04:32:07

<% 字符串名称; %> ?

<% string name; %> ?

旧街凉风 2024-08-20 04:32:07

只是使用

<% string name; %>

这是你的意思吗?

Just use

<% string name; %>

Is that what you mean?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文