"Mark R" wrote in message news:c4*********@titan.btinternet.com...
: I have one .asp page with a SELECT pulldown list on it and some INPUT
: fields. When SUBMIT is clicked the form data is submitted to that same
page
: and validated. If INPUT fields are empty the asp code will insert a visual
: indicator (e.g. *) to convey that the field must be filled in.
: However, if the user has made a selection in the pulldown list and has
left
: an INPUT field empty, when the form reappears after validation, the
pulldown
: menu looses its selection and returns to its default value.
:
: Would anyone be able to provide a solution to this?
: Or do you need to see the code first?
:
: If someone can help I haven't got great asp knowledge so please be as
clear
: as possible.
Test the values when the page is loaded and if not empty, then data has been
entered and you can set the values, along with the * for the fields that are
not empty.
or
You can validate client-side scripting before you post so when you do post,
everything will work and you do not waste an expensive trip to the server.
HTH...
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp