摘要:
@{Varstr=Html.Raw(Mola.Admin.Web.Controllers.CMSController.getProperties(int.Parse(@ar.OnTop.ToString()),int.Parse(@ar.IsElite.ToString()),@ar.ImgSrc.ToString(),int.Parse(@ar.IsRedirect.ToString())));} 阅读全文
摘要:
[ValidateInput(false)]publicstringsavemessage(){this.ValidateRequest=false;content=Request.Form["AdContent"];//得到Fck的值}有很多人认为这个错误只要添加[ValidateInput(false)]就可以但是忽略了一点在根目录中的web.config中配置以下内容和[ValidateInput(false)]配合使用才有效<configuration><system.web><httpRuntimerequestValidationM 阅读全文
摘要:
路径:C:\Windows\System32\drivers\etc\ hosts 阅读全文
摘要:
Form提交时,须注意form需要添加属性enctype="multipart/form-data",否则Request.Files.Count=0,无法上传图片cshtml代码<formid="form1"name="form1"action="SavaeTopicType.aspx"method="post"enctype="multipart/form-data"></form>cs代码publicboolValidateImg(stringim 阅读全文
摘要:
@{vardata="";if(at.Type=="H"){data="热销活动";}elseif(at.Type=="B"){data="限时抢购";}elseif(at.Type=="S"){data="当季专题";}elseif(at.Type=="T"){data="动态消息";}@data;} 阅读全文