How to question: Added new values to dropdown lists & database

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

  1. #1

    Default How to question: Added new values to dropdown lists & database

    This is my attempt to rephrase a question I asked earlier that got no
    response. I suspect it was my poor/unplanned wording. Here is another
    attempt:

    I have a form with some drop down lists. I would like the user to be able
    to start filling in the form, then get to one of the dropdown lists (ex:
    Service Type) and realize that the dropdown list does not contain the entry
    that they need. So next to the Service Type drop down list is a
    link/image/button/whatever that they can click to bring up a new window ( or
    ???) to add that new Service Type item. When they save this new Service
    Type item's information, it will be added to the database ServiceTypes table
    in the db, the Add Service Type window will close, and the form that they
    were originally filling out will be preserved, but refreshed to show the new
    service type in the drop down list.

    I'm not asking for exact code necessarily, just some general concepts/links
    on how others have accomplished it. I am looking for a more elegant way
    than saving each field's data into some temp storage and refreshing the
    whole page to add the new service type item, then returning the user back to
    the original form and re-filling all of the fields with the stored values.

    Thanks
    Chris


    Chris Becker Guest

  2. Similar Questions and Discussions

    1. working with dropdown lists
      I appologize for what is probably a very novice question. I am creating dropdown lists for an online store. The purpose of the list is to choose a...
    2. Dropdown lists navigation
      Hi Sven, Unfortunately I never got this to work, because I went round in circles for a while and ran out of time. However, I did find a way round,...
    3. Dropdown lists navigation2
      Hi everybody, I'm trying to make Dropdown list in my presentation according to previous topic about Dropdown menu but without the success. The goal...
    4. Sorting data in Listbox/Dropdown lists
      hi, i have loaded the listbox with the data from a database using dataset. i am finding difficulty in sorting the data. i am not able to find a...
    5. dropdown lists - query parameter error
      Hi, I'm using the following for 2 dropdown boxes in asp.net. The first is the basis for the contents of the second. First works fine, then on...
  3. #2

    Default Re: How to question: Added new values to dropdown lists & database

    Sounds like you'll be needing to use some client side javascript.
    You can open a new window using javascript such as this:
    a=window.open('http://localhost/TestWebApp/Test.aspx','_new')
    There are all kinds of options for setting window properties such as window
    size and toolbar visibility.
    Here's more info:
    [url]http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp[/url]

    From that new window you can reference the original parent window with
    thisjavascript reference:

    window.opener

    Here's more info on that:
    [url]http://www.mozilla.org/docs/dom/domref/dom_window_ref77.html[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Chris Becker" <slolife@hotmail.com> wrote in message
    news:O6PQUZOQDHA.2636@TK2MSFTNGP10.phx.gbl...
    > This is my attempt to rephrase a question I asked earlier that got no
    > response. I suspect it was my poor/unplanned wording. Here is another
    > attempt:
    >
    > I have a form with some drop down lists. I would like the user to be able
    > to start filling in the form, then get to one of the dropdown lists (ex:
    > Service Type) and realize that the dropdown list does not contain the
    entry
    > that they need. So next to the Service Type drop down list is a
    > link/image/button/whatever that they can click to bring up a new window
    ( or
    > ???) to add that new Service Type item. When they save this new Service
    > Type item's information, it will be added to the database ServiceTypes
    table
    > in the db, the Add Service Type window will close, and the form that they
    > were originally filling out will be preserved, but refreshed to show the
    new
    > service type in the drop down list.
    >
    > I'm not asking for exact code necessarily, just some general
    concepts/links
    > on how others have accomplished it. I am looking for a more elegant way
    > than saving each field's data into some temp storage and refreshing the
    > whole page to add the new service type item, then returning the user back
    to
    > the original form and re-filling all of the fields with the stored values.
    >
    > Thanks
    > Chris
    >
    >

    Steve C. Orr, MCSD Guest

  4. #3

    Default How to question: Added new values to dropdown lists & database

    I like to keep that kind of stuff on the same page if I
    can.

    you can put the "add new thing" controls next to the drop
    down, with visible set to false. Clicking the icon makes
    it visible. They add the info, click the Add button in
    that section, and you bind the drop-down to the table, now
    with the new value.
    >-----Original Message-----
    >This is my attempt to rephrase a question I asked earlier
    that got no
    >response. I suspect it was my poor/unplanned wording.
    Here is another
    >attempt:
    >
    >I have a form with some drop down lists. I would like
    the user to be able
    >to start filling in the form, then get to one of the
    dropdown lists (ex:
    >Service Type) and realize that the dropdown list does not
    contain the entry
    >that they need. So next to the Service Type drop down
    list is a
    >link/image/button/whatever that they can click to bring
    up a new window ( or
    >???) to add that new Service Type item. When they save
    this new Service
    >Type item's information, it will be added to the database
    ServiceTypes table
    >in the db, the Add Service Type window will close, and
    the form that they
    >were originally filling out will be preserved, but
    refreshed to show the new
    >service type in the drop down list.
    >
    >I'm not asking for exact code necessarily, just some
    general concepts/links
    >on how others have accomplished it. I am looking for a
    more elegant way
    >than saving each field's data into some temp storage and
    refreshing the
    >whole page to add the new service type item, then
    returning the user back to
    >the original form and re-filling all of the fields with
    the stored values.
    >
    >Thanks
    >Chris
    >
    >
    >.
    >
    David Waz... 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