Copied to clipboard

Flag this post as spam?

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


  • pngocnt 6 posts 26 karma points
    Nov 12, 2012 @ 10:25
    pngocnt
    0

    XSLTSearch help me, please?

    Hi all,

    I use XSLT in my app, it works fine. Today I have a small issue as bellow:

    1. The app have three page with 3 template: master, submaster1 (inside the master), submaster2 (inside the master).

    2. the code below is in the header of master template:

    [CODE]

                          <form method="get" action="/search.aspx?">
                              <input type="text" id="txtTopSearch" name="search"/>
                              <input type="submit" value="">              
                          </form>


    [/CODE]

    3. I have some other buttons in the submaster1 template.

    4. The issue occurs when I click on search button, it always redirect to the current page instead of search.aspx.

    Please help me solve it.

    Thanks!

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 12, 2012 @ 10:42
    Fuji Kusaka
    0

    Change the Form Method from get to post instead this should redirect you to the your search.aspx page

  • pngocnt 6 posts 26 karma points
    Nov 12, 2012 @ 11:29
    pngocnt
    0

    Thanks!

    I solved this issue, It works fine now with two <form> tags.

    1. <form method="get" action="/search.aspx?"> after the body tag

    2. <form> .... search textbox  </form>

     

     

  • 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