Web服务器控件中的面板 [英] Panel in web Server Control

查看:99
本文介绍了Web服务器控件中的面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用两个面板创建一个Web服务器控件,最上面一个包含一个预定义表格,其中包含已定义的项目和高度

内容标签中的第二个标签(必须能够同时使用代码和设计器-能够通过拖放设计器将控件添加到内容中).

I want to create a web server control with two panel, the top one to contain a predefined table with defined items and height

The second one inside the contents tag (Must be able to work with both code and designer - able to add controls to the contents via drag and drop in designer).

<MyControl id="mycontrol"  runat="server">
<contents>
 ...
</contents>



希望您能提供帮助

谢谢,

Tony Kress



Hopefully you can help

Thanks,

Tony Kress

推荐答案

hi,
这是一个很好的问题.为此,您需要创建一个模板化用户控件或模板化自定义控件.使用此自定义用户控件或自定义控件,可以在控件中定义每个标记,这些标记将通过asp.net呈现.这里有几个链接.这篇文章不会创建您的确切控件,但会教您如何创建模板控件:

自定义模板控件:
http://msdn.microsoft.com/en-us/library/aa478964.aspx [ ^ ]

模板化的用户控件:
创建模板用户控件 [

That is a good and nice question. In order to do that, you need to create a Templated User Control, or Templated Custom control. Using this custom user control or custom control, you can define every tag into your control which will be rendered via asp.net. Here are a couple of links. This posts will not create your exact control, but will teach you how to create templated controls:

Custom Templated control:
http://msdn.microsoft.com/en-us/library/aa478964.aspx[^]

Templated User Control:
Creating a Templated User Control[^]

I hope it helps,
Cheers


这篇关于Web服务器控件中的面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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