Feeds:
Posts
Comments

Archive for April, 2007

       When attempting to POST to a web page in Internet Information Services (IIS) 5.1 under Windows 2000 (Win2k) or Windows XP, you may receive the following error:
The page cannot be displayed The page you are looking for cannot be displayed because the page address is incorrect.
——————————————————————————–
Please try the following: If you typed the [...]

Read Full Post »

            Web applications are by nature stateless. Statelessness is both an advantage and a disadvantage. When resources are not being consumed by maintaining connections and state, scalability is tremendously improved. But the lack of state reduces functionality severely. Ecommerce applications require state to be maintained as the user navigates from page to page. ASP.NET’s Session [...]

Read Full Post »

    This is a common error that may occure while you are using ABCPDF to generate PDF in asp.net. If you install the component on your machine and use that in application it works fine. However when you copy that application on a machine on which component is not installed, it throws eception as “Unable [...]

Read Full Post »

Create PDF in ASP.NET

           In my current web application I have to genarate PDF for subcription information and need to attach in email. I was searching a component which can generate PDF from HTML content. ABC PDF is really a cool component to generate PDF and really simple to use in application. You can find the trial version here.
Happy Programming !!

Read Full Post »

ASP.NET Session State: Architectural and Performance Considerations
I recently came across a great post on one of the internal forums describing the strengths and weaknesses of different ASP.NET session state strategies.
As you’re probably aware, state management is an important consideration for web developers. The HTTP protocol is connectionless, so any web application that persists data [...]

Read Full Post »

Advantages of User Defined Functions
Before SQL 2000, User Defined Functions (UDFs), were not available. Stored Procedures were often used in their place. When advantages or disadvantages of User Defined Functions are discussed, the comparison is usually to Stored Procedures.
One of the advantages of User Defined Functions over Stored Procedures, is the fact that a UDF [...]

Read Full Post »

      Below is the function that validates only positive decimal numbers in text box. You can specify number of digits that can be allow after decimal point.
var NumberofDigitsAfterDecimal =  8 ;
function CheckUnit(sender, args)
{
   if(document.getElementById(“TextBoxName”).value ==” )
   {
      args.IsValid = false;
   }
   else
   {
     if(isNaN(document.getElementById(“TextBoxName”).value))
        args.IsValid = false;
     else
    {
        var val = document.getElementById(“TextBoxName”).value;
        if(val.indexOf(“.”) > -1)
        [...]

Read Full Post »

            I was trying to post my aspx page to new page using JavaScript. The common methods “document.form1.submit()”. I have specified action and method attribute also. Still I was getting error on form submit as shown below,
“Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> [...]

Read Full Post »

    In my recent interview, I faced an interesting question. “Can we use single sign on for diffrent Form Authentication Sites?”. Obviously my answer was “No Idea”. After that I search on net for this and found that, yes !! we can do that. Below is the way to achieve this.
 

SSO for parent and child [...]

Read Full Post »