将数据从父页面传递到弹出窗口

发布于 2024-08-30 00:19:09 字数 121 浏览 0 评论 0原文

我有一个 asp.net 页面,它在另一个浏览器窗口中启动一个子页面,看起来像一个弹出窗口。 我想从父页面传递2条数据给它。 我知道 javascript 可以实现,但是有没有办法使用 C# 来实现呢?

再次感谢

I have an asp.net page which launches a child page in another browser window to look like a popup.
I want to pass 2 pieces of data to it from the parent page.
I know ots possible with javascript, but is there a way to do it using C#?

thanks again

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

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

发布评论

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

评论(1

独守阴晴ぅ圆缺 2024-09-06 00:19:09

如果数据不太大(就实际值而言),您可以简单地将其作为参数添加到 URL(例如 Popup.aspx?Data1=Piece_of_data&Data2=Piece_of_data)。

否则你可能想对 POST 请求做同样的事情,这取决于你打开弹出窗口的方式;)

Provided that the data is not too big (in sense of actual values) you can simply add it as a parameter to the URL (like Popup.aspx?Data1=Piece_of_data&Data2=Piece_of_data).

Otherwise you'd probably want to do the same thing with POST request, it depends on how exactly you are opening the popup ;)

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