把.cs文件解析成XMl,在线等
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.txtPassword = new System.Windows.Forms.TextBox();
this.btnSave = new zjs.GradientButton();
this.btnReturn = new zjs.GradientButton();
this.SuspendLayout();
//
// label1
//
this.label1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
this.label1.Location = new System.Drawing.Point(3, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(116, 16);
this.label1.Text = "请输入管理员密码:";<control name="AreaQueryView" id="btnQuery" X="199" Y="6" width="37" height="64" text="查询[S1]" HotKey="" />
保存成这样的
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.txtPassword = new System.Windows.Forms.TextBox();
this.btnSave = new zjs.GradientButton();
this.btnReturn = new zjs.GradientButton();
this.SuspendLayout();
//
// label1
//
this.label1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular);
this.label1.Location = new System.Drawing.Point(3, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(116, 16);
this.label1.Text = "请输入管理员密码:";<control name="AreaQueryView" id="btnQuery" X="199" Y="6" width="37" height="64" text="查询[S1]" HotKey="" />
保存成这样的
解决方案 »
- 奇怪了,不能写入COOKIE。高分求解决办法。
- asp.net mvc3 部署后无法读取jscss文件
- cookie问题
- 初次用asp遇到的问题
- 求助大侠!
- 初学者100分请教。数据绑定,一样的代码用记事本可以实现,在VS.net2003中却不行。
- 实现关闭IE窗口的时候,自动打开或者转到另外一个网页去,请问如何实现?多谢了!
- 我现在把dataset从streamwriter写到excel上,但是只能保存在服务器端,怎么让它可以保存在客户端上?help
- listbox的遍历问题
- 如何分解?
- 关于reportviewer放在有母板页的页面中问题~
- .net 2.0 加上ajax局部更新,后来代码弹出窗口实现不了,求解。
XmlDocument xmldoc = new XmlDocument ( ) ;XmlDeclaration xmldecl;
xmldecl = xmldoc.CreateXmlDeclaration("1.0","gb2312",null);
xmldoc.AppendChild ( xmldecl);//加入一个根元素
XmlElement xmlelem = xmldoc.CreateElement( "" , "controls" , "" ) ;
xmldoc.AppendChild ( xmlelem ) ;
XmlElement control=xmldoc.CreateElement("name","名称")
control.SetAttribute("name","name值");//添加属性control.SetAttribute("id","id值");//
xmlelem.appendchild(control);
xmldoc.save(server.mappath("control.xml"));