p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_databases thread: SV: problems with passing a name containing & character


Message #1 by "Niklas Nilsson" <niklas.nilsson@f...> on Fri, 14 Jun 2002 15:19:22 +0200
Run a Server.URLEncode on CustomerName before adding it to the 
querystring, that should do the trick :)

----- Original Message -----
From: Petr Novotny <pn@b...>
To: ASP Databases <asp_databases@p...>
Sent: Friday, June 14, 2002 1:51 PM
Subject: [asp_databases] problems with passing a name containing & 
character


> Hi,
>
> I've encountered a problem and don't know how to go about it.
>
> I'm passing following string ....
> &CustName=3D<%=3DListCustomer("CustomerName")%>">Add Service</a>
>
> The problem is that the customer's name contain & .. AT&T .
>
> Can you tell me what I need to do to pass it correctly?
>
> Thanks
>
> Petr
>
>
> > -----Original Message-----
> > From: Colin.Montgomery@C...
> > [mailto:Colin.Montgomery@C...]
> > Sent: Friday, June 14, 2002 12:49 PM
> > To: ASP Databases
> > Subject: [asp_databases] RE: popluate list box with values from a
> > database
> >
> >
> > you should use ASP to populate a JavaScript array containing
> > the values and
> > text for the list box.  Then you need to write your onClick handler 
in
> > JavaScript to fill the list box with these values.
> >
> > HTH,
> > Col
> >
> > -----Original Message-----
> > From: shawn mccabe [mailto:shawn_mccabe@c...]
> > Sent: 13 June 2002 23:29
> > To: ASP Databases
> > Subject: [asp_databases] popluate list box with values from a 
database
> >
> >
> > How can I popluate a list box with values from a database on
> > a onclick
> > event.
> > I can poplate the list box when the asp page loads but not on
> > the onclick
> > event why and how do I accomplish this task.
> >
> >
> > *******
> >
> > This message and any attachment are confidential and may be
> > privileged or otherwise protected from disclosure.  If you
> > are not the intended recipient, please telephone or email the
> > sender and delete this message and any attachment from your
> > system.  If you are not the intended recipient you must not
> > copy this message or attachment or disclose the contents to
> > any other person.
> >
> > For further information about Clifford Chance please see our
> > website at http://www.cliffordchance.com or refer to any
> > Clifford Chance office.
> >
> >
>


  Return to Index