Student has filled a form after clicking on submit button .It should displayed the entered details by the student submit button should get visible false. and it is replaced by update and submit button. before clicking onupdate and submit button it is not saved in database.
Session form submit
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sachin SinghRank #66 · 26.2K reputationPosted Jan 18, 2024, 3:40 AM EST
if you could share your code?
However here are some steps
aspx
JS Code
function saveDetails() { // Code to display entered details (you can use alert or display in a div) document.getElementById('btnSubmit').style.display = 'none'; document.getElementById('btnUpdate').style.display = 'inline'; return false; // Prevents the form from submitting to the server }code-behind
protected void btnSubmit_Click(object sender, EventArgs e) { // Save details to the database // You can access form fields using Request.Form["fieldName"] // Example: string studentName = Request.Form["txtStudentName"]; // After saving, you might want to redirect the user or perform other actions } protected void btnUpdate_Click(object sender, EventArgs e) { // Update details in the database // You can access form fields using Request.Form["fieldName"] // Example: string updatedStudentName = Request.Form["txtStudentName"]; // After updating, you might want to redirect the user or perform other actions }