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.

security - WCF: The message could not be processed: -

i have created wcf service hosting application under site on iis7. running on 1 server , trying make run on second server. when call service following error: the message not processed. because action \u0027http://tempuri.org/imyservice/mymethod\u0027 incorrect or because message contains invalid or expired security context token or because there mismatch between bindings. i have set security in wshttpbinding none , in naive mind conclude not security problem. what might wrong , how should proceed determine exact problem is? maybe have same channel uri. change second server. can't use same uri boths.

iphone - Move UIView with relation to touch -

i'm trying move uiview relation user's touches. here's have @ moment: int oldx, oldy; bool dragging; - (void)touchesbegan:(nsset *)touches withevent:(uievent *)event { uitouch *touch = [[event alltouches] anyobject]; cgpoint touchlocation = [touch locationinview:self.view]; if (cgrectcontainspoint(window.frame, touchlocation)) { dragging = yes; oldx = touchlocation.x; oldy = touchlocation.y; } } - (void)touchesmoved:(nsset *)touches withevent:(uievent *)event { uitouch *touch = [[event alltouches] anyobject]; cgpoint touchlocation = [touch locationinview:self.view]; if (cgrectcontainspoint(window.frame, touchlocation) && dragging) { cgrect frame; frame.origin.x = (window.frame.origin.x + touchlocation.x - oldx); frame.origin.y = (window.frame.origin.y + touchlocation.y - oldy); window.frame = frame; } } - (void)touchesended:(nsset *)touches withevent:(uievent *)e...

msbuild - What are the options to build an installer on a build-server without Visual Studio -

it seems it's still not possible build .vdproj on build-server without having visual studio installed. however, using wix seems lot more complicated. are there other options following task: visual studio 2010 solution multiple projects ( .csproj ) many loose content files (not inside assemblies) installer must built on build-server without visual studio on ( devenv.exe / devenv.com ) installer must create registry keys installer must associate file extensions installed product installer must support upgrades (version upgrades) installer should able register com components installer should able pre-jit assemblies my goal is: effort maintain installer low minimal changes if new project (assembly) added solution ideal: no changes if new content files added of projects maybe did not point wix, including project output (like in .vdproj ) seems complicated. any suggestions appreciated! ok decided go wix. found out using votive it's possible i...

cakephp updateAll not working -

i have following code: $this->permissions->updateall( array('permissions.user' => $newuser), array('permissions.user' => $originaluser) ); but when run following error: warning (512): sql error: 1054: unknown column 'counterstaff' in 'field list' [app\cake\cake\libs\model\datasources\dbo_source.php, line 681] query: update `permissions` `permissions` set `permissions`.`user` = counterstaff `permissions`.`user` = 'counter' for reason thinks value want set column. have ideas why happening? problem update query put value in quotation update `permissions` `permissions` set `permissions`.`user` = "counterstaff" `permissions`.`user` = 'counter'

javascript - Can you apply visible binding based on the data currently being bound? -

i'm trying set content in template visible if item being rendered "current item". here code far, want able render part of inner template if data item being rendered has id == window.viewmodel.activeobject . <section data-bind='template: { name: "categorytemplate", foreach: categories }'></section> <script type="text/html" id="categorytemplate"> <section> <h2>${name}</h2> <section data-bind='template: { name: "objecttemplate", foreach: objects }'></section> </section> </script> <script type="text/html" id="objecttemplate"> <article> <h3>${name}</h3> (only render if object rendered has id equal viewmodel.activeobject) {{html text}} </article> </script> <script> $(document).ready(function(){ window.viewmodel = { categories :...

.net - WPF - Can't assign Styles to a UserControl -

how can set properties of usercontrol styles? (i read related questions, none of them solved problem) i define simple usercontrol this: <usercontrol x:class="myproject.redsquare" ... height="10" width="10" background="red"> <grid> </grid> </usercontrol> i can manually assign width/height of control. but can´t assign properties styles. this not work: <window.resources> <style x:key="red" targettype="{x:type local:redsquare}"> <setter property="width" value="200" /> </style> </window.resources> ... <local:redsquare style="{staticresource red}" /> strange behaviour: can modify control´s margin style other properties not work? any ideas? your user control has hard-coded width , height: height="10" width="10" local property values have higher precedence val...

Android : How to display more than one Marquee simultaneously (focus for two marquees) -

i want 2 marquees in application. 1 working always. if comment first one, second 1 work. otherwise first one. or 1 marquee getting focus @ time. if press down arrow, second 1 focus. how can both of these marquees focus? how can display 2 marquees @ same time? following code : <relativelayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/imglogotb"> <textview android:id="@+id/txt1" android:layout_width="wrap_content" android:text="start | lunch 20.00 | dinner 60.00 | travel 60.00 | doctor 5000.00 | lunch 20.00 | dinner 60.00 | travel 60.00 | doctor 5000.00 | end" android:layout_height="20dip" android:singleline="false" android:ellipsize="marquee" android:marqueerep...