Posts

iis - How to resolve typename not found in ASP.NET web application -

i developing web application using asp.net 4.0 company intranet. application began web site application , used iis 7.5 'convert application'. moved class module folder named old_app_code , when try run application, can not find typename have referenced in objectdatasource parameter. question "how should resolve problem?". ok try reference code in old_app_code folder, or there way of doing this. code in vb, not makes difference. ide microsoft visual web developer 2010 express. app_code should main folder should have logical code. check this why having ambiguous type error when calling webmethod on asp.net web application?

LiveCycle javascript validation -

i have case: there numeric field, must filled 10 numbered id of user. need have autamatic check of existance of id. formula is: [(p1 * 2) + (p2 * 4) + (p3 * 8) + (p4 * 5) + (p5) * 10) + (p6) * 9) + (p7 * 7) + (p8) * 3) + (p9 * 6)] % 11 = p10 p1 first digit, p2 second etc. i new in javascript, thankfull help. here i've tried: if ((((this.position(1) * 2) + (this.position(2) * 4) + (this.position(3) * 8) + (this.position(4) * 5) + (this.position(5) * 10) + (this.position(6) * 9) + (this.position(7) * 7) + (this.position(8) * 3) + (this.position(9) * 6)) % 11) == this.position(10)) { } else { xfa.host.messagebox("wrong id", "error!", 1, 0); } something work: var s = this.rawvalue; var prod = s.substr(0,1)*2 + s.substr(1,1)*4 + s.substr(2,1)*8 +... if (prod%11 == s.substr(9,1)){ //do whatever } else { //do whatever else } remember substr() function starts @ 0 instead of 1, , second 1 makes sure take 1 character.

SqlLiteDatabaseLockedException in android database helper class -

i've helper class manages database queries throughout application. singleton class , getinstance() method. public static masterdatabase getinstance() { if (_masterdb == null) { _masterdb = new masterdatabase(); } return _masterdb; } though i've taken care 1 instance of class created, sqllitedatabaselockedexception message database locked. thought of implementing double-checked locking technique appears may brake in multicore environments. so, best implementation ensure exception wont repeat in application. note: other transaction methods(insert,delete,..) not synchronised. question2 : making transaction methods synchronised good? if using android-s databasehelper database may opened databasehelper. try this private static databasehelper _mydatabasehelper = null; public static masterdatabase getinstance() { if (_mydatabasehelper == null) { _mydatabasehelper = new mydatabasehelper(); } return _mydatabasehelper...

How to set a background image in rails from css? -

i using rails 3.2 , have set background 1 of page , have tried many ways , nothing went right, looking help. have tried background: url(<%= asset_path 'background.jpg' %>) background: url("public/background.jpg"); background-image:url('/assets/images/background.jpg') and nothing worked. please me. in css: background-image: url(background.jpg); or background-image: url(/assets/background.jpg); in environments/production.rb : # disable rails's static asset server (apache or nginx this) config.serve_static_assets = false # compress javascripts , css config.assets.compress = true # don't fallback assets pipeline if precompiled asset missed config.assets.compile = false # generate digests assets urls config.assets.digest = true

ajax - Tapestry 5 - POST to endpoint on component and get back JSON in one scenario or do redirects in other scenarios -

i adding new requirement legacy tapestry login component show popup if error condition happens on login, without doing page reload. currently login component uses standard tapestry form submission - i.e. login creds posted server on form submission, login processing done, , based on result tapestry appropriate redirect returning either page class, or page object injected @injectpage has had setup done on - standard tapestry stuff really. i need leave current logic - i.e. keep tapestry doing redirects currently, need following extras: the post request must done via ajax the result if meet new error condition must plain json, client knows display popup. the login endpoint must able called other browser-based clients know nothing tapestry , vice-versa tapestry. tapestry redirects should work (if possible - how baked server , client-side framework redirects?) sending down of plain json. i think (1) , (2) pretty straightforward achieve using tapestry zones, struggling see h...

How Can I only open a MS Access Form without Access running in the background? -

i have made form on access used other employees within company, have never used access before , wanting access form feel access , tools in background confuse them, plus don't want them editing data base self. is there way bring form, unless need edit date base. i've done research on google , seems need use: sw_showminnoactive however can not seem find how use or where? and if did find way bring form, how able switch veiw veiw edit in? can please help.

android - Reflect Settings change in View on update -

in android app, use sharedpreferences let user manage settings. after user changes setting, , returning app settings page, want views (fragments) use latest values sharedpreferences. the changes include reloading custom view use color scheme or remove filtering list view. currently when app restarted, required changes applied. convinced there way solve problem, unable figure out. assume supporting android 2.2 , above, newer apis may not used unless present inside support library. not sure question seems me when user changes setting , hits button return fragment not seeing changes? if case because when user goes android reinstates version of fragment on stack (the 1 before changes made). suggestion try moving loading of new shared prefs onresume method fragment. way should loaded when user goes back. try this @override public void onresume(){ super.onresume(); setcontentview(r.layout.currentfrag); } this should reload page correct changes.