Flicker Images

Find programmers and grapic design experts at ScriptLance.com

Thursday, March 15, 2012

Coding Standard For C#.net


Namespace standard:
We must be use namespace: Com. [companyname]. [projectname].[modulename]
For example: Com.Codespacies.PIS.Recordmgt.Form

We must separate cs file like this:
Form: cs form
Dao: database integration and business logic
Rpt: crystal report file
Model: model class
Dataset: dataset file

Documentation Comments:
This pattern for class comments:
/// <summary>
/// This class...
/// created by:
/// created Date:
/// modified by:
/// modified Date:
/// Description:
/// </summary>

This pattern for method comments:
/// <summary>
/// this method...
/// Description:
/// ref parameter:
/// </summary>

This pattern for change comments:
/// <summary>
/// why change...
/// Description:
/// Date:
/// requested by:
/// </summary>

Capitalization Styles:
Pascal Case 
The first letter in the identifier and the first letter of each subsequent concatenated word are capitalized.  You can use Pascal case for identifiers of three or more characters. 
For example:  BackColor 
Camel Case 
The first letter of an identifier is lowercase and the first letter of each subsequent concatenated word
is capitalized. 
For example:  backColor 
Uppercase 
All letters in the identifier are capitalized.  Use this convention only for identifiers that consist of two
or fewer letters.
 For example:  System.IO 
            System.Web.IO 

You might also have to capitalize identifiers to maintain compatibility with existing, unmanaged symbol schemes, where all uppercase characters are often used for enumerations and constant values.  In general, these symbols should not be visible outside of the assembly that uses them. 

Class Naming Guidelines
·         Class names must be nouns or noun phrases.
·         UsePascal Casing
·         Do not use any class prefix
Interface Naming Guidelines
·         Name interfaces with nouns or noun phrases or adjectives describing behavior. (Example IComponent or IEnumberable)
·         Use Pascal Casing
·         Do not use any Interface prefix
Enum Naming Guidelines
·         Use Pascal Casing for enum value names and enum type names
·         Don’t prefix (or suffix) a enum type or enum values
·         Use singular names for enums
·         Use plural name for bit fields.
ReadOnly and Const Field Names
·         Name static fields with nouns, noun phrases or abbreviations for nouns
·         Use Pascal Casing
Parameter/non const field Names
·         Do use descriptive names, which should be enough to determine the variable meaning and it’s type. But prefer a name that’s based on the parameter’s meaning.
·         Use Camel Casing
Variable Names
·         Counting variables are preferably called i, j, k, l, m, n when used in 'trivial' counting loops.
·         Use Camel Casing
Method Names
·         Name methods with verbs or verb phrases.
·         Use Pascal Casing
Property Names
·         Name properties using nouns or noun phrases
·         Use Pascal Casing
·         Consider naming a property with the same name as it’s type
Event Names
·         Name event handlers with the EventHandler suffix.
·         Use two parameters named sender and e
·         Use Pascal Casing
·         Name event argument classes with the EventArgs suffix.
·         Name event names that have a concept of pre and post using the present and past tense.
·         Consider naming events using a verb.




Table of capitalization summary
Identifier
Case
Example
Class
Pascal
AppDomain
Struct
Pascal
EmpInfo
Enum type
Pascal
ErrorLevel
Enum values
Pascal
FatalError
Event
Pascal
ValueChange
Exception Class
Pascal
WebException
Note: Always ends with the suffix Exception
Read-only Static field
Pascal
RedValue
Interface
Pascal
IDisposable
Note: Always begins with the prefix I
Method
Pascal
ToString
Namespace
Pascal
System.Drawing
Parameter
Camel
typeName
Property
Pascal
BackColor
Protected instance field
Camel
redValue
Note: Rarely used. A  property is preferable to using a protected instance field
Public instance field
Pascal
RedValue
Note: Rarely used. A property is preferable is using a instance fied.
Private instance field
Camel
redValue


Table of Standard Control Prefixes
Control
Prefix
Example
Label 
lbl 
lblName
LinkLabel 
llbl 
llblName 
Button 
btn
btnName
Textbox 
txt 
txtName 
MainMenu 
mnu 
mnuName 
CheckBox 
chk 
chkName 
RadioButton 
rdo 
rdoName 
GroupBox 
grp 
grpName 
PictureBox 
pic 
picName 
Grid 
grd 
grdName 
ListBox 
lst 
lstName 
ComboBox 
cmb 
cmbName 
ListView 
lstv 
lstvName 
TreeView 
tre 
treName 
TabControl 
tab 
tabName 
DateTimePicker 
dtp
dtpName
MonthCalendar 
mon 
monName 
ScrollBar 
sbr 
sbrName 
Timer
tmr 
tmrName 
Splitter 
spl 
splName 
DomainUpDown 
dud 
dudName 
NumericUpDown
nud 
nudName 
TrackBar 
trk 
trkName 
ProgressBar 
pro 
proName 
RichTextBox 
rtxt 
rtxtName 
ImageList 
img 
imgName 
HelpProvider 
hlp 
hlpName 
ToolTip 
tip 
tipName 
ContextMenu  
cmnu 
cmnuName 
ToolBar 
tbr 
tbrName 
Form 
frm 
frmName 
StatusBar 
bar 
barName 
NotifyIcon 
nico 
nicoName 
OpenFileDialog 
ofd 
ofdName 
SaveFileDialog 
sfd 
sfdName 
FontDialog 
fd 
fdName 
ColorDialog 
cd 
cdName 
PrintDialog 
pd 
pdName 
PrintPreviewDialog 
ppd 
ppdName 
PrintPreviewControl 
ppc 
ppcName 
ErrorProvider 
err 
errName 
PrintDocument 
pdoc 
pdocName 
PageSetupDialog 
psd 
psdName 
CrystalReportViewer 
crv 
crvName 
PrintDialog 
pd 
pdName 
FileSystemWatcher 
fsw 
fswName 
EventLog 
log 
logName 
DirectoryEntry 
dire 
direName 
DirectorySearcher 
dirs 
dirsName 
MessageQueue 
msq 
msqName 
PerformanceCounter 
pco 
pcoName 
Process 
pro 
proName 
ServiceController 
ser 
serName 
ReportDocument 
rpt 
rptName 
DataSet 
ds 
dsName 
Datatable
dt
dtName
OleDbDataAdapter 
olea 
oleaName 
OleDbConnection 
olec 
olecName 
OleDbCommand 
oled 
oledName 
SqlDbDataAdapter 
sqla 
sqlaName 
SqlDbConnection 
sqlcon
sqlconName
SqlDbCommand 
sqlcmd
sqlcmdName
DataView 
dvw 
dvwName 


Table of Standard Data Type Prefixes
Data Type
Prefix
Example
int
i
iValueName
uint
ui
uiValueName
string
str
strValueName
double
d
dValueName
long
l
lValueName
ulong
ul
ulValueName
bool
b
bValueName
char
c
cValueName
decimal
dec
decValueName
float  
f
fValueName
byte 
y
yValueName
sbyte
sy
syValueName
short
s
sValueName
ushort
us
usValueName
object
obj
objValueName
Exception
ex


 
Table of Standard Control Prefixes
Control
Prefix
Example
DataGrid 
dtg
dtgName
Column
col
colName 














Design

Every form has message level which gives any message


Share:

Tuesday, December 27, 2011

How get tag name in Jquery



For finding any element tag name, we can get using following code.
Code
var tagName = $(this).get(0).tagName;

Example
<html>
<head>
<link href='css/custom-theme/jquery-ui-1.8.16.custom.css' rel='stylesheet' type='text/css'> 
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
</head>
<script>
$("#new_button").button();
$("#new_button").click(function() {
var TagName = $(this).get(0).tagName; 
alert(TagName);
var ParentTagName = $(this).parent().get(0).tagName; 
alert(ParentTagName);
});
</script>

<body>
<div style="display: table-cell; float: right;"><a id="new_button">New</a></div>
</body>
</html>
iPhone_Case_Bear_3468x60banner
Share:

Wednesday, December 21, 2011

SEO Question for Clients


  1.   What is the web address/URL of the site that you would like us to optimize? If your web address doesn´t up and running, please provide us your DEV URL or sitemap structure that you have planned.
  2.  In which platform your website built in?
  3. Describe the type of customers/audiences/visitors that you are targeting with your website.
  4. What are the products or services that you provide? Please provide us with a detailed description about the services that you offer
  5. What are your target specific keywords? Do you know what your customers to be will type in the search engine to find you?
    1.  What are the primary keywords you would like to target? (No single phrase keywords please)
    2.  What are the secondary level keywords you would like to target? (No single phrase keywords please)
    3.  Can we review the keywords and make changes as per your business objective?
  6. Who are your customers? Who are your best customers? And Why?
  7.  Who are your major competitors online? Do you know them how they perform online? List your major competitors with Name, Location and Website Addresses.(URL)
  8. What is the geographic scope of your market- International /National/ Regional/Local?
  9.  Do you have web stats (statistics) for your current site and monitoring the visitor status regularly?
  10.  Will you be interested in site restructuring, minor redesigns and content change if we strongly recommend? Promoting a client’s website is promoting their business. So, understanding their business is more important, and getting an insight about what they do, should be the first step you should do. Keep this in mind if you want to help them and retain them, since SEO clients are long term clients, and they rely on your marketing abilities.
  11.  How do you currently promote new content (Twitter, Facebook, LinkedIn, etc.)
  12. Define your current marketing strategy?
  13.  Do you have traffic stats / website log for us to review?If so, Can we have the access for the same?
  14. What do you want to accomplish with SEO/SEM? (Ranking / Traffic / Conversion )
  15. Have you worked with any SEO /SEM companies before? If so, what was performed and what were the results?
  16.  Do you have an established budget for SEO/SEM? If so, what is it?
  17.  Do you have any constraints while working the project (Timing / Budget etc)
  18.  Please provide any additional information you think might be essential at this time.

Note :
I collect this information from different website and Blogs and put it together.

Share:

Game Reviews

BTemplates.com

Powered by Blogger.

Search This Blog

Video Of Day

Find Us OIn Facebook

Blogroll

Contact

Tackle the Web with up to 5 new .COMs, $5.99 for the 1st year!

Advertisement