简体   繁体   English

是否有TAB控件,以及如何通过单击按钮打开page2?

[英]Is there TAB control and how to open page2 from button click?

Is there TAB control and how to open page2 from button click ? 是否有TAB控件以及如何从按钮点击打开page2?

On asp.net ? 在asp.net上?

I work with C# and Visual Studio 2008 and ASP.NET 我使用C#和Visual Studio 2008和ASP.NET

Thanks in advance 提前致谢

The standard ASP.NET controls that ship with the .NET Framework do not include a tab control. .NET Framework附带的标准ASP.NET控件不包含选项卡控件。 However you can find a number of implementations on the internet, I would suggest you look the jQuery UI . 但是你可以在互联网上找到许多实现,我建议你看一下jQuery UI

As for the button click redirecting to page2 you can handle the button click event on the server side and use a Response.Redirect("page2.aspx") to redirect the users browser to the desired page. 对于按钮单击重定向到page2,您可以处理服务器端的按钮单击事件,并使用Response.Redirect(“page2.aspx”)将用户浏览器重定向到所需的页面。 Other alternatives exist like using an anchor (link) which will request the second page directly. 存在其他替代方案,例如使用将直接请求第二页的锚(链接)。

将SelectedTab属性设置为要在按钮的单击事件中显示的选项卡的索引。

暂无
暂无

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

相关问题 WinUI 3 - 单击用户控件c#中的按钮后如何在页面中打开控件? - WinUI 3 - How to open a control in a page upon click of button from a User Control c#? 如何单击按钮并使用WPF在Page2中使用“返回”按钮选择在Page1中的组合框中选择的上一个值 - How to click on button and select previous value selected in combo box in Page1 using go back button in Page2 using WPF 单击按钮后,页面应在新选项卡-asp.net中打开 - On Button click, page should open in new tab -asp.net 如何在ASP C#上打开新标签页,然后将焦点集中在当前页面上,然后单击按钮将当前页面重定向到另一个页面? - How to open new tab on ASP C# and focus stay on current page then current page redirect to another page on click button? 打开新标签页点击按钮? - Open new tab on button click? 如何从GridView在新选项卡中打开页面? - How to open page in new tab from GridView? 如何从另一个 aspx 页面获取事件控制。 按钮单击或页面加载 | ASP.NET - How to get event control from another aspx Page. button click or Page load | ASP.NET 单击按钮将数据从Telerik Grid发送到新选项卡/页面 - Send data from Telerik Grid to new tab/page on button click 如何从aspx页面上的ascx控件中保留值,单击按钮 - How to retain values from ascx control from aspx page, button click 如何在不使用MVVM的情况下将ObservableCollection从一个page1传递到page2 - how to pass ObservableCollection from one page1 to page2 without use MVVM
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM