Form in a form - possible ?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Form in a form - possible ?

    Hi,

    I have a really simple web page with c# code behind it. It displays news
    headlines with related text. Click on the headline and you get the text that
    goes with it.
    I need to implement a search facility that will go through the entire
    database and present the user with all the hits. When they click on a hit
    the main page displays headline and text.
    i.e.
    ********************** *******************************************

    * * * *

    * Search text * * *

    * * * Headline *

    * Result 1 * * *

    * Result 2 * * Story *

    * etc * * *

    * etc * * Other details *

    * * * *

    * (Clicking on a * * (This works as always, *

    * result here * * clicking on a result alters what's *

    * alters what's * * displayed here. *

    * displayed in * * But clicking within this window *

    * the right hand * * works just the same as if the *

    * form. * * search window wasn't there.) *

    * When the user's * * *

    * done with the * * *

    * search they click * * *

    * on X and this * * *

    * disappears.) * * *

    * * * *

    ********************** *******************************************

    Most of the time the search window won't be there. I'd like it to appear
    when the user clicks on a search button on the main page, and disappear when
    the user's done with it.

    Since the main window is already working and debugged I'd like to keep the 2
    windows as independent of each other as possible - with the exception that
    clicking on a result in the search window alters what's displayed in the
    main window.



    I'm sure it's possible, but I'm pretty new to aspnet stuff. If someone could
    nudge me in the right direction I'd be very grateful.



    Sorry if this is an issue that's already been dealt with, but to be honest I
    wasn't too sure about what to search on.



    Thank you muchly,



    Adam.


    --
    Adam Benson
    [email]adam.benson@NOSPAM.omnibus.co.uk[/email]
    ==================================


    Adam Benson Guest

  2. Similar Questions and Discussions

    1. Autopopulated form not displaying data in pdfunless the form field is clicked
      Within my online application, I have a pdf form that is auto generated and displayed to the user in the browser. My problem is that the populated...
    2. authenticate win32 form client with form based authentication web services
      (Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client...
    3. #25676 [Opn->Bgs]: Form hidden input ouput when any form=* is in url_rewriter.tags
      ID: 25676 Updated by: sniper@php.net Reported By: davey@php.net -Status: Open +Status: Bogus Bug...
    4. #25676 [Bgs->Opn]: Form hidden input ouput when any form=* is in url_rewriter.tags
      ID: 25676 Updated by: davey@php.net Reported By: davey@php.net -Status: Bogus +Status: Open Bug...
    5. #25676 [NEW]: Form hidden input ouput when any form=* is in url_rewriter.tags
      From: davey@php.net Operating system: WinXP/FreeBSD PHP version: 4CVS-2003-09-26 (stable) PHP Bug Type: Session related Bug...
  3. #2

    Default Re: Form in a form - possible ?

    Hi,

    you don't have to use two forms in a single page. You could build a user
    control (ASCX) that handles the search stuff and a another control for
    showing the news and use these two on a page inside a single <form
    runat=server...> tag pair. ASP.NET will automatically do the plumbing for
    you so that if you have a search button in the first control and a
    corresponding event, the user's click on that button will result in ASP.NET
    calling your corresponding button event. You then can update the page anyway
    you like and return it to the user.

    Best regards,

    Marc Höppner
    NeoGeo

    "Adam Benson" <adam.benson@NOSPAM.omnibus.co.uk> wrote in message
    news:uk7ZLtDUDHA.3700@tk2msftngp13.phx.gbl...
    > Hi,
    >
    > I have a really simple web page with c# code behind it. It displays news
    > headlines with related text. Click on the headline and you get the text
    that
    > goes with it.
    > I need to implement a search facility that will go through the entire
    > database and present the user with all the hits. When they click on a hit
    > the main page displays headline and text.
    > i.e.
    > ********************** *******************************************
    >
    > * * * *
    >
    > * Search text * * *
    >
    > * * * Headline *
    >
    > * Result 1 * * *
    >
    > * Result 2 * * Story *
    >
    > * etc * * *
    >
    > * etc * * Other details *
    >
    > * * * *
    >
    > * (Clicking on a * * (This works as always, *
    >
    > * result here * * clicking on a result alters what's *
    >
    > * alters what's * * displayed here. *
    >
    > * displayed in * * But clicking within this window *
    >
    > * the right hand * * works just the same as if the *
    >
    > * form. * * search window wasn't there.) *
    >
    > * When the user's * * *
    >
    > * done with the * * *
    >
    > * search they click * * *
    >
    > * on X and this * * *
    >
    > * disappears.) * * *
    >
    > * * * *
    >
    > ********************** *******************************************
    >
    > Most of the time the search window won't be there. I'd like it to appear
    > when the user clicks on a search button on the main page, and disappear
    when
    > the user's done with it.
    >
    > Since the main window is already working and debugged I'd like to keep the
    2
    > windows as independent of each other as possible - with the exception that
    > clicking on a result in the search window alters what's displayed in the
    > main window.
    >
    >
    >
    > I'm sure it's possible, but I'm pretty new to aspnet stuff. If someone
    could
    > nudge me in the right direction I'd be very grateful.
    >
    >
    >
    > Sorry if this is an issue that's already been dealt with, but to be honest
    I
    > wasn't too sure about what to search on.
    >
    >
    >
    > Thank you muchly,
    >
    >
    >
    > Adam.
    >
    >
    > --
    > Adam Benson
    > [email]adam.benson@NOSPAM.omnibus.co.uk[/email]
    > ==================================
    >
    >

    Marc Hoeppner Guest

  4. #3

    Default Re: Form in a form - possible ?

    you can't have a form in a form.
    you can have multiple forms in a page ( just not the asp.net kind )


    "Adam Benson" <adam.benson@NOSPAM.omnibus.co.uk> wrote in message
    news:uk7ZLtDUDHA.3700@tk2msftngp13.phx.gbl...
    > Hi,
    >
    > I have a really simple web page with c# code behind it. It displays news
    > headlines with related text. Click on the headline and you get the text
    that
    > goes with it.
    > I need to implement a search facility that will go through the entire
    > database and present the user with all the hits. When they click on a hit
    > the main page displays headline and text.
    > i.e.
    > ********************** *******************************************
    >
    > * * * *
    >
    > * Search text * * *
    >
    > * * * Headline *
    >
    > * Result 1 * * *
    >
    > * Result 2 * * Story *
    >
    > * etc * * *
    >
    > * etc * * Other details *
    >
    > * * * *
    >
    > * (Clicking on a * * (This works as always, *
    >
    > * result here * * clicking on a result alters what's *
    >
    > * alters what's * * displayed here. *
    >
    > * displayed in * * But clicking within this window *
    >
    > * the right hand * * works just the same as if the *
    >
    > * form. * * search window wasn't there.) *
    >
    > * When the user's * * *
    >
    > * done with the * * *
    >
    > * search they click * * *
    >
    > * on X and this * * *
    >
    > * disappears.) * * *
    >
    > * * * *
    >
    > ********************** *******************************************
    >
    > Most of the time the search window won't be there. I'd like it to appear
    > when the user clicks on a search button on the main page, and disappear
    when
    > the user's done with it.
    >
    > Since the main window is already working and debugged I'd like to keep the
    2
    > windows as independent of each other as possible - with the exception that
    > clicking on a result in the search window alters what's displayed in the
    > main window.
    >
    >
    >
    > I'm sure it's possible, but I'm pretty new to aspnet stuff. If someone
    could
    > nudge me in the right direction I'd be very grateful.
    >
    >
    >
    > Sorry if this is an issue that's already been dealt with, but to be honest
    I
    > wasn't too sure about what to search on.
    >
    >
    >
    > Thank you muchly,
    >
    >
    >
    > Adam.
    >
    >
    > --
    > Adam Benson
    > [email]adam.benson@NOSPAM.omnibus.co.uk[/email]
    > ==================================
    >
    >

    Aemca Guest

  5. #4

    Default Re: Form in a form - possible ?

    Thanks, Marc and Aemca.

    After going some way down the line suggested by Marc I sent a screen shot to
    the customer and discovered they didn't want it like that. So I've had to
    change it all ....

    That's life ...

    AB


    --
    Adam Benson
    [email]adam.benson@NOSPAM.omnibus.co.uk[/email]
    ==================================


    Adam Benson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139