Feeds:
Posts
Comments

Archive for the ‘DotNet 2.0’ Category

        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. [...]

Read Full Post »

     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 [...]

Read Full Post »

     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!!!!. [...]

Read Full Post »

      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 [...]

Read Full Post »

       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 [...]

Read Full Post »

        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 [...]

Read Full Post »

         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 [...]

Read Full Post »

            “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 [...]

Read Full Post »

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 [...]

Read Full Post »

       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 [...]

Read Full Post »

Older Posts »