就是在用我这个自定义用户控件的时候,点击我定义的属性,在提示筐下面没有提示请问怎么让我定义了属性在提示框里有提示信息啊?? 要在属性上面加[]吗???
谢谢@@@ private string _TypeID;
public string TypeID
{
get { return _TypeID; }
set { _TypeID = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
Bind();
}
} private void Bind()
{
//绑定到Labe1上去
string con = ConfigurationManager.ConnectionStrings["zydatabaseConnectionString"].ConnectionString;
SqlConnection dbconnection = new SqlConnection(con);
dbconnection.Open(); SqlCommand cmd = new SqlCommand("select newsType_name from zy_NewsType where newsType_id=@TypeID", dbconnection);
SqlParameter paraID = new SqlParameter("@TypeID", SqlDbType.VarChar);
paraID.Value = _TypeID;
cmd.Parameters.Add(paraID);
//try
.....
谢谢@@@ private string _TypeID;
public string TypeID
{
get { return _TypeID; }
set { _TypeID = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
Bind();
}
} private void Bind()
{
//绑定到Labe1上去
string con = ConfigurationManager.ConnectionStrings["zydatabaseConnectionString"].ConnectionString;
SqlConnection dbconnection = new SqlConnection(con);
dbconnection.Open(); SqlCommand cmd = new SqlCommand("select newsType_name from zy_NewsType where newsType_id=@TypeID", dbconnection);
SqlParameter paraID = new SqlParameter("@TypeID", SqlDbType.VarChar);
paraID.Value = _TypeID;
cmd.Parameters.Add(paraID);
//try
.....
解决方案 »
- 未能加载文件或程序集“MS.SQLServerDAL”或它的某一个依赖项。系统找不到指定的文件。
- 关于DrawString的问题
- discuz nt 一单件模式不太明白的地方
- 在线等待!有关于vs2003问题及输出
- 请问在web中嵌入一个可以编辑的word?
- 这样的布局可以实现此功能吗??
- 送分!!麻烦看看我写的对不对,或者是否有更好的写法..
- 我动态添加了一个模板列.里面是一个CheckBox控件.我得不到这个控件的值.而且因为这个DataGrid的列都是动态生成的.它的Item.Count是零.要
- 请教一个做BBS的简单问题
- 求助!顺祝大家圣诞快乐!来者有分!
- Programming ASP.NET 3rd 这本书翻译的质量怎么样?
- datagrid 里面的分页该如何实现呢?
///
///
public string TypeID
{
get { return _TypeID; }
set { _TypeID = value; }
}