Using ASP Variant For Initial Value
CODE:
<% apeynom1=trim(ob_rs("apeynom")) %>
<input type="text" name="apeynom" size="25" maxlength="20" value= <% =apeynom1 %>
My intention is to made a text input with the ob_rs("apeynom") content as it initial value.
It occurs, that the initial value picks only the first word of a sentence, that is, until the content reaches a blank space.
Eg. If the ob_rs("apeynom") is "Juanito Perez" it only displays me "Juanito" as the initial value.
View Replies
I'm looking for help again!!! I have been writing a page to update a database but now have another 'silly' problem with listbox's. I'm trying to populate the list box with static values pre-programmed into the page and then set the listbox value to that of the one contained in the database for that particular record the code I'm using is -
<select name="SelectGarage">
<option value="0">No</option>
<option value="1">Yes</option>
<option value="2">Yes (Two)</option>
<option value="3">Double</option>
<option value selected[color=blue]
><%=(CPEditPropertyRS.Fields.Item("Garage").Value)%></option>[/color]
</select>
The listbox comes up OK and the value contained in the database is displayed, but if the number '1' (for Yes) is the value stored in the record to be edited, the value is displayed as a '1' and not a 'yes'. I don't want it to actually add the value in the record, I want it to select the corresponding label i.e. '1' = 'Yes'.
View Replies
View Related
where I can find information regarding a problem I am having with w2003 ii6 and asp.net. The first page load each morning can run to 1/2hr, which as you can imagine is not exactly making anyone happy. There doesn't appear to be a newsgroup dedicated to asp.net, though I may have been looking in all the wrong places.. so many groups.
I've found some info on the web related to the problem but nothing which discusses what may be going on, nor how to diagnose it.
View Replies
View Related
How can I create an array with no specified size. I tried to do the following with no luck
Dim my_array()
The code will be adding values to the array like this
my_array(i) = "First"
.
.
.
etc
View Replies
View Related
I have a registration form that I'm making and I need to get the count of available spots for each class session. I can't get the array to return something like "0,0,0,0,0,0". Is there a way to do this? There are 6 total classes and they are named 1, 2, 3, 4, 5, and 6.
When you start out, each count will be 0 (meaning no one signed up yet) which makes the openSpots variable equal to 35 (maximum # allowed). Code:
View Replies
View Related