2012年5月11日

网上购物系统(Task011)——FormView插入删除商品详细信息

摘要: 源代码:13033480群共享一、进入插入模板1、protectedvoid fvwItemDetails_ModeChanging(object sender,FormViewModeEventArgs e)函数中添加代码:case FormViewMode.Insert: this.fvwItemDetails.ChangeMode(FormViewMode.Insert); break;2、此时,可进入插入模板,不过,不显示任何信息,也不能够获得下拉列表框的句柄,须添加PreRender()消息响应函数,在这个消息响应函数中添加填充下拉列表框的代码:protected void fvwI 阅读全文

posted @ 2012-05-11 23:57 WestGarden 阅读(218) 评论(0) 推荐(0) 编辑

网上购物系统(Task010)——FormView编辑更新商品详细信息

摘要: 源代码:13033480群共享一、前期准备编辑商品信息属于管理功能,管理功能的网页最好单独放在一个文件夹中,为此,做一些准备工作:1、修改母版页中的路径为绝对路径2、复制Controls中的ItemDetailsControl.ascx,改名为ItemManageControl.ascx3、在ItemManageControl.ascx中的FormView的ItemPlate模板中添加三个LinkButton按钮,编辑、新建、删除。设置一下单元格右对齐,会美观一点。4、临时在ItemDetails.aspx中添加代码:Response.Redirect("Manager/ItemMa 阅读全文

posted @ 2012-05-11 20:36 WestGarden 阅读(179) 评论(0) 推荐(0) 编辑

Request 获取网址各片段

摘要: 示例网址:http://localhost:1897/News/Press/Content.aspx/123?id=1Request.ApplicationPath/Request.PhysicalPathD:\Projects\Solution\web\News\Press\Content.aspxSystem.IO.Path.GetDirectoryName(Request.PhysicalPath)D:\Projects\Solution\web\News\PressRequest.PhysicalApplicationPathD:\Projects\Solution\web\Syste 阅读全文

posted @ 2012-05-11 07:55 WestGarden 阅读(252) 评论(0) 推荐(0) 编辑

导航