Autofill Text Field After Listbox Item Selected
Just getting started with ASP (NOT .NET) and have a question:
I have a basic form and I'm trying to add some functionality to it. I want
a user to be able to select a product from a list box. After this product
is selected have another text box, ProductID update to reflect the product
number.
In VB I would use an OnChange type thing. Can anyone point me how to do
this with an ASP page or using some kind of embedded script?
View Replies
ADVERTISEMENT
I have an .asp page containing a form with (multiple) select/dropdown boxes. The page is submitted to itself.
Is there any way of retrieving the selected values (i.e. the text) in the select boxes server-side?
I'm looking for something like Request.Form("Select1").Value.
View Replies
View Related
if it is possible to narrow in on an item within a listbox of states. For example, right now if I type "W", I will immediately drop down to those states beggining with "W".
However if I type "WI", I go to the top of the list with those states beginning with "I". I would like to continue to zero in on the state by dropping down to those that begin with "WI". Is this possible and if so, how do I go about doing it?
View Replies
View Related
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.
View Replies
View Related
have form on asp page with an email address field, when the user enters
their email address I want it to populate another field automatically on the
same page, some kind of OnBlur event. Have worked extensively with dropdown
OnChange events but cant get my head around this one.
View Replies
View Related
How, using asp.net (vb.net), can I remove multiple selected items from a listbox.
View Replies
View Related
Drop Down Menu as follows:
<select name="county" id="county" >
<option value=''> Select County</option>
<option value='Antrim'> Antrim</option>
<option value='Armagh'> Armagh</option>
<option value='Carlow'> Carlow</option>
</select>
Problem is when there is an error with one of the other fields and the press reloads the county is reset to Select County how can i remember this value.
View Replies
View Related
I am having a drop down list and other text boxes in a form. I need to retrive and fill text boxes from database depending on the selected item in drop down list. I am using javascript as scripting language. Can any body give solution.
View Replies
View Related
The code that I have has 2 drop down boxes dd1 (visible) and dd2 (hidden). Based on the option selected in dd1, dd2 should be visible and populate options. I think I can have OnChange script but how could I return the value and put it in the SQL query (see variable in red in thecode)? Code:
View Replies
View Related
I'm developing a small website and trying NOT to use Javascript (Don't ask!).
I'm using a ListBox generated by a database etc along the lines of
<select name=cboList>
<option value="0">Please Select</option>
<option value="431">£1.10</option>
<option value="438">£2.15</option>
<option value="444">£3.50</option>
<option value="451">£4.75</option>
</select>
When the form is submitted I want the new page to determine (Request.Form), both the value, ie 431 etc, AND the text, ie £1.10. Request.Form gets the value, or if there's no value, the text, but how can it pick up both?
Annoyingly, this would be easy in Javascript but I can't find anything on ASP detecting the value.
View Replies
View Related
I have an index.asp page that displays my database items, along with their respective categories. The categories are an include page (left.asp). How can I hide the category if there aren't any items for that category? Here are the 2 pages below....
View Replies
View Related
I was wondering if you could help me with the following problem. I have 2 listboxes in my
webpage, 1 has cities, and the other lists the streets of the city from the first listbox.
When I click on a city, I want the 2nd listbox to populate with all streets in the city. The city and streets are saved in a database, so when the user selects the city, I will run a query on the database and populate the 2nd listbox with all streets.
How can I do this with normal ASP? I know how to do this with ASP.NET, but don't know how to activate this with normal ASP?
View Replies
View Related
I 'm trying to display a combo box (which datas are coming from a database) depending on the select of another combo box in the same form. I think I should use the property onChange of JavaScript but don't know what to give in parameters.
In fact, I have an ASP function which generate a table containing the Strings obtained thanks to a request in a database. Then I'd like to put the Strings contained in the table, to a combo box. The combo box should refresh each time the user select another field in the former list. It must be developped dynamically.
View Replies
View Related
what i'm doing is trying to take data from a row in Excel and somehow autofill a webform (textboxes) with the information from all 65500 rows in this column and submit to a website. It is a list of product item numbers so I can submit them without typing them all in.
View Replies
View Related
Is there a way to turn off the auto fill.. I have page that a user has to enter their logon and password. I do not want the auto fill to save userid/pswd. Can this be turned off or not displayed while typing?
View Replies
View Related
I just found your website and it's terrific. I need to know if an Autofill form can be made. The language is ASP. My programmer says it's not possible, is it true?
The idea is to have a search button where the customers inputs the letters of product models (the info comes from a DB) and it's autocompleted or at least, the system searches for the closest model no. ; once the customer clicks on the model they want, all info regarding that model would be displayed in another form.
View Replies
View Related
I have 4 fields from a DB: col01, col02, col03 and col04
I have 3 text fields and a dropdown menu. The dropdown menu will contain a list of all values from col01. Upon selecting a value in that dropdown, I want the 3 textfields to be filled the relevant col02, col3 and col4 data.
View Replies
View Related
I have a form that has a table that contains a textbox where the user inputs a part number. Depending on what the user enters, when the user tabs to the next textbox, I want it to go to the database and search for the number that was entered.
If found, I want it to populate other textboxes with information found for that item in the database. How can I accomplish this??
View Replies
View Related
How i can get a text field that would accept apostrophes?
here's my code:
Title = Replace(Request.form("AddTitle")
Message = Replace(Request.form("AddMessage")
Author = request.Form("AddAuthor")
TimePosted = request.Form("AddTimePosted")
DatePosted = request.Form("AddDatePosted")
sql="INSERT into NEWS (title, message, author, date_posted, time_posted) "
sql = sql & "VALUES ('" & Title & "', '" & Message & "', '" & Author & "', '" & DatePosted & "', '" & TimePosted & "') "
Conn.execute(sql)
Response.write sql
View Replies
View Related
i am using ASP with recordset I am using nvarchar field and TEXT field in ms sql server
i update it as follows
rs("thenvarcharfield") = request.form("somedata")
rs("thetextfield") = request.form("someotherdata")
rs.Update
at one page it works fine and when i use the same kind of code to update another TEXT field it doesn't update and the I.E. loading bar increases very slowly and the next page never loads someone suggested to use .appendchunk i used rs.appendchunk and i got the error "object doesn't support this property or method" he also said that .appendchunk cannot be used to update nvarchar.
i removed the code to update TEXT field and the page loaded as expected (normally)!
Why one text field worked fine while the other didn't?
View Replies
View Related
I need help regarding the string. In HTML page i have a text field to enter Name. How do i check whether its valid name or not, on the server side.
View Replies
View Related
I want to create two radio button
Yes and No. Only on select that radio button 'Yes',
the text field should get enabled.
How to do this?
View Replies
View Related
i have a table in which i have many text boxes, they are named as a1,a2,a3,a4 to a16 the next row is b1,b2,b3 to b16 and so on up to G1,G2 etc, where the user enters his data, what i want to do is only allow the user to enter numbers, which can have decimals if required,
how can this be done, also i have another set of textboxes through which i want to loop and prevent user the user from entering the same data in more then one box how can this be done any help will be appreciated thank you.these are the text boxes a1,b1,c1,d1,e1 etc which is actually the first column in the table.
i have created the following array:
letterArray[0] = 'A'
letterArray[1] = 'B'
letterArray[2] = 'C'
letterArray[3] = 'D'
letterArray[4] = 'E'
letterArray[5] = 'F'
letterArray[6] = 'G'
how can i loop through to achive the above.
View Replies
View Related
May I know how to restrict the user to key in at least 6 characters from the text field by using asp? If possible
View Replies
View Related
I am trying to write some code that inserts or updates a text field in my SQL Server 2000 database. The SQL statement is created using a submit from a form, and the text is coming from a <textarea>, and therefore being placed into the SQL statement via a Request("field"). However, due to limitations in SQL Server 2000 and text fields, I can not use a simple Update or Insert command with text over 8000 bytes.
Does anybody have any sample statements that will help me update that field with larger amounts of data? I have tried using the WRITETEXT function and UPDATETEXT function with little or no success.
View Replies
View Related
i have a form that has two hidden fields.The first hidden field will has a value like this 'EM12HILL.JPG'.The second hidden field has a value like this 'AA01'.What i would like to happen is when submit button is pressed, the characters in the first hidden field will change to the following 'AA01HILL.JPG', as they are passed to another form.
View Replies
View Related
How do I clear the data in this field before using the date function.?
<input type="text" size=35 name="DepartCentralDate" value="<%=x_DepartCentral %><%= FormatDateTime(Date, 1) %> <%= FormatDateTime(Now, 3)%>">
View Replies
View Related
Is it possible to recall a variable with the combination of text + rs.field? i want to recall the variable "speler1", at the place weher rs("speler") is 1. It's probably again easy.
View Replies
View Related
I been searching google but I can't find how to shorten a text field and if it has been shortened to place a space and triple dot (...) after it. So if the text field was 75 characters long it would shorten it to 50 and add " ...". Is it also possible to shorten it to 50 to the nearest word? This is what I got so far: Code:
...
<td>
<p>
<% = left(rs("my_text").value,50) & IF rs("my_text").count > 50 Then Response.Write(" ...") End If %>
</p>
</td>
...
View Replies
View Related
In a form I have one pulldown menu, and one text field. Both MUST get their values from an Access database they connect to. Without submitting the form, how do I change the value appearing in the text field by changing the selection in the pulldown menu? Remember both the text field and the pulldown menu MUST get their values from a database.
View Replies
View Related
I need a user to follow a format. For example entering a date. I need the user to enter a date in this format MM/DD/YY. How do I check to see if they followed that format?
I need the user to enter a currency amount without the "$" sign. How do I check to see if the Request.Form("price") value has a "$" sign in it? I guess I need to know how to parse a string in ASP.
View Replies
View Related
Is it possible to make the following codes Value = idSpecies but its Label TimberSpecies?
<input name="f1" type="text" id="f13" value="<%=((rsResults.Fields.Item("idSpecies").Value))%>" size="33">
I have a database with the following...
Table Name.....Query1
Field Name......idSpecies..........Auto Number
Field Name......TimberSpecies...Text Field
View Replies
View Related
I have an asp page that allows cdont mailing of form field values to persons matching slected criterea in their profile.
Works good if the user goes straight from the form to the email-making asp.
Then the user asked for a proofreading screen and what seemed simple took a bad turn.
When I try to pass from the proof reading screen to the asp that actually sends the email I only get the first word. as soon as a blank is encountered in the text it thinks it it done. Code:
View Replies
View Related