Posted on May 6, 2008 by dotnetfunda
While developing web sites, you must have came across situations where you need to write Meta tags from the user control or any class files.
At first look it seems very difficult but I think it is not that much.
In My example I am writing Meta contents of my page from a utility class file.
Lets say [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
It is very frequntly asked question in any of the forum or question-answer section on websites. So I decided to write a very compact article with source code.
It is as simple as 123.
Lets start with creating a simple .aspx page where we will give a text box to enter user’s Name and a button to [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
You must have came across some .css issues related with the browser behavior. Some of the styles that works in IE doesn’t work in FireFox.
In that situation you need to write conditional code for both browsers.Below is the sample code that demonstrate how to write conditional statement tin CSS.
<html> <head> [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
You might have came across a situation where you need to pass a value from your .aspx page to the user control (.ascx). This is possible in several ways including storing values into session or database and again retrieving at the user controls.
However, the easiest and optimized way is to create a properties of the [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
Code Updated on 21st April 2008 to support Sorting, Paging and data manipulation through Stored Procedure in DAL
Almost all of us must have heard about 3-Tier architecture but what is this 4-Tier architecture? What are the benefits and how it is different from other architectures?
Well, the architecture I am going to demonstrate here is [...]
Filed under: Architecture | No Comments »
Posted on May 6, 2008 by dotnetfunda
There are several ways to populate DropDownList control. In this article I have tried to cover some of them including populating DropDownList manually, programmatically, through xml, database, arraylist, hashtable. I have also covered how to specify different background color of every items of the DropDownList and how to generate DropDownList on the fly. At last [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
Hi, The other day I was facing problem while migrating my Sql Server database tables into MySql database. I tried to google it but couldn’t find any great solution that can do it through code easily. Thought to share this simple code to all of you.
Introduction
My problem was that I had a Sql Server database [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
Introduction
Performance tuning can be tricky. It’s especially tough in Internet-related projects with lots of components running around, like HTML client, HTTP network, Web server, middle-tier components, database components, resource-management components, TCP/IP networks, and database servers. Performance tuning depends on a lot of parameters and sometimes, by changing a single parameter, performance can increase drastically.
This document [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
Points that I am going to discuss are not an expert advice, however, based on my knowledge & experience. If any one has any comment or suggestions, I will be glad to hear.
General Guidelines
1. Write comment for all methods./// /// Get RoleIDs for user, used to display the menu based on/// roles./// /// User’s UserName/// [...]
Filed under: Uncategorized | No Comments »
Posted on May 6, 2008 by dotnetfunda
Creating thumbnail with ASP.NET with C#. There are several ways to do that but this way I feel much better and efficient and also this doesn’t affect initial page load time.
Introduction
While working for a website or an web application, you must have came across a situation where you need to display a thumbnail [...]
Filed under: Uncategorized | No Comments »