Tuesday, May 15, 2012

Pass Eval to a javascript function

OnClientClick=<%# String.Format("javascript:SetContact('{0}','{1}')", Eval("ID"),Eval("Name")) %>

Wednesday, April 18, 2012

Wednesday, April 11, 2012

Submit your site to google

Submit your site to google
Submit your site to Search Engines

Create custom content type and list instance in SharePoint 2010 using Visual Studio 2010

Create custom content type and list instance in SharePoint 2010 using Visual Studio 2010

I successfully created a list definition by following above mentioned article, when i deployed the solution got following error "Error occurred in deployment step 'Activate Features': Value does not fall within the expected range."  as i was using simply a guid as Contype Type ID not following convention for Content Type ID. Thanks to following article that helps me to understand Content Type ID conventions.
Content Type IDs.

Wednesday, April 4, 2012

Dynamically change iDisplayLength of JQuery DataTable

var oTable;
 
$(document).ready(function() {
    $('.something').click( function () {
        var oSettings = oTable.fnSettings();
        oSettings._iDisplayLength = 50;
        oTable.fnDraw();
    });
     
    oTable = $('#example').dataTable();
});