李晓亮的博客

导航

随笔分类 -  Asp.net(C#)原创

一些Asp.net的学习经验
【原】asp.net1.1中使用jquery调用后台webservice文件
摘要:1.首先在Web.Config中<system.web>内添加如下语句,否则会提示“请求格式无法识别” <webServices> <protocols> <add name="HttpPost" /> <add name="HttpGet" /> </protocols> </webServic... 阅读全文

posted @ 2010-06-08 19:17 LeeXiaoLiang 阅读(344) 评论(0) 推荐(0)

用户控件的后台代码关联使用CodeBehind还是CodeFile
摘要:在vs2005做asp.net的用户控件的时候,vs自动生成的第一行文字是 阅读全文

posted @ 2008-11-09 20:16 LeeXiaoLiang 阅读(268) 评论(0) 推荐(0)

asp.net由vs2003转到vs2005的注意事项
摘要:1.转换前,新建一个虚拟目录,指向要转换的vs2003 web项目 2.如果程序中使用了Request.Form["__EVENTTARGET"].ToString().Split(new char[]{':'})则要将“:”改为“$” 即Request.Form["__EVENTTARGET"].ToString().Split(new char[]{'$'}) 3.在VS2005里面一般要用D... 阅读全文

posted @ 2008-09-22 17:49 LeeXiaoLiang 阅读(376) 评论(0) 推荐(0)

C#使用带参数的存储过程
摘要:SqlConnection conn=new SqlConnection("server=.;uid=sa;pwd=sa;database=yourdatabase") SqlCommand cmd=new SqlCommand("libsearch",conn); cmd.CommandType = CommandType.StoredProcedure;//指示libsearch为存储过程... 阅读全文

posted @ 2008-06-26 19:36 LeeXiaoLiang 阅读(1321) 评论(0) 推荐(0)