欢迎来到建筑考试题库网 建筑考试题库官网
全部科目 > 微软认证考试 > MCPD > MCPD(70-562)

单项选择题

You work as a Web Developer at Certkiller.com. You make use of Microsoft ASP.NET 3.5 in orderto create a Web Site. 
In a separate code file you create the following class: 
public static class _Colors
{ 
public static Color NormalActivityColor = Color.Green; 
public static Color WarningActivityColor = Color.Yellow; 
public static Color ErrorActivityColor = Color.Red;   
public static Color GetRandomColor() 
{ 
Random random = new Random((int)DateTime.Now.Ticks); 
int randomArgbValue = random.Next(); 
Color color = Color.FromArgb(255, Color.FromArgb(randomArgbValue)); 
return color; 
} 
} 
You need to ensure that the class is consumed by the Web Site. You have to configure the WebSite project. 
What should you do?()

    A.You should add the file to the App_Code folder of the project.
    B.You should add a Register directive that will reference the file to every page that makes use ofthe class.
    C.This can be accomplished by referencing the file in the assemblies segment of the Web.configfile.
    D.This can be accomplished by referencing the file in the httpHandlers segment of the Web.configfile.

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题