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

  1. #1

    Default ComboBox

    Hi,

    I have an ASP.NET form that includes several combo Boxes.
    The first Combo is loaded with items on Page_load.
    The second depends on the item selected on the first, the third on the
    second and so on.

    I don't want to transfer all the data needed with the form and also want to
    avoid page refresh on every item change.

    What is the best method for doing this?
    I heard about xmlhttp and WS but I don't know if any of those technologies
    is appropriate and how to use them in the project.

    Samples will help me very much.

    10X.


    Tamir Berger Guest

  2. Similar Questions and Discussions

    1. ComboBox bound to a ComboBox: doesn't work until .changeevent
      Hi, i have two ComboBoxes getting DataProvider from an XMl doc. The XML nodes look like this: <activity label="aerobics"> <level label="low...
    2. xml to combobox, combobox to listbox, listbox todetails
      i am going out of my mind looking for a tutorial i am able to use a xml document and the xml connector component to populate a pulldown menu, i...
    3. Add to Combobox
      Hi, I want to add Please select as the first entry in the combo box. I tried using prompt which did not work for me. Thanks ...
    4. XML ComboBox
      I am new to Flash, but I have been working on a project. I am attempting to design Bible in Flash using XML. The problem is that I am also new to...
    5. ComboBox & XML
      i have the following XML file which is called MyXML.xml <?xml version="1.0" encoding="iso-8859-1"?> <root> <node> <code>T1</code>...
  3. #2

    Default Re: ComboBox

    If I understand you correctly, you've just ruled out the only 2
    possibilities you have. Think about it. The data to populate the combo boxes
    is stored on the server. Therefore, you either have to (1) pass it all to
    the client to avoid having to PostBack, or (2) PostBack to get the data. If
    you can think of a third way, you're probably due the Nobel Prize!

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.

    "Tamir Berger" <tberger@kpmg.com> wrote in message
    news:O4LY4gwODHA.1364@TK2MSFTNGP10.phx.gbl...
    > Hi,
    >
    > I have an ASP.NET form that includes several combo Boxes.
    > The first Combo is loaded with items on Page_load.
    > The second depends on the item selected on the first, the third on the
    > second and so on.
    >
    > I don't want to transfer all the data needed with the form and also want
    to
    > avoid page refresh on every item change.
    >
    > What is the best method for doing this?
    > I heard about xmlhttp and WS but I don't know if any of those technologies
    > is appropriate and how to use them in the project.
    >
    > Samples will help me very much.
    >
    > 10X.
    >
    >

    Kevin Spencer Guest

  4. #3

    Default Re: ComboBox

    Hello

    you could also use the webservice behavior to obtain the new info and
    transorm it with xsl to a <select>. or with the xmlhttp object...

    other idea?



    "Anatoly" <anatolyr@gilat.com> a écrit dans le message de
    news:%23tEw0gxODHA.2224@TK2MSFTNGP10.phx.gbl...
    > We are using a hidden iframe for this
    > 1)Put an IFRAME with style="display:none" in this web form.
    > 2)On combo change(client-side) write something like this:
    >
    > frmServerSide.location.href =
    > 'serverSide.aspx?Function=FillCompanyCombo&cboRegi on=' +
    > document.frmCaseList.cboRegion.value + '&defaultCompany=' +
    defaultCompany;
    >
    > where frmServerSide is name of IFRAME
    >
    > 3)in serverSide.aspx write on Page_Load() get the appropriate data (in
    > dataset for example) and do in loop
    >
    > Response.Write("<script>")
    > Response.Write( " var oSelect = parent." + ComboName + "; ")
    > Response.Write( " var oOption; ")
    > //cleans the combo before filling
    > Response.Write( " while(oSelect.options.length>0) ")
    > Response.Write(" oSelect.options.remove(0);")
    > foreach(DataRow Row in Data.Rows){
    > Response.Write( " oOption = document.createElement(""OPTION"");")
    > Response.Write( " oOption.text = '" + Row[TextField].ToString() +
    "';")
    > Response.Write( " oOption.value = '" + Row[ValueField] + "';")
    > Response.Write( " oSelect.add(oOption); ")
    > }
    >
    > ComboName is DropDownList.ClientId which you may pass from first form
    >
    > HTH
    >
    > "Tamir Berger" <tberger@kpmg.com> wrote in message
    > news:O4LY4gwODHA.1364@TK2MSFTNGP10.phx.gbl...
    > > Hi,
    > >
    > > I have an ASP.NET form that includes several combo Boxes.
    > > The first Combo is loaded with items on Page_load.
    > > The second depends on the item selected on the first, the third on the
    > > second and so on.
    > >
    > > I don't want to transfer all the data needed with the form and also want
    > to
    > > avoid page refresh on every item change.
    > >
    > > What is the best method for doing this?
    > > I heard about xmlhttp and WS but I don't know if any of those
    technologies
    > > is appropriate and how to use them in the project.
    > >
    > > Samples will help me very much.
    > >
    > > 10X.
    > >
    > >
    >
    >

    Tom Johnson Guest

  5. #4

    Default ComboBox

    I have a form and I want to have a ComboBox that lists
    all the tables in the current database. What is the
    record source of the combobox; I don't want to create a
    table and maintain by adding the table's name to it each
    time I add a new table to the current database.

    Thanks,
    MigBud
    MigBud Guest

  6. #5

    Default ComboBox

    I have a form and I want to have a ComboBox that lists
    all the tables in the current database. What is the
    record source of the combobox; I don't want to create a
    table and maintain by adding the table's name to it each
    time I add a new table to the current database.

    Thanks,
    MigBud
    MigBud Guest

  7. #6

    Default ComboBox

    Hello

    All I want to do is have a user select a choice from a combobox selection and
    either goto another page in my site or open a document in a blank web page, but
    I'm having dificulty decifering the info, I thought it was easy in flash MX
    2004 or am I missing something

    orbitme 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