problem in template columns...

P

Prashant Joshi

Hi everybody,
check the following piece of code....

<a href='x' onclick="ClientName_Click('<%#
DataBinder.Eval(Container.DataItem, "BILLING_CLIENT_ID") %>','<%#
DataBinder.Eval(Container.DataItem, "BILLING_CLIENT_NM") %>');return
false;" ID="A1" class="clsStandardLink">
<%# DataBinder.Eval(Container.DataItem, "BILLING_CLIENT_NM")
%>
</a>

we are using a template column and on clicking it, the function
ClientName_Click() is called. now the problem is that sometimes the
client name can contain a single apostrophe. Ex : Xyz's Client.
this leads to an error (Page cannot be found) because we are using a
single apostrophe to demarcate the paramerters passed to our function
ClientName_Click().
how to deal witht his situation since we can have client names which
are containing apostophes???
Thanks,
Prashant

If possible, send a cc of your answers to :
"(e-mail address removed)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top