用户控制使用母版页的网页。 [英] user control on a web page that uses a master page.

查看:49
本文介绍了用户控制使用母版页的网页。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


首先让我感谢任何发表我的问题答案的人。


让我解释一下我想做。下面的代码是一个示例,并尝试将所有答案保留在我发布的五个页面中。我不想发布我的代码的复杂版本,因为我认为如果这个问题得到解决,那么其他人可以使用这个问题的最简单版本并将其应用到他们的解决方案中。

Hello everyone,

First let me say thanks to anyone that post an answer to my question.

Let me explain the what I am trying to do. The code below is an example and try to keep all answers within the five pages that I have posted. I did not want to post the complex version of my code because I think if this gets solved then others can use the simplest version of this question and apply it to their solutions.

  1. 我想要一个使用母版页(MasterPage.master)的网页(Home.aspx)上的用户控件(WebUserControl.ascx)。
  2. 用户控件(WebUserControl.ascx)上的一个按钮,它将在用户控件(WebUserControl.ascx.cs)后面的代码中进行计算。
  3. 有一个?标签?在我要更新的网页(Home.aspx)上显示来自?textBox3的计算值?单击用户控件(WebUserControl.ascx)中的按钮后,在用户控件(WebUserControl.ascx)中。



我试过但尝试过但找不到这是一种优雅的方式。有任何想法吗?下面是代码。

** MasterPage.master **

展开 | 选择 | Wrap | 行号

推荐答案

展开 | 选择 | Wrap | 行号


感谢Dan的回复。你能描述一下你的解决方案及其运作方式吗?


谢谢,

CroCrew~
Thanks for the reply Dan. Can you please describe your solution and how it would work?

Thanks,
CroCrew~


在我的表格中用户从选择组合框中选择并控制搜索数据库,进入结果页面..选择项目将在labeltext中读取,这里有代码链接到页面,第二个是在第二页.vb此代码允许查找。 ..我知道这不是C#,但也许它会给你一个理想的..
In my form user pick from select combo box and is control to search database, with goes to results page .. Where the select item will read in labeltext ,here with code link to pages together , second is on second page.vb this code permits look up... I know it is not C# but maybe it will give you a ideal ..


这篇关于用户控制使用母版页的网页。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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