移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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?()

发布日期:2020-04-10

You create a Microsoft ASP.NET application by usin...
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();

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

CMS专题

CMS专题

去刷题
热门试题热门资讯 相关试题

暂无相关推荐~