简体   繁体   中英

How To Update XML File On Radio button Click (Client Side) C# Web Application

i have created xml file with the code shown below,

  XElement xml = new XElement("Configuration",
                new XElement("Config",
                new XElement("Link", Link.Text),
                new XElement("CostPerUnit", txtCommission.Text),
                new XElement("Ischart", Ischart)
                )
                );
                xml.Save(@"c:\ConfigurationFile.xml");

i want to update its Ischart value it is of string type and gets only true and false value when i click power radio button it update this xml file and change only Ischart =true or when i click Cost radio button it update this xml file and change only Ischart =false i want to do it on client side Hopes for your Suggestions..

您需要使用AJAX从客户端到服务器进行通信。请检查http://api.jquery.com/jQuery.ajax/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM