yinwenle

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年7月27日

摘要: 前台代码:View Code <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title></title> <style type="text/css" > body div{ text-align:center} </style></head><body> <form id="form1" runat="server& 阅读全文
posted @ 2011-07-27 16:46 yinwenle 阅读(197) 评论(1) 推荐(0) 编辑

摘要: 在web请求的时候我们很多时候需要用到页面传值,但是有时候没有注意就会发生异常。例如有一个页面的地址为:../index.aspx它的后台文件里面有处理传值的语句:if (Request.QueryString["TypeID"] == null || Request.QueryString["TypeID"].ToString() =="")当你的地址../index.aspx?TypeID=1的时候不会发生异常 可以正常运行但是当你的地址为:../index.aspx的时候 你后台处理传值的语句为 if (Request.Quer 阅读全文
posted @ 2011-07-27 12:10 yinwenle 阅读(4424) 评论(11) 推荐(4) 编辑