Listview databind causes lost of formview Data

后端 未结 1 898
醉梦人生
醉梦人生 2021-01-23 11:39

within my code , after a research via a Formview , I need to call the listview.databind and this makes impossible to get the Formview data , even if in the screen they still app

相关标签:
1条回答
  • 2021-01-23 12:17

    Do you set the viewstate in your page load event?

    If yes, i think you should add a condition in your Page_Load event :

    private void Page_Load()
    {
        if (!IsPostBack)
        {
    
    
        }
    }
    

    it prevent the data to be reloaded on this event, if a post is submited.

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