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.

select - Problem with html drop down list -

Image
i having problem html drop down select box. have long list of items in select box therefore goes outside of screen. doesn't shows scroll bar. please this link address issue how make drop down menu vertical scroll bar?

javascript - Changing ajax to request that fills a div with html content to be embedded into the html page itself -

i having trouble embedding ajax html html page itself, need make ajax response apparent in page source. i have 2 servers, 1 runs web application , other responsible performing search queries (searcher). application server sends html page client's browser, request search queries searcher through ajax, after successful reply browser put html result page. the problem search results not exist in html source not seo, google crawlers have no idea being searched for. the other problem if made application server make request , wait searcher results, page take tons of seconds load. i not sure do.. need make website seo friendly , need page load quickly!! any pointers or ideas appreciated. thanks lot, wa'el it's impossible ajax provided data present in "source" in case source original page requested server before client side changes. and kind of client not support javascipt, search engine crawlers, never se ajax loaded data. if need information ...

c - What is the initial value of a static/global enum variable? -

e.g. quake engines have typedef enum {qfalse, qtrue} qboolean; when 1 static qboolean variable; is variable's start-up value 0? static , global variables cleared default, if there no value assigned @ initialization. in example variable have enum's equivalent of 0 , i.e. qfalse .

How to import java project (Eclipse) -

i have tried importing .zip project through eclipse right clicking project , selecting import, navigating zip folder on desktop , there go. if this, red exclamation mark next project name, after googling found because of error build path. the .zip created bosses machine , emailed me, not in office today , placement student have pretty no idea how fix this. does have tips/ can provide me. the import correct. fixing build path errors common task after importing projects. you'll have @ build path settings project , have find out, libraries missing , dependencies unresolved. right-click on project name, --> build path --> configure build path... check projects , libraries tab, reason red exclamation mark in there. you have rid of build path errors, otherwise eclipse can't build project. either provide valid paths libraries or delete classpath entries. the should remove exclamation mark , eclipse can build project. removing classpath entries res...

python - how to create a subprocess? -

i create subprocess of process. can give me working example shows how accomplish this? start subprocess documentation. if want output: >>> import subprocess >>> output = subprocess.popen(['uname', '-a'], stdout=subprocess.pipe).communicate()[0] >>> output 'linux' if want call , not deal output: >>> subprocess.call(['echo', 'hi']) hi 0 subprocess.check_call same except throws calledprocesserror in case command called invalid parameters. a good subprocess tutorial .

Cross-platform configuration, options, settings, preferences, defaults -

i'm interested in peoples' views on how best store preferences , default settings in cross-platform applications. i work in node.js , perl on *nix , windows i'm interested in bigger picture. in *nix world "dotfiles" (and directories) common system-wide or application default settings residing in 1 path , user-specific settings in home directory. such files , dirs begin dot "." , hidden default directory listings. windows has registry has paths defaults , per-user overrides. certain cross-platform apps own way, firefox uses javascript preference files. should cross-platform app use 1 system across platforms or dotfiles on *nix , registry on windows? favourite programming language have library or module accessing them in standard way? there emerging best practice or roll own? what storing in db? cluster-friendly , has been working great us. in last job used store them in directory server. java has support in form of preferences api...

wpf - How can i serialize xaml "Brush"? -

how can or best method serialize system.windows.media.brush ? here discussion of how serialize wpf: http://statestreetgang.net/post/2008/06/xaml-serialization-ftw.aspx /// <summary> /// serializes specified object /// </summary> /// <param name="toserialize">object serialize.</param> /// <returns>the object serialized xaml</returns> private string serialize(object toserialize) { xmlwritersettings settings = new xmlwritersettings(); // might want wrap these in #if debug's settings.indent = true; settings.newlineonattributes = true; // gets rid of xml version settings.conformancelevel = conformancelevel.fragment; // buffer stringbuilder stringbuilder sb = new stringbuilder(); xmlwriter writer = xmlwriter.create(sb, settings); // need moar documentation on manager, plox msdn xamldesignerserializationmanager manager = new xamldesignerserializationmanager(writer); manager....