Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • stc 72 posts 101 karma points
    Jun 08, 2010 @ 14:47
    stc
    0

    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

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jun 08, 2010 @ 15:31
    Stefan Kip
    0

    You could just use a plain html form... Without ASP Controls like the asp:Button... That should work I guess?

  • dandrayne 1138 posts 2262 karma points
    Jun 08, 2010 @ 15:36
  • 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.

Please Sign in or register to post replies