我做了一个webcustomcontrol控件在aspx运行后为什么在网页中显示不出来?(在线)
谢谢!!
打开运行的网页后,看源代码是type="hidden",
why???
打开运行的网页后,看源代码是type="hidden",
why???
...全文
请发表友善的回复…
发表回复
老譚山菜 2003-08-12
- 打赏
- 举报
Try:
Protected Overrides Sub CreateChildControls()
Me.Controls.Add(yourcontrol)
End Sub
Protected Overrides Sub CreateChildControls()
Me.Controls.Add(yourcontrol)
End Sub
老譚山菜 2003-07-20
- 打赏
- 举报
关注...
WindWithSun 2003-07-19
- 打赏
- 举报
在aspx文件的开始处要加上:
<%@ Register TagPrefix="expo" TagName="DateBox" Src="ascx/datebox.ascx" %>
DateBox:你的控件名称
Src:你的控件所在路径
在form中要加上:
<expo:DateBox id="startDateBox" runat="server"></expo:DateBox>
<%@ Register TagPrefix="expo" TagName="DateBox" Src="ascx/datebox.ascx" %>
DateBox:你的控件名称
Src:你的控件所在路径
在form中要加上:
<expo:DateBox id="startDateBox" runat="server"></expo:DateBox>