Thursday, October 18, 2012

Change date format for Json



var value = dto.CreatedDate;
if (value.substring(0, 6) == "/Date(") {
var dt = new Date(parseInt(value.substring(6, value.length - 2)));
var dtString = dt.getFullYear();

}

Change date format /Date(1337878800000+0700)/ to regular date format, example dd/mm/yyyy hh:mm:ss ?????? (JSON)
 

Clear the content of div using jquery


<script type="text/javascript">
$('#divId').empty();
</script>

<div id="divId" class="class1"></div>
 

Friday, October 5, 2012

How to show all years in datepicker jquery


<script type="text/javascript">     
        $(document).ready(function () {
            $("#<%=txtBirth.ClientID%>").datepicker({  
                yearRange: "-112:+0",     //this is displaying 112years
                minDate: new Date(1900, 12 - 1, 31),
                maxDate: new Date(2012, 12 - 1, 31),
                changeMonth: true,
                changeYear: true
            });
         
        });
</script>
 

Wednesday, October 3, 2012

Prevent saving changes that require the table re-creation




Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created., 

When we get Below Error Message While Modifying table...Then,

To change this option, on the Tools menu, click Options, expand Designers, 
and then click Table and Database Designers. Select or UnSelect the
Prevent saving changes that require the table to be re-created check box.

Search

Custom Search
Protected by Copyscape Plagiarism Software