Check
if (Request.QueryString["catagory"] != null) {
label.Text = Request.QueryString["catagory"];
}
James Smith wrote:
> I am using the querystring to get information into a
page similar to
> "products.aspx?catagory=DVD". I want some
way to check for the keys
> existence before I use it. For example...
>
> if (check for existence) {
> label.Text =
Request.QueryString["catagory"];
> }
>
> How would I do that?
>
>
"Confidentiality Warning: This message and any
attachments are intended only for the use of the intended
recipient(s),
are confidential, and may be privileged. If you are not the
intended recipient, you are hereby notified that any
review, re-transmission, conversion to hard copy, copying,
circulation or other use of this message and any attachments
is
strictly prohibited. If you are not the intended recipient,
please notify the sender immediately by return email,
and delete this message and any attachments from your
system.
Virus Warning: Although the company has taken reasonable
precautions to ensure no viruses are present in this email,
the company cannot accept responsibility for any loss or
damage arising from the use of this email or
attachment."
--- List Settings ---
http://aspadvice.com/list
s/
|