Pawan wrote:
> Can anyone please suggest me on this.
> I am using var variable to get a string.Its working fine if string is
> of simple type.
> But giving error after entering 'Enter' or 'special charcters' in the
> string.
> Is it a limitation to var variable?
You're not using a var to "get" the string, you're just storing it
(after you've got it) into a variable. The important thing here is how
you're getting the variable. You could be receiving it via a JSON or XML
file, you could be capturing the keys, reading it from a form input.
There are many ways you could be "get"ting the string, and it's these
methods that are important in determining your problem. Explain how
you're getting it, and post the relevant bit of code and you'll be more
easily helped