Really hoping someone else had this problem too, cause it's preety simple, unfortunatelly I'm not sure how to best fix it...
I have a <form runat="server"> just inside the <body> tag on my masterpage...however, for locator, you need to use a form to submit the "s" query string parameter...but since inside the form I have other elements what seems to happen is that upon submit button click the page refreshes (returning to "locatorpage.aspx?" instead of "locatorpage.aspx?s=searchstring").
I had changed the input button to "<asp:Button ID="Submit" runat="server" PostBackUrl="/Locator.aspx" Text="Go" />"...and that kinda seemed to solve the problem in the sense that the first submit button click worked...however it stopped my other elements working (one of which is a textbox which should submit upon enter keypress -> it has a hidden submit button beside it) and also didn't work when there was multiple search results returned. Choosing one radio button and clicking "ok" just seemed to refresh the page again.
Anybody had this problem? What's the best fix? Ieframe loading this locator as a separate page?! TIA
Form inside a form problem...
Hi guys.
Really hoping someone else had this problem too, cause it's preety simple, unfortunatelly I'm not sure how to best fix it...
I have a <form runat="server"> just inside the <body> tag on my masterpage...however, for locator, you need to use a form to submit the "s" query string parameter...but since inside the form I have other elements what seems to happen is that upon submit button click the page refreshes (returning to "locatorpage.aspx?" instead of "locatorpage.aspx?s=searchstring").
I had changed the input button to "<asp:Button ID="Submit" runat="server" PostBackUrl="/Locator.aspx" Text="Go" />"...and that kinda seemed to solve the problem in the sense that the first submit button click worked...however it stopped my other elements working (one of which is a textbox which should submit upon enter keypress -> it has a hidden submit button beside it) and also didn't work when there was multiple search results returned. Choosing one radio button and clicking "ok" just seemed to refresh the page again.
Anybody had this problem? What's the best fix? Ieframe loading this locator as a separate page?! TIA
You could just use a plain html form... Without ASP Controls like the asp:Button... That should work I guess?
Hi Stc
Somewhere in here a solution should be waiting for you!
http://our.umbraco.org/forum/developers/extending-umbraco/5360-Two-forms-on-the-same-page?p=0
http://our.umbraco.org/forum/developers/api-questions/5648-Having-more-than-one-form-on-a-page
http://our.umbraco.org/forum/umbraco-pro/contour/7857-multiple-forms-on-page-leads-to-invalid-mark-up
http://our.umbraco.org/projects/cultiv-contact-form/requests-and-questions/4411-Error-on-use---A-page-can-have-only-one-server-side-Form-tag
http://our.umbraco.org/forum/umbraco-pro/contour/6682-multiple-forms-on-same-page-a-problem
hth
Dan
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.