I have a userControl that is in a form that is being called from a page that is in a form. I'm getting a error that says you can only have one form per page.
I'm fairly new to ASP.NET and this may be a dumb question but why can't ASP.NET allow multiple server forms to be on the same page? That being the case what is the correct way to go about it.
I have a userControl that has a asp:GridView because I need to use the asp:TemplateField and to my understanding they do not work without it being in a form but I'm calling it from my main page that is in a form as well.
I really have racked my brain on getting this to work for many days and I just have not had any luck. So I'm hoping someone that has had this problem can help me out.
Thank you in advance for helping someone trying to get better at programming.
I'm fairly new to ASP.NET and this may be a dumb question but why can't ASP.NET allow multiple server forms to be on the same page? That being the case what is the correct way to go about it.
I have a userControl that has a asp:GridView because I need to use the asp:TemplateField and to my understanding they do not work without it being in a form but I'm calling it from my main page that is in a form as well.
I really have racked my brain on getting this to work for many days and I just have not had any luck. So I'm hoping someone that has had this problem can help me out.
Thank you in advance for helping someone trying to get better at programming.