如何将按钮链接到文本信息页面? [英] how to link a button to a text information page?
问题描述
你好,
说我正在制作一个烹饪应用程序,并希望将食谱按钮链接到一个页面我知道实际上已经写下了食谱,如何在Visual Studio 2015中链接按钮和信息页面?任何帮助?我发现
互联网是关于将按钮链接到表单,而不是将按钮链接到包含文本信息的页面。任何帮助将不胜感激。
谢谢,
Mike
如果它不是Form,也许它是一个ASP Web应用程序。
然后添加按钮并将其 PostBackUrl 设置为指向您的信息页面。来源如下:
<跨度>&NBSP;&NBSP;
< asp < span style ="color:blue; line-height:107%; font-family:Consolas; font-size:9.5pt">: 按钮
runat =" server"
Text =" Show Recipes"
< span style ="color:red;行高:107%; FONT-FAMILY:索拉; font-size:9.5pt"> PostBackUrl ="〜/ InformationPage.aspx"
/> 跨度>
Hi there,
Say I was making a cooking app, and wanted to link a recipes button to a page I crested that actually has the recipes written down, how do I link the button and information page together in Visual Studio 2015??? any help?? I find on the internet is about linking buttons to forms, not linking a button to a page containing text information together. Any help would be appreciated.
Thanks,
Mike
If it is not a Form, perhaps it is an ASP Web application.
Then add the button and set its PostBackUrl to point to your information page. The source will be like:
<asp:Button runat="server" Text="Show Recipes" PostBackUrl="~/InformationPage.aspx" />
这篇关于如何将按钮链接到文本信息页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!