Regular Expressions Usage
|
13.10.2008 19:51:23
- Filed under :
C#
|
Asp.net
|
|
The source code shows how to use Regular Expressions in C#.public static bool IsEmail(string strEmail) { string regex_Email = @"^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$"; Regex re = new Regex(regex_Email); return re.IsMatch(strEmail) ? true : false; } Keywords : Regular Expression
|
with 0 comments
|
|
VS 2008 and .NET Framework 3.5 SP1
|
25.8.2008 10:56:50
- Filed under :
C#
|
Asp.net
|
Ado.net
|
|
Microsoft .NET Framework 3.5 Service Pack 1
Microsoft .NET Framework 3.5 Service Pack 1 is a full cumulative update
that contains many new features building incrementally upon .NET
Framework 2.0, 3.0, 3.5, and includes cumulative servicing updates to
the .NET Framework 2.0 and .NET Framework 3.0 subcomponents.
Microsoft Visual Studio 2008 Service Pack 1
Improved WPF designers, SQL Server 2008 support, ADO.NET Entity
Designer,Richer JavaScript support, enhanced AJAX and data tools, and
Web site deployment improvements and so on.
For more details : http://msdn.microsoft.com/en-us/vstudio/products/cc533447.aspx
Keywords : Service Packs, VS 2008 SP1, .NET Framework SP1
|
with 0 comments
|
|
Check if a object already exists in arraylist
|
10.7.2008 10:50:44
- Filed under :
C#
|
|
DataView dv = new DataView(dt, "oyverdimi is null", "altkategoriID Asc", DataViewRowState.CurrentRows);
ArrayList arr = new ArrayList(); for (int i = 0; i < dv.Count; i++) { if (!arr.Contains(dv[i]["KategoriAdi"].ToString())) { arr.Add(dv[i]["KategoriAdi"].ToString()); } }
Keywords : Arraylist, contains, add unique item to arraylist.
|
with 0 comments
|
|
Escape Characters
|
13.11.2007 22:24:48
- Filed under :
C#
|
Asp.net
|
|
When you want to put a line return, or a single or double
quote into a string. The C# processor throws an error. So you
have to use escape characters to let the processor know what
you are doing.
Writing double quote :builder = "<div id=\"dropmsg" + i + "\" class=\"dropcontent\" subject=\"" + var.contentheader + "\">"; Keywords : Escape characters, writing double quote
|
with 0 comments
|
|
View Oracle GUID in .NET
|
23.8.2006 10:08:14
- Filed under :
C#
|
Oracle
|
|
Oracle GUID appearance is different in .NET. But in action this conversation implemented automatically. If you want to see oracle GUID (as you can see in oracle) regularly you should use a function like this.
public string ByteToRawString (byte [] byteArray) { string str="" ; for (int i = 0; i < byteArray.Length ; i++) { str+=String.Format("{0:x2}", byteArray[i]); } return str.ToUpper(); } Related Terminology : GUID, Byte Array, Oracle, .NET
|
with 0 comments
|
|
Previous
|
Next
Current Page: 2
|