Drop down list
am 25.10.2007 20:28:47 von navinHi All,
In a drop down box i am populating all the weeks from 1 to 52, but
whenever the page loads, i want it show the current week number as
selected value.
Below is what is did:
Hi All,
In a drop down box i am populating all the weeks from 1 to 52, but
whenever the page loads, i want it show the current week number as
selected value.
Below is what is did:
navin wrote:
> Hi All,
>
> In a drop down box i am populating all the weeks from 1 to 52, but
> whenever the page loads, i want it show the current week number as
> selected value.
>
>
> Below is what is did:
>
>
>
On Oct 25, 11:45 pm, "Bob Barrows [MVP]"
wrote:
> navin wrote:
> > Hi All,
>
> > In a drop down box i am populating all the weeks from 1 to 52, but
> > whenever the page loads, i want it show the current week number as
> > selected value.
>
> > Below is what is did:
>
> >
"navin"
news:1193348024.717945.81660@o38g2000hse.googlegroups.com...
> On Oct 25, 11:45 pm, "Bob Barrows [MVP]"
> wrote:
> > navin wrote:
> > > Hi All,
> >
> > > In a drop down box i am populating all the weeks from 1 to 52, but
> > > whenever the page loads, i want it show the current week number as
> > > selected value.
> >
> > > Below is what is did:
> >
> > >
> > > option>
> >
> > > But when my page loads, the drop down box shows the last week in the
> > > list (52), instead of current week which is 43.
> >
> > View Source to see the actual output.of you server-side code. If that
> > does not provide the clue for you, you need to show us how to reproduce
> > the symptom: show us the rest of the code to generate the options.
> >
> > Bob Barrows
> > --
> > Microsoft MVP -- ASP/ASP.NET
> > Please reply to the newsgroup. The email account listed in my From
> > header is my spam trap, so I don't check it very often. You will get a
> > quicker response by posting to the newsgroup.- Hide quoted text -
> >
> > - Show quoted text -
>
> I am using the below code to populate the drop down with all the 52
> weeks.
>
>
Perhaps you want the following: