Saving Form-data to Database
-
Hello I’m perhaps a bit old fashion when it comes to ASP. I try to build a Form populated whit Database data (from a Stored Procedure) and when I click the “save” button the data will be saved to the database thro a Stored Procedure. But it won’t work, it looks as if the load event is fired before the button.click?????
-
Hello I’m perhaps a bit old fashion when it comes to ASP. I try to build a Form populated whit Database data (from a Stored Procedure) and when I click the “save” button the data will be saved to the database thro a Stored Procedure. But it won’t work, it looks as if the load event is fired before the button.click?????
That's correct. In the Page_Load event, check the Page.IsPostBack property. If the property is true, the form has been posted back and you don't need to populate it.
-
That's correct. In the Page_Load event, check the Page.IsPostBack property. If the property is true, the form has been posted back and you don't need to populate it.