07 2020 档案
摘要:==安装SqlServer 时,系统会自动建立几个数据库,其中northwind是一个用户数据库的示例,但是northwind数据库对较新版本的SqlServer的支持不是太友好,那如何在新版本的SqlServer中安装northwind呢?== 1、https://pan.baidu.com/s/
阅读全文
摘要:如何实现图片上传? 前台代码 添加控件-FileUpload和Image 后台代码 if (this.FileUpload1.HasFile) { //获取上传图片的名称 picname = FileUpload1.FileName; //判读上传的是不是图片 if (picname.EndsWit
阅读全文
摘要:如何在前台同步实现禁用和启用? 前台代码 <asp:TemplateField HeaderText="操作"> <ItemTemplate> <asp:Button ID="Button1" runat="server" Text="删除" OnClick="Button1_Click" OnCl
阅读全文
摘要:在GridView中添加下拉框来更新数据? 前台代码 <asp:TemplateField HeaderText="物品名称"> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%#Eval("GoodName") %>'></
阅读全文
摘要:如何在GridView控件中实现光棒效果? 在GridView1_RowDataBound事件中添加如下代码: if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "before
阅读全文

浙公网安备 33010602011771号