Commerce Server General - how to stop HTML character conversion in the codebehind

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > March 2004 > how to stop HTML character conversion in the codebehind





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to stop HTML character conversion in the codebehind
Lance

2004-03-01, 7:36 am

Hi,
When I programattically add javascript to an HTML element using the
codebehind, any ampersands get converted to HTML character codes which ruins
some logic elements. eg

THIS
tb.Attributes.Add("onkeydown", @"if ((event.which && event.which == 13)...

TURNS INTO
tb.Attributes.Add("onkeydown", @"if ((event.which && event.which ==
13)...

How can I stop this from happening? Is there some sort of switch to use?

Thanks,
Lance



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com