How to get the hostname or IP address of the server?
Answer Posted / praveen
string IpAddress=HttpContext.Current.Request.UserHostName;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a variable of implicit type and what is its scope?
Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?
Using activex control in .net?
How to view a .NET assembly?
Explain what is reflection in microsoft .net context?
What is Finalizer in .NET define Dispose and Finalize ?
How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?
What versions of .net are there?
Tell me about secure socket layer? How to make use of the technology?
How viewstate is being formed and how it is stored on client in .net?
How many types of generations are there in a garbage collector?
How do you turn off cookies for one page in your site? Give an example.
Can you create instance of a class which has private constructor?
What is smart navigation in .net?
Explain what is an application domain?