Click here to Skip to main content
15,894,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form that has a Details View Grid on it. When a user is logged in and comes to this page they can update some numbers in the Details View Grid. The user will click on the Edit link at the top of the Grid and edit the numbers then click Update to update the changed numbers. After the user does that the Details View Grid disappears. I look in the database and the data is still there but the USERID is missing. The user can not change the USERID. WHy did this happen? SHoiuld there be a Post Back on the Details View Grid? If so, How?
Posted

1 solution

C#
private void Page_Load()
{
    if (!IsPostBack)
    {
        // Validate initially to force asterisks
        // to appear before the first roundtrip.
        Validate();
    }
}
 
Share this answer
 
Comments
Computer Wiz99 10-Jun-14 13:21pm    
riteshsingh_jsr, Thanks for the code. Will this stop the Detail View Grid from disappearing when the user clicks on update and show the new data in the updated field?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900