Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development

I was generating some JavaScript in the server code and found that bool.ToString() doesn't create string that JavaScript expects as boolean- .Net uses first letter as capital True/False. Then I found in my own class, that I've wrote helper function a long time ago:

public static string JSToString(bool bValue)

            {

                  return bValue.ToString().ToLower();

            }

 

Posted on Friday, January 2, 2009 1:48 PM | Back to top


Comments on this post: Function to Convert ASP.NET bool to JavaScript bool.

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net | Join free