当前位置:MCPD(70-562)题库

问题:

[单选]

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application allows users to post comments to a page that can be viewed by other users. You add a SqlDataSource control named SqlDS. You write the following code segment:  
01 private void SaveComment()  
02 {  
03   string ipaddr;  
04 ► 
05   SqlDS1.InsertParameters["IPAddress"].DefaultValue = ipaddr;  
06   ... 
07   SqlDS1.Insert();  
08 }  
You need to ensure that the IP Address of each user who posts a comment is captured alongwith the user’s comment. 
Which code segment should you insert at line 04?()

A . ipaddr = Server["REMOTE_ADDR"].ToString(); 
B . ipaddr = Session["REMOTE_ADDR"].ToString(); 
C . ipaddr = Application["REMOTE_ADDR"].ToString(); 
D . ipaddr = Request.ServerVariables["REMOTE_ADDR"].ToString()

()负责管理军队中党的工作和政治工作。 中央军事委员。 中国人民解放军总政治部。 国防部。 军委主席。 损伤 Your network consists of an Active Directory domain named contoso.com. You have a computer namedcomputer1.contoso.com. Your network is configured to use only IPv6. You need to request that a DNS record be created to enable users to connect to your computer by using the name dev.contoso.com.  Which type of record should you request ?() A。 AAAA。 HINFO。 NAPTR。 在CorelDraw 12中,可以方便快速的给菜单指定快捷键,如果在指定快捷键时,在下面的“当前已指定”栏目中出现了文字,代表的意思为() 当前指定的快捷键已经存在,需要另外指定;。 表示快捷键已经被使用,确定后该快捷键将被应用在新的菜单上,原来的菜单将取消快捷键;。 表示前当的快捷键可以同时指定给两个菜单。 影响垃圾填埋地沉降的因素没有() 最初的压实程度。 垃圾的性质和讲解情况。 最终覆盖层的高度。 天气状况。

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application allows users to post comments to a page that can be viewed by other users. You add a SqlDataSource control named SqlDS. You write the following code segment:  
01 private void SaveComment()  
02 {  
03   string ipaddr;  
04 ► 
05   SqlDS1.InsertParameters["IPAddress"].DefaultValue = ipaddr;  
06   ... 
07   SqlDS1.Insert();  
08 }  
You need to ensure that the IP Address of each user who posts a comment is captured alongwith the user’s comment. 
Which code segment should you insert at line 04?()

参考答案:

  参考解析

本题暂无解析

在线 客服