Setting a default option for a comb box

Setting a default option for a comb box

am 25.02.2007 19:47:47 von Doogie

I posted this question a few days ago but I think that post is drying
up and I still do not have an answer. I need to set a default option
for a combo box that is not the first item in that combo box. Below
is an example. I can put the code below into a simple HTML file and
it works fine. It does NOT work in a ASP 3.0 app. I have tried two
seperate ASP apps as an example and NEITHER work.

I have tried variations of the "selected ="true"" part. But nothing
is working. I am surprised it is so difficult to set a default for a
combo box in ASP! Is there some other way to do this? If anyone has
any ideas, I would really appreciate them, this was supposed to be a
simple change and it is taking a very long time to accomplish! :)

Re: Setting a default option for a comb box

am 25.02.2007 20:47:41 von exjxw.hannivoort

Doogie wrote on 25 feb 2007 in microsoft.public.inetserver.asp.general:

> I posted this question a few days ago but I think that post is drying
> up and I still do not have an answer. I need to set a default option
> for a combo box that is not the first item in that combo box. Below
> is an example. I can put the code below into a simple HTML file and
> it works fine. It does NOT work in a ASP 3.0 app. I have tried two
> seperate ASP apps as an example and NEITHER work.
>
> I have tried variations of the "selected ="true"" part. But nothing
> is working. I am surprised it is so difficult to set a default for a
> combo box in ASP! Is there some other way to do this? If anyone has
> any ideas, I would really appreciate them, this was supposed to be a
> simple change and it is taking a very long time to accomplish! :)
>
>

This has nothing to do with ASP, as ASP is a serverside platform.
Furtheremore it seems not a scripting Q.
You where lucky someone in this NG answered you in the first place.
Please follow up on a clientside html NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Setting a default option for a comb box

am 25.02.2007 21:06:26 von Bob Lehmann

Since it apears to you to be an ASP problem, maybe you should post some
related ASP code, or at least some of the surrounding HTML

Even though selected="true" is invalid, it works for me in an ASP page.

I think you misunderstood Mark's recommendation to View Source. He meant, in
your browser, with the page loaded, Edit | View Source.

Bob Lehmann


"Doogie" wrote in message
news:1172429267.891275.306950@a75g2000cwd.googlegroups.com.. .
> I posted this question a few days ago but I think that post is drying
> up and I still do not have an answer. I need to set a default option
> for a combo box that is not the first item in that combo box. Below
> is an example. I can put the code below into a simple HTML file and
> it works fine. It does NOT work in a ASP 3.0 app. I have tried two
> seperate ASP apps as an example and NEITHER work.
>
> I have tried variations of the "selected ="true"" part. But nothing
> is working. I am surprised it is so difficult to set a default for a
> combo box in ASP! Is there some other way to do this? If anyone has
> any ideas, I would really appreciate them, this was supposed to be a
> simple change and it is taking a very long time to accomplish! :)
>
>
>

Re: Setting a default option for a comb box

am 25.02.2007 21:15:35 von Dave Anderson

"Doogie" wrote:
> I have tried variations of the "selected ="true"" part...

There are no variations. You either use

selected="selected"

or nothing at all.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Re: Setting a default option for a comb box

am 25.02.2007 22:02:43 von Mike Brind

"Doogie" wrote in message
news:1172429267.891275.306950@a75g2000cwd.googlegroups.com.. .
>I posted this question a few days ago but I think that post is drying
> up

How can it be "drying up"? There are new posts on that thread today!

--
Mike Brind