try:Page_Load(...)
{
....
if(!IsPostBack)
{
atextbox.Text="first test";
btextbox.Text="second test";
}
.....
}
{
....
if(!IsPostBack)
{
atextbox.Text="first test";
btextbox.Text="second test";
}
.....
}
解决方案 »
- 右下角弹出视屏的问题
- 如何使asp.net wap能下载txt文件
- venk man 如何进入调试状态啊,我触发了事件,进不了断点,愁
- 关于个性化模型的保存[高分.顶者有分]
- ADO.NET.的5大部分是什么
- *********百分!问一个很难的问题,在线等*******
- 求助:怎么让网站和论坛的URL重写兼容可用??
- 请看看这是什么错误?
- 救命呀让我能asp我那里能的懂呀!
- 怎么让一个DataSet在pageload之前就被填充(Fill)?
- window.showModalDialog("trandialog.aspx?name=" url,my,"dialogHeight:450px;dialogWidth:500px;center:yes;status:no");为什么url传不
- 在DataGrid中怎样添加一列,其中该列有两个超级连接?
atextbox.Text="first test"
btextbox.Text="second test"
Page_Load{}
that way. I totally agree withe what you said.
All what I did is like this
Page_Load()
{}
private void uploaddata()
{// type the text in the textbox through the interface
//and upload them into database
//basically like the following
atextbox.Text="first test";
btextbox.Text="second test";
.......}Then through a button to call the following functionprivate void upatedata()
{
atextbox.Text="New first Data";
btextbox.Text="New second Data";
this.myDatabinding();
.......
}private void myDatabinding()
{
///bind the data in a database into a datagrid.
......
}
the texts in the two textbox do not change after I update the data.Any idea what this might go wrong.
I am sorry I did not pay attention to the stuff I wrote the first time.
Thank you niwalker and hbxtx