Hi
I want when click on button in below code LtrlAnswer column should gets enabled & button text should change to Save. On save values should get Updated in Database.
#
Question
Answer
Thanks
Jagjit SainiPosted Apr 3, 2022, 11:48 AM
Hi
Still not working . It is going in the condition but not changing Caption & also not enabling button
If i write this line it changes to Save and then changes back to Update
document.getElementById('btnSubmit').value = "Save";
Textbox length should be equal to column length .
Thanks
Sachin SinghPosted Apr 3, 2022, 11:30 AM
Jagjit SainiPosted Apr 3, 2022, 11:17 AM
Hi
I have written below line but it is not enabling textbox & also not changing caption from Update to Save.
Below code is written after closed Form Tag
Thanks
Sachin SinghPosted Apr 3, 2022, 9:56 AM
create two click events one client and one server event, return true from client and change the desired button text and on server click save your data to DB
// modify your ans ltrl as
private void btnSubmit_Click(....)
{
// your save logic
}