Wednesday, August 21, 2013

Disable Radbutton postback w/ validation

       function ValidateLastName(button, args) {
            var txtLastName = $find('txtLastName');
            if ( txtLastName.get_value() == '') {
                alert('At least lastname should be entered');
                button.set_autoPostBack(false);
            }
            else { button.set_autoPostBack(true); }
        }
 
           <telerik:RadButton runat="server" ID="btnLookup" OnClick="btnLookup_Click"  
Text="Lookup"  OnClientClicking="ValidateLastName">
                            </telerik:RadButton> 

Tuesday, August 13, 2013

EF , how to query result of query again

           var schools = entities.Companies.OfType<School>();
                if (hasHSAlumni)
                {
                    schools = (ObjectQuery<School>)schools.Where(p => p.HSGraduateExist == true);
                }

Thursday, August 01, 2013

Issue:Forms authentication doesnt allow images to show in IIS

     You already defined correct authentication like this:  <allow users="?" /> 
and IIS still doesnt show the images css or other resources
Solution: Edit Anonymous Authentication  and set it to Application Pool Identity






RadAsyncUpload too big

<style type="text/css">
 .RadUpload .ruFakeInput
 {
  height: 12px!important;
  width:60px!important;
 }
</style>