Faisal_Khan

Stories kicked by Faisal_Khan

HTTP module to redirect requests from non-www domain to www subdomain(www.stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 1 year, 4 months ago

We will develop an ASP.NET HTTP module that will redirect all requests made to the non-www domain name of our website, for example, stardeveloper.com, to www subdomain of our website, for example, www.stardeveloper.com. You can also use this module to redirect requests to .net and .org domain aliases for your website to .com domain name of your website. All the C# code is explained in detail and is available for download. read more...

add a comment |category: |Views: 14

tags: another

How Stardeveloper.com achieved 120% improvement in website load time?(www.stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 1 year, 5 months ago

Stardeveloper.com got an improvement in average load time of a web page from 8.6 secs to 3.9 secs. This improvement was attained using static resource caching using Expires and Cache-Control: max-age HTTP headers. Author shows charts from Google webmaster tools to show what the average load time was an year back and what it is now. Then he moves on to explain what this technique is and how you can implement it on your own ASP.NET website in just a couple of minutes. read more...

add a comment |category: |Views: 3

tags: another

ASP.NET application to tag and identify users from Facebook, Twitter..(www.stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 1 year, 5 months ago

In this tutorial, we will develop an ASP.NET application to track users from Facebook, Twitter, Dzone, etc., who visit out website. Application consists of an HTTP module and a custom web server control. We can identify these users during this and subsequent visits using cookies. We can use this application to display to these users 'like', retweet and voting buttons to increase the reach of our content in social networks and bookmarking websites. The author displays live working example of this application on his website that displays Dzone voting button only to Dzone users and visitors. The code is free, fully explained and available for download. read more...

1 comment |category: |Views: 8

tags: another

Functions to Convert IP Addresses to 8 byte Long Values and Back(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 4 months ago

This tutorial describes methods to convert an IP address to an 8 bytes long value, and back, both in C# and T-SQL. Will use methods like ConvertIPToLong() and ConvertLongToIP() to do the job. We will also learn why storing IP addresses as long values is more efficient to store and use. read more...

add a comment |category: |Views: 22

tags: another

Opensource ASP.NET Newsletter Application(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 5 months ago

New version of Stardeveloper ASP.NET Newsletter application is now live on the website. It includes minor updates and fixes. Requirements to install are ASP.NET 2.0 enabled IIS and SQL Server 2005/2008. The application comes with full C# source code. read more...

add a comment |category: |Views: 241

tags: another

Introduction to Developing HTTP Modules in ASP.NET(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 10 months ago

In ASP.NET, an HTTP Module is a class that implements the IHttpModule interface. By doing that it can handle events in the web request handling pipeline. They are the equivalent of 'ISAPI Filters' in IIS and 'Filters' in JSP. They are used for multiple purposes from authenticating a request to modifying the response and logging the request. In this tutorial, we will learn: i) Common uses of HTTP Modules, ii) Events in the web request handling pipeline, and iii) Creating your first HTTP Module. read more...

add a comment |category: |Views: 13

tags: another

Displaying Emails from Mailbox on Gmail using POP3 and ASP.NET(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 10 months ago

In this tutorial, we will create an ASP.NET page, that takes an individual email's sort number on the POP3 server to retrieve and display it to the user after properly decoding content-transfer-encodings like base64 and quoted-printable. You will learn how to access individual message parts in MIME encoded emails including fetching and enlisting attachments. read more...

add a comment |category: |Views: 72

tags: another

Connecting to Mailbox on Gmail and Fetching List of Emails using POP3(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 10 months ago

In this tutorial, we will learn about Post Office Protocol (POP3). It is a protocol (a set of commands) used by an email client to connect to and retrieve email(s) from the mailbox on the remote server. We will develop the code that connects to the POP3 server and sends commands to retrieve the list of emails on the server, and then later, using an ASP.NET page, displays the list to the user. To demonstrate the code, we will be connecting to Gmail's POP3 server using SSL (Secure Sockets Layer). read more...

add a comment |category: |Views: 71

tags: another

Displaying Twitter Updates in a Page by Page fashion with ASP.NET(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 11 months ago

In this tutorial, we will develop a technique to retrieve and display a page full of Twitter updates to the user, giving him the ability to move to the next page. The user will be able to browse all the pages using 'Previous Page&apos and &aposNext Page&apos links. Our technique will be highly efficient as we will be retrieving only enough number of Twitter updates from a given screen name, to display on a single page. Only when the user browses to the next page will another set of Twitter updates be retrieved. At the same time we will cache the results, page by page, giving seamless and smooth performance to the end user. read more...

add a comment |category: |Views: 12

tags: another

Retrieving Twitter Updates with ASP.NET(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 11 months ago

In this tutorial, we will learn how to retrieve Twitter status updates using Twitter API and ASP.NET. We will develop code that encapsulates calls to Twitter API and provides easy to use .NET classes to retrieve Twitter status updates, programmatically. We will demonstrate the code by developing an ASP.NET control that uses these .NET classes to retrieve and display Twitter status updates on our website. read more...

add a comment |category: |Views: 23

tags: another

Introduction to Twitter for ASP.NET Developers(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 11 months ago

This article discusses possible application of Twitter API in ASP.NET web applications. Twitter API can be used to communicate with the website users and to add useful text messaging features to their web applications. read more...

add a comment |category: |Views: 18

tags: another

Validating an XML Document using DTD in ASP.NET(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 2 years, 11 months ago

In this tutorial, we will learn how to validate an XML document using DTD. We will develop an ASP.NET page to demonstrate the code. After you are finished reading this tutorial, you will be proficient in writing C# code that validates XML documents using DTD. read more...

add a comment |category: |Views: 24

tags: another

Creating new XML Document in ASP.NET Programmatically(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 3 years, 2 months ago

In this tutorial, we will learn how to use the XmlDocument class to generate an XML document, programmatically. Topics covered include: declaring the document, creating element nodes, appending attributes, nesting the elements properly in one another, and sending the XML document with proper headers. read more...

add a comment |category: |Views: 56

tags: another

Preventing SQL Injection Attacks in Classic ASP(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 3 years, 6 months ago

The term 'SQL Injection' means to inject malicious SQL statement(s) in an otherwise regular SQL to get access to secure data on a website. In this article, we will examine how SQL injection attacks are carried out and what programming techniques can be used to prevent them. While we will assume classic ASP pages and the backend SQL Server database to demonstrate the method and means of prevention, the concept is equally applicable to other web programming technologies and database systems. read more...

add a comment |category: |Views: 15

tags: another

Creating an RSS Feed in ASP.NET(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 3 years, 6 months ago

This article explains how to create an RSS feed in ASP.NET. The author first explains the structure of RSS feed and then provides working code example from Stardeveloper.com to explain how an RSS feed can be generated dynamically. After reading this article you will be able to create an RSS feed for your website. read more...

3 comments |category: |Views: 25

tags: another

Gzip vs Deflate: Which is the faster HTTP compression method?(stardeveloper.com)

submitted by Faisal_KhanFaisal_Khan(126) 3 years, 6 months ago

Gzip and Deflate are two popular HTTP compression methods. I ran a test in C# to figure out which one is faster and by how much. Read this article to see which won the speed test and how to implement Gzip and Deflate HTTP compression on your ASP.NET website. read more...

1 comment |category: |Views: 66

tags: another