[英]How to adjust client side timeout in a C# windows form application app.config file, calling web service as a web reference
[英]How To Update XML File On Radio button Click (Client Side) C# Web Application
我已經用以下代碼創建了xml文件,
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");
我想更新其Ischart值,它是字符串類型,並且當我單擊電源單選按鈕時它只更新true和false值,它更新此xml文件並僅更改Ischart = true,或者當我單擊Cost單選按鈕時,它更新此xml文件並更改只有Ischart = false,我想在客戶端執行此操作希望您的建議..
您需要使用AJAX從客戶端到服務器進行通信。請檢查http://api.jquery.com/jQuery.ajax/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.