backgroundworker - how to check string value and refresh the page in asp.net -
i have static string in static class, getting value desktop application,
on asp.net have check null or have value, if has value , want to
show on label (on aspx page) , have put backgroud worker in global.asax,
public static backgroundworker worker = new backgroundworker(); public static int id = 0; // public static list<person> personlist = new list<person>(); public static string personlist; public static bool stopworker = false; void application_start(object sender, eventargs e) { worker.dowork += new doworkeventhandler(dowork); worker.workerreportsprogress = true; worker.workersupportscancellation = true; worker.runworkercompleted += new runworkercompletedeventhandler(workercompleted); // calling dowork method asynchronously worker.runworkerasync(); private static void dowork(object sender, doworkeventargs e) { //foreach (person p in personlist) //{ personlist = class1.getdatafromdesktop; //} }
its checking value time time, unable show response on label on aspx page , do, there other process or can using global.asax
Comments
Post a Comment