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.

php - Resize the images after uploading! -

html form <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="file" /><p /><input type="submit" value="uplaod" /> </form> php function function createresizedimk($img, $imgpath, $thumbdir, $suffix, $by) { // add in suffix after '.' dot. $newnamee = explode(".", $img); $newname = ''. $newnamee[0] .''. $suffix .'.'. $newnamee[1] .''; // imagemagick doesnt '/' , 'x' characters in command line call. // , workout size based on '$by'. $uploadedimg = ''. $imgpath .'/'. $img .''; $newresized = ''. $reducedir .'/'. $newname .''; list($width, $height, $type, $attr) = getimagesize("$imgpath/$img"); $newwidth = ($width/$by); $newheight = ($height/$by); $newres = ''. $neww...

How to add ASP.NET MVC view in ASP.NET? -

i have asp.net mvc view contains plain html. wanna use this same view in asp.net. how can this?? possible? i developing application contains both asp.net mvc , asp.net. wanna use same usercontrol accross application. can provide link/suggestions same. so, what's problem - put markup 'ascx' user control or use webcontrol , use across app. work both webforms , mvc. make sure you not trying access incompatible features - in other words, use asp.net platform features not specific webforms or mvc. since mentioned plain html without postbacks, mvc helpers, etc. there should not issues.

Not able to create a virtual directory by the same name in IIS -

i wanted know whether iis exhibits behavior in other windows 7 systems well. what happening when create virtual directory , delete time later , not able create virtual directory same name again in iis. i wanted know how can create virtual directory same name deleted virtual directory. what have achieve same .. suggestion???

linux - Ldap mapping users and groups -

i have question mapping users in openldap. possible set somethings this: group 1: cn=groups_name1,ou=groups,dc=company,dc=com , memberuid in group: memberuid: test and in second group, other user: group 2: cn=groups_name2,ou=groups,dc=company,dc=com , memberuid in group: memberuid: test2 and after set projects , access it: cn=projects_name,ou=projects,dc=company,dc=com , in project memberuid: cn=groups_name1,ou=groups,dc=company,dc=com is possible? the restriction posix groups can contain users, not other groups. depending on want do, nis netgroups allow other netgroups members.

How to send sms via php? -

possible duplicate: sms web application sample code send mail via php // in case of our lines larger 70 characters, should use wordwrap() $message = wordwrap($message, 70); // send mail('caffeinated@example.com', 'my subject', $message); ?> is there codes send sms via php code. if there no option php. solution send sms freely through php. how can this. particularly within in india. please refer these links http://www.sephiroth.it/tutorials/flashphp/sms/ http://www.ozekisms.com/index.php?owpn=327 http://www.theukwebdesigncompany.com/articles/article.php?article=1583 http://www.nowsms.com/discus/messages/1/1113.html

winapi - Cursor flashing on the non-client area when using IDirect3DDevice9::SetCursorProperties -

i have application running under direct3d9. application using direct3d hw cursor api ( idirect3ddevice9::setcursorproperties et al.) control cursor. works fine: when inside of application window, cursor specified setcursorproperties shown when outside of application window, normal os cursor displayed needed desktop or other windows the problem non-client area of window (the title bar, screen edges). when moving in non-client area, cursor corresponding function of area breifly shown, once stop moving, cursor set in setcursorproperties shown again. what correct way use idirect3ddevice9::setcursorproperties default os cursors on window non-client area? after experimenting various things, following change in application has solved issue me: in window procedure, when wm_setcursor received, remember result of condition (lparam&0xffff)==htclient in global variable cursorinclient when global variable cursorinclient false, avoid calling idirect3ddevice9::show...

How To Asynchronously Read/Write A Named Pipe In C# -

i have windows form hosts custom user control. user control fires seperate process (a .exe) creates , initializes namedpipeserverstream. once process initializes namedpipeserverstream, user control connects namedpipeclientstream. this works fine. on windows form have button called "check updates". when button pressed, namedpipeclientstream sends message server, server responds messagebox saying "i've been told check updates". can tell client > server communication working fine. here's problem. server supposed send message client telling it's checking updates (so user control can update status after verying command received server). whenever happens, locks up. now going assume because attempting both read , write named pipe @ same time? below code snippets both server , client. (both these snippets run in seperate threads in respective processes not block ui) gupdater (the named pipe server): private void waitforclientcommands() { ...