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 2.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 [...]
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 [...]
PageMethods is undefined
Posted in DotNet 2.0, Javascript, Techincal on October 22, 2008 | 2 Comments »
You may receive “Page Methods is undefined while calling Server Side function from Client Side Code using PageMethods in AJAX. The possible cause can be,
1. You may have not added EnablePageMethods=”true” in ScriptManager tag.
1: <ajax:ScriptManager
2: EnablePageMethods=”true” ID=”ScriptManager1″ runat=”server”>
3: </ajax:ScriptManager>
2. You have a [...]
Integrate Youtube in ASP.NET
Posted in DotNet 2.0, Javascript, Sql Server, Techincal on September 16, 2008 | 14 Comments »
I will discuss how to integrate youtube video in asp.net. Youtube provides the API to access the its huge database of videos. It also provides search facility and customized player for integration.
First thing you need is to get developer key for accessing youtube service. You can get it from here. Once you get the [...]