Kanakaraj V
How to get a client system IP address
Posted by Kanakaraj V in .Net | ASP.NET on Sep 18, 2010
0
Do you know the answer for this question? Post it below.
Guest

HI,
please use the below function to get the client ip address.
private string IppAddress()
    {

        string strIpAddress;

        strIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];

        if (strIpAddress == null)

            strIpAddress = Request.ServerVariables["REMOTE_ADDR"];

        return strIpAddress;

    }

Posted by Gangadhar Vennapu on Oct 11, 2010

1) use the System.DateTime.DaysInMonth() method to find the same

2) DateTime.DaysInMonth(2010,10).ToString();

Posted by Dhiraj Kumar on Oct 04, 2010

Request.UserHostAddress

Posted by Dhiraj Kumar on Oct 04, 2010
Sponsored by
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Sponsored by
Team Foundation Server Hosting
Become a Sponsor
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | REPORT ABUSE © 2011 C# Corner. All contents are copyright of their authors.