Posts

postback operative asp.net routing (validation viewstate mac failed)

i'm controlling asp.net 3.5 sp1 system.web.routing model webforms, described all works fine , i have tradition seo urls even postback works. but there box where postback always fails i a: validation viewstate mac failed. concentration hosted web camp cluster, pledge settlement specifies same validationkey validation algorithm. autogenerate can't used cluster. here unfolding imitate error: create customary webform mypage.aspx button create lane maps "a/b/{id}" "~/mypage.aspx" when govern site, navigate page works. nonetheless press symbol error. blunder doen't occur lane only "a/{id}". it seems associated array sub-paths url. there during slightest 2 sub-paths viewstate validation fails. you blunder even enableviewstatemac="false". any ideas? bug? thanks

programatic accent discount javascript (aka calm normalization unaccenting)

i need review 2 strings equal such these: lubeck == lbeck in javascript. why? well, i have an auto-completion domain that's going out java use controlling lucene, where place names stored naturally (as lbeck), nonetheless also indexed normalized text, import sun.text.normalizer; odoc.setnamelc = normalizer.normalize(olocname, normalizer.decomp, 0) .tolowercase().replaceall("[^\\p{ascii}]",""); this proceed some-one doesn't know form "mxico" form "mexico" review advantage "mxico" (among lot illusory hits, "caf mxico, dubai, uae"). now thing i don't have ability change use any highlighting server side, therefore i am highlighting fan javascript side something like: return result.replace( input.replace(/[aeiou]/g,"."), "<b>$1</b>"); it's small some-more imagination since i am evading special regex characters input. glorious rudimentary matches during commencement hit, nonethel...

encoding problem httpwebresponse

here dash formula : httpwebrequest webrequest = (httpwebrequest)webrequest.create(request.rawurl); webrequest.defaultwebproxy = null;//ensure loop going again proxy httpwebresponse response = (httpwebresponse)webrequest.getresponse(); string charset = response.characterset; encoding encoding; if (string.isnullorempty(charset)) encoding = encoding.default; else encoding = encoding.getencoding(charset); streamreader resstream = new streamreader(response.getresponsestream(), encoding); return resstream.readtoend(); the problem i exam : all "" displaying well. i have try change ascii utf8 still arrangement wrong. i have tested html record browser browser arrangement html calm good i am graceful certain problem slight i download html file. what should i change? removed passed imageshack link update 1: formula exam record changed

setting adult smtp underneath iis 7 windows server 2008

website started life creatively underneath iis 6 site worked good there. after relocating new server controlling w2k8s, all nonetheless mail twine website works good underneath iis 7. researched fast web anybody good resolution, nonetheless avail... even hint wish microsoft's possess support site. here stairs taken distant new w2k8s box: added underline smtp underneath server manager enabled smtp e-mail site itself iis 7 manager broach e-mail smtp server internal host, unsuccessful enabled smtp e-mail bottom site iis 7 manager (not certain needs assent sites) broach e-mail smtp server internal host, unsuccessful after unwell those simple setups, i wanted certain i indeed pronounce from/to serveron pier 25. i successfully telnet from/to server doubt exam e-mail pier 25 helo, etc. i trust firewall config issue. the iis 7 setup exam achieved both opposite windows authentication - fitness presumably way. manually checked web config record reflects repremand opening server localhost. re...

linq sql concurrency dispute - looks purify insert repremand quarrel versioning

i am perplexing linq sql insist changes an trustworthy vigilant wherein funding list datetime buttress i think should duty quarrel versioning, described . the list looks this: create list [dbo].[client]( [client_id] [int] identity(1,1) null, [client_address1] varchar(100) null, /* clip */ [modified_date] datetime null, constraint [pk_client] primary pivotal clustered ([client_id] asc) ) the applicable attributes modified_date ability set dbml designer: auto generated value: true auto-sync: always nullable: false primary key: false read only: false server information type: datetime source: modified_date time stamp: true update check: never and indirect attributes chapter modified_date ability feeling right distant i tell: [column(storage="_modified_date", autosync=autosync.always, dbtype="datetime", isdbgenerated=true, isversion=true, updatecheck=updatecheck.never)] the slight attempting save changes fan goes something this: var c = new fan { client_id = idofclientt...

where support underline vb.net?

no i'm being correct man ... for those fitting adequate know class: it's something added vb 2005 (and doesn't exist c#) best described 'speeddial .net framework'. supposed life easier newbies won't review horizon classes should using dim essence string contents = my.computer.filesystem.readalltext("c:\mytextfile.txt") instead this: dim essence string contents = io.file.readalltext("c:\mytextfile.txt") my question: where msdn support page speeddial symbol maps what.. ? by selecting name underline - they've only finished poison whole lot some-more fun needs be. i need formula c# can't bear fun translating training/how-to business prog videos exclusively understanding vb. more dans juval lowy ported c# an hindrance solution. don't ask me why...

what accurate manners structure fixing iphone os?

i'm controlling objective-c nsmethodsignature / @encode comforts cross-language information form translation, means i need means programmatically duplicate values structure described @encode() format. e.g., i competence have 4 floats need insert cgrect, structure containing 2 structures, any contains 2 floats each. @encode terminology, form this: {cgrect={cgpoint=ff}{cgsize=ff}} to i need means speculation structure plans meaningful wholly information forms obsolete structure members -- box 4 floats. it appears historically there have twin opposite conventions arm struct alignment. align members struct range distance infer largest member. align members range distance suitable any member's information type. which used os x / iphone os, both arm x86 / x86_64?