Querystring validation

Querystring validation

am 18.01.2008 15:54:03 von EWNewbie

My apologies in advance if there is a better forum for this question.

Given the following snippet:



The problem is, the "if ( lstitem != null )" always fails (that is, lstitem
is always null), even when the value of qstring is absoultely present in the
listitems collection.

How come?




"Milosz Skalecki [MCAD]" wrote:

> if (!String.IsNullOrEmpty(Request.QueryString["pid"])
> {
> }
>
> Regards
> --
> Milosz
>
>
> "EW Newbie" wrote:
>
> > My apologies in advance if there is a better forum for this question.
> >
> > Given the following snippet:
> >
> >
>
> The problem is, the "if ( lstitem != null )" always fails (that is, lstitem
> is always null), even when the value of qstring is absoultely present in the
> listitems collection.
>
> How come?
>
>
>
>
> "Milosz Skalecki [MCAD]" wrote:
>
> > if (!String.IsNullOrEmpty(Request.QueryString["pid"])
> > {
> > }
> >
> > Regards
> > --
> > Milosz
> >
> >
> > "EW Newbie" wrote:
> >
> > > My apologies in advance if there is a better forum for this question.
> > >
> > > Given the following snippet:
> > >
> > >
>
> The problem is, the "if ( lstitem != null )" always fails (that is, lstitem
> is always null), even when the value of qstring is absoultely present in the
> listitems collection.
>
> How come?
>
>
>
>
> "Milosz Skalecki [MCAD]" wrote:
>
> > if (!String.IsNullOrEmpty(Request.QueryString["pid"])
> > {
> > }
> >
> > Regards
> > --
> > Milosz
> >
> >
> > "EW Newbie" wrote:
> >
> > > My apologies in advance if there is a better forum for this question.
> > >
> > > Given the following snippet:
> > >
> > >
> >
> > The problem is, the "if ( lstitem != null )" always fails (that is, lstitem
> > is always null), even when the value of qstring is absoultely present in the
> > listitems collection.
> >
> > How come?
> >
> >
> >
> >
> > "Milosz Skalecki [MCAD]" wrote:
> >
> > > if (!String.IsNullOrEmpty(Request.QueryString["pid"])
> > > {
> > > }
> > >
> > > Regards
> > > --
> > > Milosz
> > >
> > >
> > > "EW Newbie" wrote:
> > >
> > > > My apologies in advance if there is a better forum for this question.
> > > >
> > > > Given the following snippet:
> > > >
> > > >