引言: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionSt...
摘要:有助于深入理解webconfig<?xml version="1.0" encoding="utf-8" ?><configuration> <appsettings> <add key="connectionstring" value="user id=sa;initial catal......
摘要:使用asp.net web服务代理的url行为属性郑佐 2005-4-6 在vs.net里调用asp.net web service的时候,默认生成的代理类的url行为是使用静态值,如果web 服务进行转移,那就有可能会出现不能访问的情况,需要对web服务重新引用生成新的代理类,这对程序部署带来许多不便,解决办法就是设置url行为使用动态值,对于许多人没有去关注所以可能都不知道有这一项功能,包括我......
asp.net datagrid实现多层表头
上一页 ... /// </summary> public class dayenter : system.web.ui.page { protected system.web.ui.webcontrols.calendar calendar1; protected system.web.ui.webcontrols.button updatebutton; protected system.web.ui.webcontrols.datagrid datatable; protected system.web.ui.webcontrols.button addlinebutton; private void page_load(object sender, system.eventargs e) { if(this.initreaddatapopedom()) { if(!this.ispostback) { this.calendar1.selecteddate=datetime.today; } this.initdata(); } else { this.response.clear(); this.response.write("您没有权限!"); this.response.end(); return; } if(this.initwritedatapopedom()) { this.addlinebutton.visible=true; this.updatebutton.visible=true; } else { this.addlinebutton.visible=false; this.updatebutton.visible=false; } } private bool initwritedatapopedom() { arraylist depts=new arraylist(); xmldocument xmldocument=new xmldocument(); xmlnodereader xmlreader=null; try { xmldocument.load(server.mappath("..").tostring()+@"\popedom.xml"); xmlreader=new xmlnodereader(xmldocument.childnodes[1].childnodes[11]); while(xmlreader.read()) { if(xmlreader.nodetype.equals(xmlnodetype.element)) { if(xmlreader.name.tostring().equals("write")) { while(xmlreader.read()) { if(!xmlreader.name.equals("user")) { &...
下一页 摘要:因为最近要做的项目中,我要通过xml动态生成窗体,看了ui图样,我有些叫苦:我通过xml动态生成窗体,可是主窗体中ui要用图标来确定要使用的窗体,怎么才能使主窗体的图标也是动态加载而且图标和要生成的窗体还有关联呢?我又想到用xml,查msdn,看到只有xmltextwriter和xmltextreader里分别有xmltextwriter.writebase64和xmltextreader.rea......