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.

iphone - Save current data from UITableView -

trying figure out how data storage uitableviews ment work. practices when saving uitableview data on e.g. viewdiddisappear. do have update array every changes made while working in view, or can collect current values form table on exit view? can point me in right direction? thanks! first, on when save data, suggest save data in method instead of viewdiddisappear:. - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { second, there bunch of ways store data in iphone applications, such plist or sqlite3 database.

VB6 Manifest not working on Windows 7 -

i have created manifest file vb6 application running on windows 7 (not visual style changes, make sure accesses common registry , not virtualised one) the exe name capadm40.exe, manifest named capadm40.exe.manifest , contains following: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0"> <assemblyidentity version="1.0.0.0" processorarchitecture="x86" name="companyname.capadm40" type="win32"/> <description>administers system</description> <!-- identify application security requirements. --> <trustinfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedprivileges> <requestedexecutionlevel level="asinvoker" uiaccess="false"/> </requestedprivileg...

html - How to make a site's content stick in the middle? -

in html, how make site ~60-80% of screen wide, , if window bigger centers, otherwise there's scroll bar? i'm talking way content here @ stackoverflow. i tried this, failed: <html> <head> <style type="text/css"> </style> </head> <body> <center> <div style="width: 60em; align: center;">kdsjlglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgkhlglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgklglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgklglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgklglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgklglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgklglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgklglkdfjgolksdjflgojsdfsdoljfglsdfghsdkjfgkdhfgkkjdghkdsfjgksdjfhg</div> </center> </body> </html> here's 1 follow: <body> <div class="wrapper"> content </div> </body> and in css, body{text-align:center...

how to send ajax request in jQuery with data encoded -

when send ajax request got error that $.ajax({ type: "post", url: furl2, cache: false, contenttype: "application/json;charset=utf-8", data: { id: id, url: $("#id" + id + " .customurl").val() }, success: function (msg) { //some code here }, }); } i got error id undefined put them. how can send ajax request server using ajax. // create empty object var data = {}; // create , populate nodes in object data.id = id; data.url = //what ever wanted $.ajax({ type: "post", url: furl2, cache: false, datatype: "json", data: data, // send object server post data success: function (result) { // try , grab node in json object console.lo...

java - why does the method invoke() in InvocationHandler have an parameter Object proxy? -

when r checking out method invoke(object proxy, method method, object[] args) declaration & doc statement,you find input parameter proxy proxy - proxy instance method invoked on when doing test on java dynamic proxy,i find proxy produced vm.so want know why method invoke has param,which surely nothing except object ($proxy0 )but don't have actual action our usage? this useful if have single invocation handle multiple proxy objects. can use hash map store proxy states information. example - mokito test framework store proxy invocation history.

jpa 2.0 - JPA 2 Criteria API - Exception converting JPQL to Criteria API query with Eclipselink -

i'm having trouble converting jpa query use criteria api i have following query attempts find serviceuser matching passed address parameter. serviceuser abstract entity concrete subclasses child , adult. i'm using joined inheritance strategy on serviceuser class. everything works fine when call method. public set<t> findbyaddress(address address) { query query = manager.createquery("select distinct s serviceuser s join s.addresshistory h h = :address"); query.setparameter("address", address); hashset<t> result = new hashset<t>(); (object s : query.getresultlist()) { // tclass runtime type of generic session bean. if (this.tclass.isinstance(s)) { result.add((t) s); } } return result; } but, if try replace function following uses generated metamodel , typedquery getting exception public set<t> findbyaddress(address address) { criteriabuilder cb = manag...

javascript - help me wrap up a slider into a function I can call -

a while ago posted question jquery slider here this works treat need wrap in function each day of week can pass in values of values hard coded. i've tried doing , firebugs telling me slider undefined. all want call function 7 times each day of week , pass in id slider, id div holds times, id div holds generated table, id table , id button. the current code this: var starttime; var endtime; $("#slider-range").slider({ range: true, min: 0, max: 1439, values: [540, 1020], step:5, slide: slidetime, /*change: */}); function slidetime(event, ui){ var minutes0 = parseint($("#slider-range").slider("values", 0) % 60); var hours0 = parseint($("#slider-range").slider("values", 0) / 60 % 24); var minutes1 = parseint($("#slider-range").slider("values", 1) % 60); var hours1 = parseint($("#slider-range").slider("values", 1) / 60 % 24); starttime = gettime(hours0, minutes0...