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)"
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)"