Since the last century, my website has been updated much slowly. I don't know what kind of content do you want my website to provide?
As we have mentioned earlier, the IP address of the host is Dec through the network domain name.
With the continuous in-depth understanding of IPHostEntry Class, we can get the function of searching host domain names using IP addresses. With the constant mining of this function, I plan to make a complete
Programs pursued by the web version
Next we will use the program to learn this article.
<% @ Import NameSpace = "System. Net" %>
<Script language = "C #" runat = server>
Protected void doClick (Object Src, EventArgs E ){
IPHostEntry hostInfo = DNS. GetHostByAddr (txtIP. Text );
Showmsg. Text = hostInfo. Hostname;
}
</Script>
<Asp: Label runat = server id = showmsg/>
<Form id = testForm runat = server>
IP address: <asp: TextBox runat = server id = txtIP/> <asp: Button runat = server id = do Text = "" onClick = doClick/>
</Form>
In fact, this program is very simple. I just hope that when you read my article, you will not simply finish reading it! Conditional,
In this way, I hope you can improve your programming and learning abilities.
/*
Tofu is made of excellent products
Http://www.asp888.net bean curd technology station
If reprinted, Please retain the complete copyright information
*/