是否可以将同一个按钮用于多种形式? [英] Is it possible to use a same single button with multiple forms?

查看:80
本文介绍了是否可以将同一个按钮用于多种形式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

我的应用程式有两种形式,第一种形式是按钮ADD,
我想在第二种形式中使用该按钮,有可能吗?
如果您知道可以帮助我.

谢谢与问候
Honey

Hai,

Im my app i have two forms, in the first form i have the button ADD,
i want to use that button in my second form, It is possible?
if u know help me.

Thanks & Regards
Honey

推荐答案

基于您正在使用ASP.Net的事实,并且您说要使用SAME按钮,一种选择可能是使用母版页,创建一个带有内容部分的母版页面,母版页面将带有您的按钮,内容部分将是表单页面的占位符.创建表单页面时,将其链接到母版页.

或者,您可以创建一个包含按钮的自定义用户控件.然后将其放置在您希望按钮出现在每个页面上.

没有关于您要实现的目标的任何更多信息,这是我目前可以建议的最好结果.
Based on the fact you are using ASP.Net going by your tags, and you say you want to use the SAME button, one option might be to use Master Pages, create a Master page with a content section, the master page would have your button, the content section would be the placeholder for your forms page. When you create your forms page link it to the Master Page.

Alternatively, you could create a custom user control which would contain your button. This would then be placed on each page you want the button to appear on.

Without any more information on what exactly you are trying to achieve, that is the best i can suggest at the moment.


这篇关于是否可以将同一个按钮用于多种形式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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