AJAX
ScriptManager Class has a
IsDebuggingEnabled property, that is available in server code. I want in my client Javascript function to determine, do I running debug or release mode.
You can create a hidden field to the page, then, check the
IsDebuggingEnabled property of ScriptManager
, if it is true, set the value of the hidden field to "true", else, false.
Thank you!
Sincerely,
Jin-Yu Yin
Microsoft Online Community Support
MNF
Member
261 Points
73 Posts
How to detect Debug mode in JavaScript?
Feb 11, 2008 07:43 PM|LINK
AJAX ScriptManager Class has a IsDebuggingEnabled property, that is available in server code. I want in my client Javascript function to determine, do I running debug or release mode.
How can I do this?
My Blog: http://geekswithblogs.net/mnf/
Jin-Yu Yin -...
All-Star
21280 Points
1824 Posts
Re: How to detect Debug mode in JavaScript?
Feb 13, 2008 08:41 AM|LINK
Hi,
Thank you for your post!
You can create a hidden field to the page, then, check the IsDebuggingEnabled property of ScriptManager , if it is true, set the value of the hidden field to "true", else, false.
Thank you!
Jin-Yu Yin
Microsoft Online Community Support