Copied to clipboard

Flag this post as spam?

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


  • saif 68 posts 88 karma points
    Mar 09, 2012 @ 16:34
    saif
    0

    Xslt search!

    Hi All,

    I implemented search functionality watching a video tutorial 'Examine'. In this video Tim has created a form  with the code below on his master page at the .

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

    But due to my requirements I have already created a <form> tag in my master page. Please could you tell me if there is an alternative.

    Thanks in adv.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 10, 2012 @ 09:48
    Jan Skovgaard
    0

    Hi Saif

    Perhaps you can create an alternative template you can use for xslt-search only where you don't have the server form? Simply create a template called "search" and create the neccesary html etc and place the form.

    In the browser go to http://yourdomain.com/search.aspx and see if it works.

    /Jan

  • Profiterole 232 posts 264 karma points
    Mar 15, 2012 @ 14:53
    Profiterole
    0

    Put your search form in another conctentplaceholder outside the form of your masterpage.

    Masterpage
    <form>
          <asp:ContentPlaceHolder ID="textpage" runat="server"></asp:ContentPlaceHolder>
    </form>
      <form action="/search.aspx" method="get">
                        <input text=""  name="s"/>
                         <input type="submit"  value="search"/>
                  </form>
  • saif 68 posts 88 karma points
    Mar 15, 2012 @ 15:06
    saif
    0

    Thank you so much both Jan and Profiterole. Definitely I will implement both solution.

    At the moment I am working on very urgent task, again I really appriciate both of you. Jan I am really sorry I did not get back to you since last week.

    kind regards

    saif

     

Please Sign in or register to post replies

Write your reply to:

Draft