I have combobox that those value is based on my database. So i want to get the selected value in order to do another matching for the SQL statement. May i know how to get it? Is it just use for example WHERE column=' "&combobox&" '? use the combobox name.
I m having two combobox on my page cmbyear(years) and cmbmon(months). i want to make a check that if year selected is current year then selected month should not be greater than current month. how we can achieve this.
one way out is that we can store values of selected options in two variables in javascript function. In the function we can make the check that if selected value for year is current year and selected value for month is greater than current month then it ll show some error message and reload the page.
i m trying this but do not get results. May be i m having some mistake in syntax. can anyone tell me how to get selected value in a variable in javascript or some other way out to achieve this. I have applied same technique on text box value. its working fine. but with combobox. i dont know whats the prob.
<i><b>Originally posted by : dhiren (dhirenchauhan@yahoo.com)</b></i><br /><br />depending upon selection of first combobox second combobox should contain all value related to only first combobox.
I am using one combo box and populating it with the values . i have another combo box on the page. I want to display the related values in this second combo box based on the selection in the first combo box.
I am trying to reload this page on the change event of the combo box but the values are not coming in the 2nd combo box . Please send me a solution to this or if possible a sample code for the same.
i have several radio buttons and a combobox. i want to know how to make this combobox enabled only once a radio button is checked and populate it with data from access database depending on which button is checked.
In my Data Access Page, I have a a combo box from which the user can select a specific record to view based on the value SupervisorManagerName. My combo box works fine in that respect. The user clicks on a name in the combo box, and the record is populated with the correct record.
When I add a *new* record, however, the combo box does not refresh immediately to include the new SupervisorManagerName in its list. Once I close the DAP and then reopen it, the new SupervisorManagerName is included in the combo box, and I can select the name to pull up the record.
Any suggestions on how to get the combo box to refresh immediately upon adding/saving a new record without having to actually close and then reopen the page?
I am able to make this process work using VBA and a regular Access page, but can't figure out how to do this using vbScript Code:
I have a Combobox and a textbox in my asp page. I want the value of Combobox in Onchange event shows in the textbox. this my code but it isnot correct.
<script Language="JavaScript"> function NavTo(a1) { document.forms[0].text1.value=a1 } </Script>
I want to write an sql statement given that the request form combobox has a particular index or a particular value. The combobox in the below example only has 4 items, hense why i am using index.-But does index exist in ASP?also would the below procedure work?
If Request.Form("cmdSearch") then if Request.Form("Turnover").Index = 0 then sql = "Select * from Prospect " sql = SQL & "WHERE Turnover < 999000" elseif Request.Form("Turnover").Index = 1 then sql = "Select * from Prospect " sql = SQL & "WHERE Turnover > 999000 AND Turnover < 5000000" endif endif
i retreived my data's in the database and i filled in my combobox, in that there is know "all" option in database,but i need that option has to be included in my combobox, so it has to be added statically, please give me coding to add that in my combo box statically. my combobox name is "selSchemeNo" .
I have a combobox that on page load is disabled. I've noticed that the information will not load into the combo box if this is the case. Is there a way to load the information and then disable it so the user has no idea what has happened? I load another combobox before this one, that is NOT disabled and so loads properly.
Code:
="1" name="County" disabled="true"> <% While not objrs.eof %> <option value ="<%=objrs("County")%>"> <%=objrs.fields("County")%> <% objrs.movenext wend objrs.close %>
I have a combo box in an ASP page, there are 7 lists total in the combo box, there is another text box on the page and a search button. I want the users to select an item from the combo box and type a keyword and click search.
The combo item and keyword will be used as an criteria to query a SQL database. I'm familiar with SQL connection and running queries but how do I take the criteria and pass on further.
I want to be able to search a user with a user code, get a form populate if the user exist in the Database, but at the same time in one corner of the form I want to be able to see the list of other user's code in a ComboBox from the Database, and onclicking on any user code in the ComboBox the same form should be populated with the user' information.
Right now I have a functional Application but without the ComboBox functionality.
I am working on a HTML form with textfields, radiobuttons and comboboxs. I was wondering if it were possible to automatically update values within a combobox based on the users selection of a radiobutton. I have stored values within a database table of 'seminar_times' and the two radiobuttons options are 'city1' and 'city2' on the form.
So on the form, when the user selects city1 radiobutton, the combobox value updates with approriate city1 seminar times. Is this possible with ASP programming?
Drop down value is selected and a query is performed on that value - I want the selected value to stay in the drop down field. Right now it goes back to the first value in the list once the submit button is clicked (it queries correctly).
When I come into the page there should be no value in the drop down list and when a value is selected it should stay in the field.
I have 2 drop down lists here. Supposingly, upon the selection of the 2nd drop down list, I should be able to see textbox entry allowing user to update data being displayed at the bottom. But in my case here, i see no response upon the selection of "selType" which is my second drop down list. But both also don't work. So any suggestion on how can I retrieve the 2nd drop down list' selected value
I have an aspx file where i've put a placeholder element. On load i create dynamically a table which contains a checkbox and a radiobuttonlist in each tablerow . The radiobuttonlist contains two items (yes,no). Both the checkboxes and the radiobuttonlist are NOT autopostbacked ( .autopostback = false).
When i press the submit button a sub is run. My problem is that i can not get the selected items in the radiobuttonlists.This is caused cos in the page_load i call the sub that dinamically recreates the table described above and so all values are reset (there is a rdb.item(0).selected=true line in my code.
If i try to remove it, the radiobuttons keep their values or not,after each submit, without a pattern!). I've also tried to keep the values in a collection, instasiated in the page_load but i couldn't do so cos the table (that contains the checkboxes and radiobuttonlists) is not recognized at the beggining of the page_load (i guess it's not an object yet cos the sub that creates all that is at the end of page_load)....
I have a drop down select box that gets filled from database. I have to add "All" to this list which does not come from database. Also the default selected value should be the second value that is stored in array. For ex I have array of Countries names as America, Indonesia,china, Canada. My array gives me the value Myarray(intcount,0)(intcount,1) as America and so on (two dimensional array).
I want Indonesia as the default selected value when the page loads. Also I need to hardcode All at the end. Upn submitting the form the selected value fromthe drop down should get selected.
I've got this listbox and this text field on an ASP page. Now I want the item I click on in the listbox to appear in the text field and I can't find the code nowhere for what seems to me such an easy thing to do.