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.

what is .net framework -

i have been asked in interview .net framework.how can define layman the .net framework is : common language runtime – provides abstraction layer on operating system base class libraries – pre-built code common low-level programming tasks development frameworks , technologies – reusable, customizable solutions larger programming tasks

video - Open source converter which can convert mp4 to 3gp and 3gp to mp4 -

please provide me link of open source exe can call .net , convert mp4 3gp , 3gp mp4. thanks finally got answer: using ffmpeg can like: ffmpeg -y -i input.mp4 -r 20 -s 352x288 -b 400k -acodec libfaac -ac 1 -ar 8000 -ab 24k file.3gp

layout - Get dimensions after setLayoutParams in Android -

in android, after call view.setlayoutparams , how can find out dimensions (width & height) , position (x & y coordinates) of view? if query these properties after setlayoutparams return invalid values. according documentation, view.onsizechanged called after size of view changed. means have subclass widget dimensions want query, override onsizechanged , notify activity of change? haven't tried myself, long you've added view child , called invalidate() after you've set layoutparams, think should able determine width , height.

java - Hibernate query filter on collection -

i want execute following query: from item i.categoryitems.catalogid = :catid that yields in following exception: illegal attempt dereference collection googled, found hibernate forum post https://forum.hibernate.org/viewtopic.php?p=2349920 recommended me following: from item i, in (i.categoryitems) i.catalogid = :catid this kind of works, there's problem this: returns me object array item object , categoryitem object. i'm interested in single item object (list) my mapping of 'item': <hibernate-mapping package="be.xx.xx.xx.xx.domain" default-access="field"> <class name="item" table="item"> <id name="articleid" column="article_id" type="long"> <generator class="assigned" /> </id> ... ... <set name="categoryitems" table="category_item"> <key column="item_id" /> ...

directory - MFC CFileDialog don't work correctly in Windows 2000 -

i develop visual studio 2008 (windows 7) , use cfiledialog(true, null, lastpath, null, szfilter); the important parameter third (lastpath) in specific directory! works fine windows 7 in windows 2000 dialog works if lastpath (lpctstr lpszfilename) empty (otherwise dialog doesn't open) any ideas!? thanks , greets leon22 ok, have found error: don't set initial directory lpszfilename! right usage: cfiledialog odlg(true, null, null, null, szfilter); odlg.m_ofn.lpstrinitialdir = lastpath.getbuffer(0); // set initial dir greets leon22

android - button style -

Image
normal button looks like: now, please let me know, how can make simple button same attached image button (i.e. button corner shape round , there no gap between 2 buttons) 9-patch work fine here, try avoid them since it's hard me them :( you can try having selector , using shape each state: the shape this: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#aaffffff"/> <corners android:bottomrightradius="7dp" android:bottomleftradius="7dp" android:topleftradius="7dp" android:toprightradius="7dp"/> </shape>

java - Can I use SQL's IN(...) statement for a namedQuery? -

how can use in @ namedquery? @namedqueries( { @namedquery(name = "getavailableproducts", query = new stringbuilder("").append("select p product p p.type= :type , (p.available in ('i want define changeable size of array or sometinhg that') or p.available = :available)")), } i mean can set 'type' parameter (i defined variable----> :type) , want define variables inside of in statement to. number of parameters not constant. want define array or :array[] , want set when call namedquery. @namedqueries( { @namedquery(name = "getavailableproducts", query = "from product p p.type= :type , (p.available in (:availablecollection) or p.available = :available)", } and in code hibernate: query.setparameterlist('availablecollection', yourcollection); edit in jpa write query.setparameter('availablecollection', yourcollection); and according this should work.