Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

backgroundworker - C#: Why is my background worker thread signaling done when it isn't? -


c#, using vs2010 , i've got makes no sense.

at startup program needs load several hundred k text files. after ensuring loading code working fine threw in background thread. long run within ide everything's fine when it's run standalone thread says it's done when isn't. of course goes boom.

the trigger code:

backgroundworker background = new backgroundworker(); background.runworkercompleted += new runworkercompletedeventhandler(databaseloaded); background.dowork += new doworkeventhandler(delegate { database.load(); }); background.runworkerasync(); 

and stuff that's going boom in databaseloaded().

i put messageboxes trace what's going on: first , last lines of load() method , first line of databaseloaded().

in ide triggers expect: load() beginning, load() done, databaseloaded(). however, when run standalone load() beginning, databaseloaded() , unhandled exception box (the loader hasn't gotten build empty tables, let alone fill them.)

am nuts or microsoft?

runworkercompleted invoked in case of error (such unhandled exception in database.load()). check error property of runworkercompletedeventargs.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -