c# - FileSystemWatcher OnChanged event not updating the web page UI -
onchanged event not updating web page ui.
program control flows onchanged event , updates values of ui components not getting reflected on webpage.
public void filewatcher() { filesystemwatcher watcher = new filesystemwatcher(); watcher.path = xmldirectory; watcher.notifyfilter = notifyfilters.lastwrite; watcher.filter = "*.xml"; watcher.changed += new filesystemeventhandler(onchanged); watcher.enableraisingevents = true; } private void onchanged(object source, filesystemeventargs e) { txtstatus.text ="changed"; btncheck.enabled = false; }
Comments
Post a Comment