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.

html - Difference between button and input? -

possible duplicate: <button> vs. <input type=“button” />. use? are there major differences between <button type="button" name="thebutton">submit</button> , <input type="submit" value="submit" name="thebutton" /> also, can use <button type="submit" name="thebutton">submit</button> ? here's page describing differences (basically can put html <button></button> and other page describing why people avoid <button></button> (hint: ie6) reference: <button> vs. <input type="button" />. use? also have @ slideshow button .

architecture - WCF service, how to mapp the objects runtime -

i have design wcf service gives outut in standard model(which think better give string/xml).but standard model is/may subjected change format.so every time changed need change code.my service should accomadte same configurable change. how without code change , exernal configurable entities. is there way create , mapp class in runtime. my primary idea keep format internally , xml standard format , mapp class properties , xml nodes using database table. please suggest ....appreciate gurus !!! thanks in advance i don't understand question, perhaps elaborate upon it, perhaps simplified code? however, if need map between xml formats, have considered xsl transform?

alarm - how to automatically invoke my application in android -

i want automatically invoke application @ 12.00 am,this kind of process ,how implement in android,is possible? look @ alarmmanager . here example: intent myintent = new intent(getapplicationcontext(), youractivity.class); pendingintent pendingintent = pendingintent.getactivity(getapplicationcontext(), 1, myintent, pendingintent.flag_update_current); alarmmanager alarmmanager = (alarmmanager)getsystemservice(alarm_service); alarmmanager.set(alarmmanager.rtc_wakeup, time, pendingintent);

javascript - Problem in loading a document in the same page using href="" in Jquery-mobile -

i have list view. in which, every list item document(.pdf, .xls , .doc etc.). after clicking list item, need open document in same page. used anchor tag without target="_blank". not working. using target attribute, works fine , opens in new tab. need in same tab. here code used. $('div').live('pageshow',function(event, ui){ var parent = document.getelementbyid('listview'); var listitem = document.createelement('li'); listitem.setattribute('id','listitem'); listitem.innerhtml = "<a href='testdoc.doc' >my word document</a>"; parent.appendchild(listitem); var listitem = document.createelement('li'); listitem.setattribute('id','listitem'); listitem.innerhtml = "<a href='contacts.pdf' >my pdf document</a>"; parent.appendchild(listitem);

c++ - How to exchange data between classes? -

i'm learning c++ , moving project c c++. in process, stumbled on problem: how save/update variables in use in several classes? in c used global variables, not c++. so, let's assume have 4 classes: class main_window { //... void load_data_menu_selected(); } class data { //... double *data; } class load_data { //... double *get_filename_and_load(); } class calculate { //... int do_calculation() } so, main_window class application's main window interacts user input etc. want do: create instance of class data in main_window use load_data loading data file , store in data use calculation class doing read data in data class the question is: should create classes, make data class members available other classes. should use inheritance? start observing possible relations between instances of 2 classes. let a instance of class , b instance of class b. if a uses b , class can have member instance of class b ( b ), pointer

Vim and snipMate (plugin) - adding new snippet won't work -

i trying create new snippet snipmate plugin. i work files called (i.e.) myfile.endfile all .endfile files should have same "snippet" .html files. did cp html.snippet endfile.snippet in ~/.vim/snippets directory. snipmate working present snippets, not new created one. suggestions problem? (btw: after creating new .snippet file, ran :helptags ~/.vim/doc command in vim instance.) it because snipmate works filetype , vim option set when opening file of particular type. for exemple, if opening, "index.html" filetype automatically set html . to see how works, : :e $vimruntime/filetype.vim as preliminary test, can : 1. open test.endfile 2. type :set ft=endfile or :set filetype=endfile 3. check if defined snippets work to automatically add following in .vimrc : au bufnewfile,bufread *.endfile set filetype=endfile it means every time read or create new file ending in endfile the filetype option set endfile. (the filetype arbit