Wednesday, December 7, 2011

Jquery Live Search – A Sample Implementation of John Nunemaker’s Jquery Live Search

This week actually I was looking for a Jquery Live search Plugin . While browsing through , I found a very beautiful implementation by John Nunemaker  (The Original article you can found here ) . 

Later I noticed that many people are looking for a code which helps them to implement this very easily .

Please see the implementation below

First of all you have to download  and add the live search plugin from here  and Quick Silver Plugin from here  to your project.

And see the implementation Below

 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JQ.aspx.cs" Inherits="JQ" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title></title>

<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>

<script src="Scripts/quicksilver.js" type="text/javascript"></script>

<script src="Scripts/jquery.livesearch.js" type="text/javascript"></script>

</head>

<body>

<script type="text/javascript" charset="utf-8">

$(document).ready(function () {

$('#txtSearch').liveUpdate('List').focus();

});

</script>

<form runat="server">

<div>

<div>

<asp:TextBox runat="server" Text="" ID="txtSearch"></asp:TextBox>

</div>

<ul id="List">

<li>Hello World</li>

<li>This is a Jquery Live Search plugin Implementation</li>

<li>Done By Sreeraj R</li>

<li>ASP.Net</li>

<li>Jquery</li>

<li>Live Search</li>

<li>Implementation</li>

<li>CSS</li>

</ul>

</div>

</form>

</body>

</html>

Friday, November 4, 2011

There was no endpoint listening at http://mysite/TestService.svc that could accept the message. When Trying to do large data transfer

This issue regularly happens when we try to upload when there is no end point listens( or could not connect to the server )  at the provided address .

But in some scenarios this happens when we tries to upload or download large data through the service . We had this issue some time back and did a lot of research .

Finally we found the issue and by have some configuration changes we resolved the issue .

The configuration changes that we did to resolve this issue are given below

STEP 1 : Increased maxrequestlength property in httpruntime config entry under <System.Web>

<system.web>
<httpRuntime executionTimeout="4800" maxRequestLength="500000000"/>

</system.web>

 

STEP 2 :   Increased maxAllowedContentLength  value

<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="500000000"></requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>

 

STEP 3: Increased ReaderQuotas

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" maxArrayLength="2147483647" />


By doing these three changes , we could be able to have large data transfers without any issues.

Monday, October 24, 2011

Crystal Reports Runtime Error–Crystal Reports for VS 2010 Issue

Error : 

An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.

Solution :

Check your crystal reports version , if you are not using CR 13 then download and install 13 from the below location first . http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0.exe

Then ensure that you have the following folders created under your website root ( the root website where your application is hosted; )

Under Root  -> aspnet_client -> system_web -> 4_0_30319 ->crystalreportviewer13 -> ........ etc..

by default when you install crystal report thease folder would be craeted under default website . if you have a seperate website created then please copy these folders ther

Wednesday, October 12, 2011

HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace

 

Last week we had this issue when working with an Outlook Addin. After a lot of trial and errors , finally we got this solution .

Run Command Prompt as Administrator and execute the  below command

netsh http add urlacl http://+:8000/ user=domain\username.

Happy Coding Smile