private void btnSubmit_Click(object sender, System.EventArgs e)
{
if(IsValid)
{
// Hide the form to set the value.
pnlSetValue.Visible = false;
username = txtName.Text;
lblResult.Text = "Username set to " + txtName.Text + ".";
lblUsername.Text = username;
this.DataBind();
}
}不明白 this.DataBind();
数据绑定不要指定映射关系么?:(
{
if(IsValid)
{
// Hide the form to set the value.
pnlSetValue.Visible = false;
username = txtName.Text;
lblResult.Text = "Username set to " + txtName.Text + ".";
lblUsername.Text = username;
this.DataBind();
}
}不明白 this.DataBind();
数据绑定不要指定映射关系么?:(
解决方案 »
- jquery能否调用asp.net后台方法
- asp.net 的学习方法
- 谁有ASP.NET的教程呀!提供一下可以吗?
- 请教简单的问题
- [着急,求助] 从cs文件向aspx中的javascript脚本 回传数组无效,用<%=a[i]%>形式。。。。。
- 点击文本框弹出calendar控件
- showModalDialog方法的window.dialogArguments如何在后台代码调用
- 求教高手一个DataGrid与CheckBox问题,解决马上给分
- FineUI.dll 与 json.net\Net40\Newtonsoft.Json.dll
- 谁见过这种编译错误,怎么办啊?
- asp.net中这段代码在asp里怎么写?(在线等待)
- 子控件的HeaderTemplate如何绑定父控件的字段
你在什么书上看到this.DataBind();这个的。去掉也可以呀。