如何将按钮链接到文本信息页面? [英] how to link a button to a text information page?

查看:46
本文介绍了如何将按钮链接到文本信息页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



说我正在制作一个烹饪应用程序,并希望将食谱按钮链接到一个页面我知道实际上已经写下了食谱,如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆