Muliple Usercontrols is Preventing Postback on Button
Hey, i have two usercontrols, one is an ajax menu that has animation. The second is a form to submit an email to the website. When i have the two controls together the submit email form doesn't work. it displays fine and the form_load function works. However when i click on the submit button on the form, nothing seems to happen.
If i take out the menu things seem to work just fine. Any ideas on what i need to do?
Also, i simplified my control to just have a button and a textbox. when pressing the button what is supposed to happen is the texbox is to be populated with a value, this works when the menu is not present, but as soon as i add it, nothing get populated to the textbox.
Hey Jon, do you have any conflicting form validation in these controls? In other words, if you have form validation in both controls, but you're not specifying which validation group to use, then this could potnetially happen.
Hey Nik, tried just adding in a textbox and button, but no validation and i'm still getting the issue. Its obvious that its the menu i created using animation extender, but has anyone else had troubles using microsofts ajax toolkit?
One more thing i've tried - I put the user controls together in visual studio and when i run the page the page posts back correctly. So what would be different in umbraco?
Use an HTTP monitoring tool like Firebugs Networking Monitoring to check that none of the external files return an 404 error (look for webresource.axd). If they do make sure that your web.config file contains all the necessary settings for ASP.NET AJAX to work.
Muliple Usercontrols is Preventing Postback on Button
Hey, i have two usercontrols, one is an ajax menu that has animation. The second is a form to submit an email to the website. When i have the two controls together the submit email form doesn't work. it displays fine and the form_load function works. However when i click on the submit button on the form, nothing seems to happen.
If i take out the menu things seem to work just fine. Any ideas on what i need to do?
Thanks,
Jon
Hi Jon,
I think you have two <form runat="server"> tags on the page? One form on each usercontrol? If so remove them and add one form tag to the template.
Hope it helps you,
Richard
Hey Richard, I checked to see if i had two <form runat="server"> tags and i only have one. Not sure what the problem is any other ideas?
Jon
Also, i simplified my control to just have a button and a textbox. when pressing the button what is supposed to happen is the texbox is to be populated with a value, this works when the menu is not present, but as soon as i add it, nothing get populated to the textbox.
Jon
Hey Jon, do you have any conflicting form validation in these controls? In other words, if you have form validation in both controls, but you're not specifying which validation group to use, then this could potnetially happen.
Just a thought.
-- Nik
Hey Nik, tried just adding in a textbox and button, but no validation and i'm still getting the issue. Its obvious that its the menu i created using animation extender, but has anyone else had troubles using microsofts ajax toolkit?
Jon
One more thing i've tried - I put the user controls together in visual studio and when i run the page the page posts back correctly. So what would be different in umbraco?
Jon
Use an HTTP monitoring tool like Firebugs Networking Monitoring to check that none of the external files return an 404 error (look for webresource.axd). If they do make sure that your web.config file contains all the necessary settings for ASP.NET AJAX to work.
is working on a reply...