asp.net textbox doesn't populate after postback

前端 未结 1 1647
青春惊慌失措
青春惊慌失措 2021-01-28 22:21

I am using ASP.NET and C# couple text boxes to calculate results entered. Textbox2 has a value entered and on button click Textbox1 gets populated. This works fine the first tim

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-28 22:42

    Check the postback in the page_load function.

    if(!Page.IsPostBack) {
    
    }
    

    I think you are loosing information on post back. The data is changed, but it get reset on post back.

    0 讨论(0)
提交回复
热议问题