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.

java - JXL Hide a Sheet on creation -

jxl hide sheet my requirement i need create sheet , make hidden ( using jxl api) . later program populate values in hidden sheet reference sheet. can 1 tell me how hide sheet using jxl api. regards, n.s.balaji try calling: sheet. getsettings() . sethidden(true) ;

Any recommendations for streaming audio from grails app? -

i'm trying stream audio file grails app. audio file in mp3 format. i couldn't find examples or hints on net, recommendations? the soundmanager plugin might useful. i've never used personally.

php - Posting not working via JS (Jquery) but is with form -

i have rather confusing problem. i have php file (http://example.com/delete.php) <?php session_start(); $user_id = $_session['user_id']; $logged_in_user = $_session['username']; require_once('../classes/config.php'); require_once('../classes/post.php'); $post = new post(null,$_post['short']); #print_r($post); try { if ($post->user_id == $user_id) { $pdo = new pdoconfig(); $sql = "delete posts id=:id"; $q = $pdo->prepare($sql); $q->execute(array(':id'=>$post->id)); $pdo = null; } else {throw new exception('false');} } catch (exception $e) { echo 'false'; } ?> and i'm trying jquery post data it, , delete data. $('.post_delete').bind('click', function(event) { var num = $(this).data('short'); var conf = confirm("delete post? (" + num + ")"); if (conf == true) { var invalid...

c# - Split a string by capital letters -

possible duplicate: regular expression, split string capital letter ignore tla i have string combination of several words, each word capitalized. example: severalwordsstring using c#, how split string "several words string" in smart way? thanks! use regex (i forgot stackoverflow answer sourced it, search now): public static string tolowercasenamingconvention(this string s, bool tolowercase) { if (tolowercase) { var r = new regex(@" (?<=[a-z])(?=[a-z][a-z]) | (?<=[^a-z])(?=[a-z]) | (?<=[a-za-z])(?=[^a-za-z])", regexoptions.ignorepatternwhitespace); return r.replace(s, "_").tolower(); } else return s; } i use in project: http://www.ienablemuch.com/2010/12/intelligent-brownfield-mapping-system.html [edit] i found now: how convert camelcase human-reada...

jquery - How to implement JSONP in ASP.NET application -

can suggest, how can implement jquery jsonp in asp.net project . using jquery ajax , sorry new jsonp implementation. application flow described below: 1) opening http page, have got jquery login dialog box, username , password posted login.aspx page, has got 1 method "getlogindetails" takes posted username , password , sends webservice checks users name , password , return "success=true" 2) in response "success=true", read value jquery , works according responded text on client side display message "logged in successfully" . please suggest how can achieve above functionality using jquery jsonp , .net.

PHP: Lock all MySQL tables in PHP -

how can tables in mysql database in php? im sure there must way it, cant seem find php functions job. looking this lock_all_mysql_tables(); //.... calling external functions require db lock unlock_all_mysql_tables(); i'm not sure if there absolute way of doing require can list of tables in database... mysql: show tables ... run foreach loop on results lock/unlock each table.

iphone - NavigationBar hidden in detailViewController when presented modally -

i presenting detailviewcontroller modalview.in modalview navigation bar never visible, though not hiding where.please help! writereviewcontroller *newreview = [[writereviewcontroller alloc] initwithnibname:@"writereviewcontroller" bundle:nil]; uinavigationcontroller *modalnavcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:newreview]; // intended presented in view controller class modalnavcontroller.navigationbar.barstyle = uibarstyledefault; [self.parentviewcontroller presentmodalviewcontroller:modalnavcontroller animated:yes]; [modalnavcontroller release]; this code worked me