使用ASP.NET C#在同一页面上的多个面板

时间:2015-10-27 11:13:52

标签: c# asp.net

在本地服务器上它正常工作,但是当我在实时服务器上进行注册时,有时注册会成功重定向到页面,有时它不会,并且我也没有收到任何错误消息。注册表格非常大,所以我没有提供所有设计,代码,但我从每个块中获取代码。我认为面板是问题所在,但如果页面没有注册,我必须注意另一件事,然后我再次重新加载同一页面,然后我能够注册并重定向到成功。

页面加载代码:

if(getDays($mainIndex['tagertDate']) <= 2) {
    Make things colored here
}

设计代码:

BusinessLogic bl = new BusinessLogic();
BusinessObject bo = new BusinessObject();
protected void Page_Load(object sender, EventArgs e)
{
    HtmlGenericControl body = (HtmlGenericControl)Master.FindControl("MasterpageID");
    body.Attributes.Add("class", "fifth");

    //to restore password field when page refreshes
    txt_Password.Attributes.Add("value", txt_Password.Text);
}

提前致谢。

0 个答案:

没有答案
相关问题