Loading ...

  • While working with ASP.NET multiline textbox I realized that MaxLength property was not working, it seems it was bypassed by ASP.NET engine. I decided to write a small JavaScript piece of code in order to apply character limit on the textarea. Below is the code for it: $(function () { var summaryControl = $("#Summary"); var maxLength = 10
    Raghav Khunger  · 9/29/2013  · 0  · 2114
    asp.net javascript jquery
     /5
    Avg: 0 / 5 (0votes)
  • SQL Server: Get list of all constraints
    Below is the SQL query to get all constraints: SELECT TableName = t . Name , ColumnName = c . Name , dc . Name , dc . definition FROM sys . tables t INNER JOIN sys . default_constraints dc ON t . object_id = dc . parent_object_id INNER JOIN sys . columns c ON dc . parent_object_id = c . object_id AND c . column_id = dc . parent_column_id Below is t
    Raghav Khunger  · 9/27/2013  · 0  · 1884
    Sql sql-server constraints
     /5
    Avg: 0 / 5 (0votes)
  • While working with IE7 one of our pages was giving Operation Aborted error. I was getting the following screen: The reason for this error was that I was trying to add new elments to body tag via script, and this scrip[t element was written before the body closing tag. The solution was to wrap the script code with $( document ).ready() , like this:
    Raghav Khunger  · 9/27/2013  · 0  · 1610
    javascript jquery ie7
     /5
    Avg: 0 / 5 (0votes)
  • If you want to load external JavaScript file dynamically i.e via JavaScript code you can take help from the following code: var loadJs= function (src, callback) { var s = document.createElement('script'); document.getElementsByTagName('head')[0].appendChild(s); s.onload = function() { //callback if existent. if (typeof callback == &
    Raghav Khunger  · 9/27/2013  · 0  · 2473
    javascript jquery
     /5
    Avg: 0 / 5 (0votes)
  • Below is the query which you can use to shrink the transcation log: USE AdventureWorks2008R2 ; GO -- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE AdventureWorks2008R2 SET RECOVERY SIMPLE ; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE ( AdventureWorks2008R2_Log , 1 ); GO -- Reset the database rec
    Raghav Khunger  · 9/12/2013  · 0  · 2056
    Sql
     /5
    Avg: 0 / 5 (0votes)
  • Page 1 of 1 (5 items)

Filter blogs

Top Producers

Quick Vote

What kind of email newsletter would you prefer to receive from CodeAsp.Net?