asp.net中包含字符串

有时候转换标签的时候,需要输入字符中, 如:value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+w+'&borderheight='+h+'&textheight='+text_h+'"><embed src=' + roll_swf + ' wmode=opaque

得写上转换字符:如

value=/"pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+w+'&borderheight='+h+'&textheight='+text_h+'/"><embed src=' + roll_swf + ' wmode=opaque

 

tableInfo += "return '<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 width='+ w +' height='+ swf_height +'><param name=default_url value=http://www.hbw.cn/><param name=allowScriptAccess value=sameDomain><param name=movie value=' + roll_swf + '><param name=quality value=high><param name=bgcolor value='+bgcolor+'><param name=menu value=false><param name=improved_by value=http://www.hbcms.com/><param name=wmode value=opaque><param name=FlashVars value=/"pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+w+'&borderheight='+h+'&textheight='+text_h+'/"><embed src=' + roll_swf + ' wmode=opaque FlashVars=pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+w+'&borderheight='+h+'&textheight='+text_h+' menu=false bgcolor='+bgcolor+' quality=high width='+ w +' height='+ h +' allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer /></object>' 

你可能感兴趣的:(asp.net中包含字符串)