Thursday, October 18, 2012

Saturday, October 13, 2012

opensource rich text editor for asp.net

"CKEditor" is the best WYSYWIG editor that can be used for asp.net. For more details check here.

In addition AjaxToolkit also provides a HtmlEditorExtender which takes advantage of HTML5 and supports IE 6 and later and other leading browsers. Check more details here.

Edit
. Refer this article for an excellent example of using HtmlEditorExtender. You might face some configuration errors (i.e. Unrecognized element 'sanitizer'.    ) when setting up this control.

Change web.config as follows to overcome this error.
  <configSections>
 <sectionGroup name="system.web">
      <section name="sanitizer" requirePermission="false"
               type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
    </sectionGroup>
  </configSections>

The first entry in <system.web> section shoud be chaged as follows
<trust level="Full" />
  <sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
      <providers>
        <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
      </providers>
    </sanitizer>
You'll be need ed to add a reference to all three assemblies contained in the folder: SanitizerProviders.dll,and HtmlSanitizationLibrary.dll which can be found in the AjaxControlToolkit source.

Cheers,
Samitha

Tuesday, October 2, 2012

IIS 7.x asp.net 4.0 deployment

If  you have tried to deploy an asp.net 4.0 web application in IIS 7.x you would have come up with few configuration errors. Follow these steps to overcome these errors

 1)  To register .Net in IIS, open up an admin command prompt and navigate to the .NET 4 framework folder (C:\Windows\Microsoft.NET\Framework\v4.{version}). If you're on a 64 bit machine go to the Framework64 folder instead of the Framework folder. Then run aspnet_regiis -i in there  (you will need admin permission on windows 7 to do this)

 2)  Use the "ISAPI and CGI Restrictions" IIS feature to allow your CGI program to run.  You can either add the individual program or simply "Allow unspecified CGI modules".


Cheers
Samitha

Monday, October 1, 2012

TypeScript: JavaScript Application Scaling

  This is a open source scripting language that makes it easier to build large-scale applications that will target HTML5, device applications, cloud applications...etc .I guess this will be the future of Javascript. Read More at  Somasegar's blog

http://blogs.msdn.com/b/somasegar/archive/2012/10/01/typescript-javascript-development-at-application-scale.aspx

Cheers

Samitha

Wednesday, September 26, 2012

Microsoft JScript runtime error: ASP.NET Ajax client-side framework failed to load

You suddenly might end up getting above message when trying to run your ASP.NET project. There various solutions given in forums and only after changing the web config as follows worked for me!

  <httpHandlers> 
 
 <remove verb="*" path="*.asmx"/>
 <add verb="*" path="*.asmx"  
validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
 <add verb="*" path="*_AppService.axd"  
validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
 <add verb="GET,HEAD" path="ScriptResource.axd"  
validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
 
</httpHandlers>
 



reference 
http://forums.asp.net/t/1243449.aspx#2291128
 
cheers
Samitha 

Monday, September 24, 2012

Silverlight Spy

This is a free tool that lets you explore the Silverlight application just by entering the url to it. This tool will make developer's life much easier...!!!

Download

More details about this can be found here.

Cheers
Samitha

Thursday, September 20, 2012

browser back button issue after logout

Most of us would have experienced that after logging out from a typical web based asp.net application, user can use the back button to go back to previous page. There a few ways to overcome this issue. Following article gives you some tips on this

http://www.codeproject.com/Tips/135121/Browser-back-button-issue-after-logout

 

Regards

Samitha