We have used FCK editor as an HTML editor for our recent project. It is one the best and easy to integrate HTML editor available free. When I test the editor on local server and it works fine. However when we add image using FCK editor the image path is relative to tour webpage. [...]
Archive for the ‘DotNet 3.0’ Category
Set Full Image Path in FCK Editor
Posted in DotNet 2.0, DotNet 3.0, Javascript, Techincal on October 9, 2009 | 1 Comment »
AJAX UpdatePanel and UpdateProgress to show please wait
Posted in DotNet 2.0, DotNet 3.0, Javascript, Techincal on August 20, 2009 | Leave a Comment »
While refreshing the AJAX skill today I wrote a simple code to display please wait message while asynchronous postback. I added one Update Panel, one Update Progress panel and a button control and registered button as Asynchronous Postback Trigger control. I assign my UpdatePanel’s id as AssociatedUpdatePanelID to UpdateProgress panel. I ran the code [...]
Context.RewritePath and Images
Posted in DotNet 2.0, DotNet 3.0, Techincal on August 19, 2009 | 1 Comment »
I was reading articles on URL Rewriting in ASP.NET and I found the most common way suggested is to use Context.RewritePath either in global.asax file or in HttpHandler with Application_BeginRequest method. The most common found code is Context.RewritePath(NewURL). When you the application you find it works like a charm and yes it does so!!!!. [...]
How to detect page is loaded
Posted in DotNet 2.0, DotNet 3.0, Javascript, Techincal on August 12, 2009 | Leave a Comment »
Sometime we need to find when the page is loaded or page is completely loaded before specific java script function is called. As we all know if try to access DOM element using document.getElementBtId() before page is loaded or page is completely loaded we get error. So to prevent the error we can user [...]
Maintain Viewstate for Dynamic controls across the postback
Posted in DotNet 2.0, DotNet 3.0, Techincal on May 20, 2009 | 6 Comments »
Most of us have faced the case when we have to load the controls dynamically. We can load user control by calling LoadControl method. To load inbuilt server controls we can use Page.Form.Controls.Add() method or we can user any container like panel or place holder and call Controls.Add() method. Upto this it looks very [...]
Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc
Posted in DotNet 2.0, DotNet 3.0, Sql Server, Techincal on May 14, 2009 | 17 Comments »
You may receive “Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc” while connection to database. I got the error when I tried to connect to SQL Server 2005 from Visual studio 2008 using server explorer. The exact error is,
Could not load file or assembly ‘Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91′ or one of its dependencies. The system [...]
The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index 2)
Posted in DotNet 2.0, DotNet 3.0, Techincal on January 7, 2009 | 2 Comments »
You may find this error while working with Data Application block in enterprise library. When you look into the inner exception you will find the message “The value can not be null or an empty string.”. This message does not give proper information to user.
When enterprise library does not find default database [...]
An error occurred creating the configuration section, ‘Microsoft.Practices.EnterpriseLibrary,The located assembly’s manifest definition does not match the assembly reference
Posted in DotNet 3.0, Techincal on January 5, 2009 | 3 Comments »
Today I was exploring Enterprise Library 4.1 and encounter this error. I created a sample application and added reference to few DLL from “EntLib41Src\bin” folder to my application. When I hit F5 to run the application I got following error,
“An error occurred creating the configuration section handler for exceptionHandling: Could not load file or [...]
Distributed Caching Framework "Velocity" from MS
Posted in DotNet 2.0, DotNet 3.0, Techincal on December 24, 2008 | 2 Comments »
“Velocity” a caching framework introduced by Microsoft for distributed caching in ASP.NET. When you use “Velocity,” you can retrieve data by using keys or other identifiers, named “tags.” “Velocity” supports optimistic and pessimistic concurrency models, high availability, and a variety of cache configurations. “Velocity” includes an ASP.NET session provider object that enables you to [...]
How to find duplicate values from List<> ?
Posted in DotNet 2.0, DotNet 3.0, Javascript, Techincal on July 24, 2008 | 3 Comments »
I have generic list say, List<int> and I want to find the duplicate values from the List<int> and store it in new List<int>. There are many ways to achive this. One can loop through all the elements of List<int> and store the duplicate in other list OR can use anonymous method to acieve same. [...]