then you shouldn't use Literal, and also you shouldn't use inline server side code, it is a bad style. Use a Literal/PlaceHolder to where you want to output, write the code in code behind, set Literal's Text or add to PlaceHolder.Controls
调试欢乐多
Literal1.Text=HttpUtility.HtmlEncode(YourString)