only My site

Saturday, June 21, 2008

C# Code Snippets


Page Control Iteration
=======================



How many TextBoxes would you like to create? (Please choose vaule between 1 and 10)


MinimumValue="1" MaximumValue="10" Type="Integer"
ErrorMessage="Make sure that you choose a value between 1 and 10!" />


OnClick="CreateTextBoxes" />






***************************************************
Splitting the string into array using delimiter - ToCharArray()
===================================================
string = "\r\n";
char[] splitter = string.ToCharArray();
***************************************************
DBnULL IN DATA ROW
===================
dr.IsNull("Doctype1") ? Convert.ToInt32(dr["Doctype1"]) : 0;

***************************************************
REF:
====
LoadData( ref dsNotify );

protected void LoadData(ref DataSet dsAuthors)
{


}
***********************************************************

***********************************************************

***********************************************************

***********************************************************

No comments: