The submit button in your dialog is not working because you've got nested forms - form2 is inside form1, which is not valid.
Move the dialog (<div id="dialog" and everything inside it) outside of form1 and the submit button will cause a postback as expected.
Thanks a lot. It worked. Also, how can I submit the data into the form1?
if you have done what I suggest, then you haven't got any data in form1 to submit. All the form fields are within your dialog, and enclosed within form2
Yes I did it, and worked perfectly. But now, The data that I will put into the form 2(into the dialog), I need them to be showed into the form1. Can I do it in anyway without using db?
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).