Archive

Archive for October, 2009

Microsoft Dynamics NAV 5.0 Developer and Installation Guides

October 30th, 2009 Zaur Bahramov No comments

Here’s a documentation available from Microsoft:

http://www.microsoft.com/downloads/details.aspx?FamilyId=A3C9C3E3-11FC-446A-AC12-F6AD0749CB50&displaylang=en

Also, you can download it here:

Business Notification Installation Guide
Describes how to install the Business Notification Client and the Business Notification Server.
Microsoft Dynamics NAV 5.0 Security Hardening Guide
Recommends best practices for managing security with a Microsoft Dynamics NAV installation.
Application Designer’s Guide (w1w1adg.pdf)
Provides information about the C/SIDE development environment for Microsoft Dynamics NAV.
Installation & System Management: Application Server for Microsoft Dynamics NAV (w1w1atas.pdf)

Read more…

Matching IP Address using the Regular Expression

October 15th, 2009 Zaur Bahramov No comments

This example demonstrates the quick and simple way to match correct IP address.

MatchesDemo.zip

ipOK

ipBad

 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
 using System.Drawing;
 using System.Linq;
 using System.Text;
 using System.Text.RegularExpressions;
 using System.Windows.Forms;

 namespace MatchesDemo
 {
     public partial class IPValidate : Form
     {
         public IPValidate()
         {
             InitializeComponent();
         }

         private void btnValidate_Click(object sender, EventArgs e)
         {
             // MessageBox.Show(mtxtIPAddress.Text);

             // create a regex object
             Regex checkIP = new Regex (@"\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b");

             // create match
             Match matchIP = checkIP.Match(mtxtIPAddress.Text);

             if (checkIP.IsMatch(mtxtIPAddress.Text))
             {
                 mtxtIPAddress.ForeColor = Color.Green;
             }
             else
                 mtxtIPAddress.ForeColor = Color.Red;
         }
     }
 }
Categories: C# Tags: