在运行时,在页面里,能不能通过listbox输入数据??
解决方案 »
- 如何设置ASP.NET调试默认文档为index.html
- 网站最后一次登录时间怎么计算和存储的
- 关于Entity framework 执行效率和cpu占用率。。。
- 求救 FTP上的文件夹死活删除不了,并且这个目录也打不开
- 能否将多次选择的记录放在一个dataset中
- gridview1中怎么找不到DataGrid1_ItemCommand事件啊
- ASP.Net如何取得当前虚拟目录名称
- 偶想用自己的电脑作服务器~~~有几个软/硬件问题想请教..
- 求救!!如何访问虚拟目录以外的目录!
- easyui dialog能和mvc验证放在一起用吗?
- VB.NET开发的ASP.NET,DataGrid里面的CheckBox选中删除问题
- 连接SQL数据库的问题
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.ListBox ListBox1;
protected System.Web.UI.WebControls.Button Button1;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
} #region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load); }
#endregion private void Button1_Click(object sender, System.EventArgs e)
{
this.ListBox1.Items.Add(this.TextBox1.Text); }
}
private void Button1_Click(object sender, System.EventArgs e)
{
this.ListBox1.Items.Add(this.TextBox1.Text); }
{
this.ListBox1.Items.Add(this.TextBox1.Text); }正解