Posts

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.

c# - signal sent when stream is closed -

i have client-server app , observed (in local environment i.e. lan ) when close stream connects client server @ 1 end, @ other end observable ( i.e. if in client close stream connects client server, @ other end, @ server, noticeable , reported exception in try-catch block surrounds server-stream code ) . how possible ? client/server send specific code stream closed before closing stream ? applicable in wider networks ( big wans ) ? the bigger question when close stream @ 1 end, can rely on fact @ other end noticed , in consequence close thread , not wait endless recieve data never come due fact that stream closed ? the maximum distance between client , server 700 km ( don't know if plays role mentioned in case ) thanks ! in tcp, connection shutdown procedure involves sending additional datagrams other side, each side notice connection orderly shut down. relying on has 1 major pitfall: in case of unorderly shutdown (e.g. physical disconnect of network cable)...

spring mvc - #springFormInput Sytex problem -

#springforminput("userform.password" 'type="password"') not working; is correct? use #springformpasswordinput("userform.password" "") ( list of macros )

asp.net - What is the best invisible character can I use to replace  ? -

i use telerik report print report. i need use telerik.reporting.textbox print labels. some labels stock in .txt files, " apple". when see label spaces, means have indent in report, in textbox. the thing when export report in pdf, have indentation, not when see in browser. if replace spaces "& nbsp;", see indentation in browser, when exporting pdf, see "& nbsp;". one way use htmltextbox, both browser , export works fine, have other constraints says must keep textbox. my idea replace spaces blank character, invisble one, alt+0160, there lot of choice, , want 1 work in browser, export (tiff, pdf, excel...). is have clue choice ? you use unicode code point u+00a0 (non-breaking space), entity   represents. how should encoded in document depends on character set in use.

facebook - Android Social Stack -

i wanna create application interact social networks twitter , facebook. feeds , display on screen. there api can use ? yes,there need use api both ,please refer link more https://github.com/facebook/facebook-android-sdk http://www.vogella.de/blog/2010/02/15/twitter-android/ http://www.androidpeople.com/android-post-status-to-twitter-using-jtwitter-example/ i hope may while..

JQuery/Javascript - Search DOM for text and insert HTML -

how search dom string in document's text (say, "cheese") insert html after string (say, "< b >is fantastic< /b >"). i have tried following: for (var tag in document.innerhtml) { if (tag.matches(/cheese/) != undefined) { document.innerhtml.append(<b>is fantastic</b> } } (the above more of illustration of have tried, not actual code. expect syntax horribly wrong please excuse errors, not problem). cheers, pete there native methods finding text inside document: msie: textrange.findtext() others: window.find() manipulate given textrange if found. methods should provide more performance traversing of whole document. example: <html> <head> <script> function fx(a,b) { if(window.find) { while(window.find(a)) { var node=document.createelement('b'); node.appendchild(document.createtextnode(b)); var rng=window.getselectio...

c# - UDP hole-punching: testability on single machine -

i'm writing simple p2p application test feasibilty of using udp hole-punching in larger project. i tried test apps home yesterday , worked. however, @ work , same code no longer job. sender sending appropriate port on external ip address of our router here, receiver isn't getting of them. prior calling udpclient.receive() , receiving app sends packet ip:port listening on. again, works on home setup, not here. outcome same regardless of whether windows firewall on or off, that's not issue. could routers handling situation differently? edit1: both apps run on same machine. in answer own question: the routers indeed exhibiting different behavior. my home router hooked laptop. assume why when send out udp packet port n leaves router on port n . however, work network consists of several computers , router randomizes port on end, means packet sent port y leave router on port x . i have gotten home , work machines communicate through nat without us...

.net - does microsoft have its own external grid controls? -

except available in visual studio, there official external microsoft's grid controls? example, telerik has controls .net. microsoft have similar ones? edit: it's webforms... thanks, ilija the controls reference (like telerik) made used inside of vs .net. since microsoft built .net (and vs) had no reasons make 'external' controls. if around places codeplex , sourceforge can find 'external' grids, of them not offically supported microsoft controls.