What is RSS?

RSS, can be expanded as Rich Site Summary or Resource Description Framework Site Summary or Really Simple Syndication. RSS is a lightweight XML format for distributing regularly changed web contents among different web sites and users. A Web site can allow the users or other sites to publish some of its content by creating an RSS feeds.

Benefits of RSS Feeds

RSS allows the users to easily stay informed by retrieving the latest content from the sites they are interested in. It saves time by not needing to visit each site individually. It also ensures the privacy of the users by not needing to join the site's email newsletter. The number of sites offering RSS feeds is growing rapidly and includes big names like Microsoft and Asp.Net websites.

Useful links for CSS

I'll add more to the list when I've found more information here.

1. Internet Explorer & CSS issues

2. Ten ways to speed up the download time of your web pages (some key points here, a must read article.)

3. Ten CSS tricks you may not know (There are some tricks here that you shouldn't miss too)

4. CSS Help Pile - A huge pile of CSS-related tips, tricks & resources.

5. 53 CSS-Techniques You Couldn't Live Without (Here, you can learn the specific technique that you want to use in your web site. Another Must Read article.)

6. Layout Gala: a collection of 40 CSS layouts - Here you'll get some reference CSS layout sites.

7. MaxDesign - Sample CSS Page Layouts (with step by step layout tutorial too)

8. CSSplay - There are some demos, menus, layouts, boxes examples.

Create Table using storeprocedure

Here is an example:

Create Proc [dbo].[TestStoreProcedure]

AS

Create Table [dbo].[TestTable]

(

[JournalVoucherNo] int NOT NULL Primary key identity(1,1),

[Description] nvarchar(max),

[Date] datetime,

[Cost] money,

[Role] char(4),

[IsAdmin] bit

[CreatedBy] int

[UpdatedBy] int


)

RETURN

* using [dbo] for including new features of 2005 and we can give another name(eg..AP,AR,GL,Budget)that we can define like that schema which make more efficient for database features.

* using brackets [] to embrace the table name or field name so that even reserved words have been used, the names are still allowed.

* the field name [Id] has been defined to be primary key and it's auto increment by 1, start from 1. (Null is not allowed for this column)

* the data type for boolean is "bit" here.

* the difference between using "char" & "varchar" is that, when you define the size for char, no matter how many characters have been stored, it'll use up all the space defined. But for "varchar", it'll allocate just the size enough to store the variables. For variable string, it's good to use "varchar" as the data type.

* The maximum size for varchar is 8000 characters.

Fill up Leading Zero(s) In JavaScript

When the user didn't input in the max length in the text box, leading zero(s) will
automatically be added.For example:Month Calculation : (123456789).If the user only selected "1", it hasn't reached the max length (01) yet, then a leading zero will be added to become "01"

function AddLeadingZero(currentField)
{

//Check if the value length hasn't reach its max length yet

if (currentField.value.length != currentField.maxLength)
{

//Add leading zero(s) in front of the value

var numToAdd = currentField.maxLength - currentField.value.length;
var value ="";
for (var i = 0; i < numToAdd;i++)
{
value += "0";
}
currentField.value = value + currentField.value;
}
}

Copy this function in the code file:
public static void AddLeadingZeroAttribute(TextBox txt)
{

//Add leading zero when focus is lost
txt.Attributes.Add("OnBlur", "AddLeadingZero(this)");

}

"OnBlur" event will be triggered when the textbox loses the focus. Whenever the user finished keying in values and left the textbox, the AddLeadingZero() function will be called.

Show message box by server side

private void ShowMessageBox(string Message)
{
Label lblMessageBox = new Label();
lblMessageBox.Text =
"#script language='javascript'#" + Environment.NewLine +
"window.alert('" + Message + "')#/script#";Page.Controls.Add(lblMessageBox);
}


To call the message box function and just pass message value :

ShowMessageBox("Cannot Delete!");