Scripts.FranciscoCharrua.com
HotScripts.com - Over 10 web rings.
more links...
user name     password  
  Index    News    Samples    E-Mail me    Forums    Sign Up
  SELECT-POPULATOR.ASP

I find that when developing input forms, adding select tags is one of the most tedious tasks. This is especially true if they have to remember the values assigned to them. Realizing this, I wrote this function to facilitate things. Here are two examples:

asp:
<select name="name" onclick="document.form_name.submit();">
<%
test = array( _
array("1", "one"), array("2", "two"), array("3", "three"), array("4", "four"), array("5", "five"))
select_populator test, "3"
%>
</select>

asp.net:
<select name="name" onclick="document.form_name.submit();">
<%
Dim test(,) As String = {{"1", "one"}, {"1", "two"}, {"1", "three"}, {"1", "four"}, {"1", "five"}}
select_populator(test, "3")
%>
</select>





see also :  form-handler.php, form-handler.asp, params.php, params.asp
select-populator.php, select-populator.asp, select-value-set.js
javascript-cookies.js, javascript-get-variables.js




hosting with cpanel    best hosting    premium website host