简体   繁体   English

linkbutton在不使用查询字符串和会话的情况下打开新页面并传递值

[英]linkbutton open new page and pass value without using query string and session

I'm working the linkbutton in a nested masterpage and want to pass a value to a new page . 我正在嵌套母版页中使用linkbutton,并希望将值传递给新页。

What I want to do is once I click the link button. 我想要做的就是单击链接按钮后。 a new page will be open and keep the current page. 将会打开一个新页面并保留当前页面。 in the same time, i can pass a value to the new open page. 同时,我可以将值传递给新的打开页面。

how can I do without using Query String and session? 不使用查询字符串和会话怎么办?

Thanks 谢谢

如果您可以控制新页面的HTML,则可以包含一个隐藏的输入字段:

<input type="hidden" name="fieldname" value="your value">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用/不使用ASP.net C#中的CodeBehind将DropDownList中的SelectedValue作为查询字符串传递给LinkBut​​ton - How to pass the SelectedValue from a DropDownList as a query string in a LinkButton with/without using CodeBehind in ASP.net C# 我可以在不使用查询字符串或会话的情况下将值传递给页面吗? - Can I pass a value to a page without using query strings or sessions? 如何在不使用 List 的情况下将 Linq 查询的值传递给普通字符串? - How to pass the value of an Linq Query to a normal String without using List? 使用查询字符串的LinkBut​​ton重定向 - LinkButton Redirection with Query String 在新标签页中打开asp LinkBut​​ton - Open asp LinkButton in a new tab LinkButton 打开新的 window 选项卡 - LinkButton open new window tab 在页面postpack中更改会话并在母版页中使用新值 - Changing Session in page postpack and using new value in Master Page 将linkbutton PostBackUrl与查询字符串一起使用时的postback错误 - postback error when using linkbutton PostBackUrl with query string 单击链接按钮时无法打开新选项卡 - Unable to open new tab on linkbutton click 如何在不使用WebDriver页面上的链接的情况下打开新窗口 - How to open a new window without using a link on the page with WebDriver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM