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.

javascript - Setting Page.IsValid to False -


i've got asp user control using jquery ui datepicker we'd have standard calendar throughout our site.

i trying create validation control not have create validation in every page using calendar. possible set page_isvalid false ascx?

here's code:

<%@ control language="vb" autoeventwireup="false" codefile="jquerycalendar.ascx.vb" inherits="controls_misc_jquerycalendar" %>      <style type="text/css">         div.ui-datepicker, div.ui-widget {             font-size: 12px !important;         }         img.ui-datepicker-trigger{             margin-bottom:-5px;         }     </style>     <script type="text/javascript">         $(document).ready(function () {             $('.datepicker').datepicker({                 showon: 'button',                 buttonimage: '<%= me.imageurl%>',                 buttonimageonly: true,                 changemonth: true,                 changeyear: true,                 showothermonths: true,                 selectothermonths: true,                 dateformat: 'dd/mm/yy'             });         });                     </script> 

the isvalid property read-only , therefore cannot set. add validator-control user control!

i see user control not contain text-input datepicker @ moment, instead adds datepicker items of class datepicker. suggest change have textbox inside usercontrol, way can put validator control on it.


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 -