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.

CKEditor and ASP.Net MVC 3 RequiredAttribute -


i've integrated ckeditor 3 (formerly fckeditor) asp.net mvc (v3 specific) application. have requiredattribute in model field needs editor client side validation doesn't work correctly ckeditor. when try submit , i've entered data ckeditor required validation doesn't see data. if try resubmitting again, works. i've looked around online , can't find solution. using jquery , using jquery adapter

http://docs.cksource.com/ckeditor_3.x/developers_guide/jquery_adapter

if looking more generic way can add javascript :

    $(document).ready(function () {     if ($('.text-editor')) {         $('.text-editor').ckeditor();         $('input[type=submit]').bind('click', function() {             $('.text-editor').ckeditorget().updateelement();         });     }     }); 

and use .text-editor css class on textarea , works fine.

@html.textareafor(model => model.description, new { @class = "text-editor" }) 

i find solution eazyer other one, hope can helps!


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -