我这个控件可以调用,就是无法正确显示控件.请高手帮忙看看!
namespace mycontrol
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
[DefaultProperty( "Text ")]
[ToolboxData( " <{0}:mycontrol runat=server> </{0}:mycontrol> ")]
public class mycontrol : CompositeControl
{
[Bindable(true)]
[Category( "Appearance ")]
[DefaultValue( " ")]
[Localizable(true)]
public string textbox1
{
get
{
String s = (String)ViewState[ "Text "];
return ((s == null) ? String.Empty : s);
}
set
{
ViewState[ "Text "] = value;
}
}
public string textbox2
{
get
{
String s = (String)ViewState[ "Text "];
return ((s == null) ? String.Empty : s);
}
set
{
ViewState[ "Text "] = value;
}