单项选择题
You are developing a page named Process.aspx in a shopping cart Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Process.aspx page allows customers to pay for purchases using their credit cards. The Process.aspx page contains a Button control that confirms the customer's payment and calls an external Web service that charges the customer's credit card. You must implement confirmation and prevent postback unless the customer confirms payment.
What should you do?()
A. Set the OnClientClick property to a JavaScript statement.
B. Set the PostBackUrl property to a JavaScript statement.
C. Set the PostBackUrl property to the URL of a confirmation page.
D. Set the OnClientClick property to the URL of a confirmation page.
相关考题
-
多项选择题
Certkiller .com's e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages. What should you do?()
A. Move the Products.aspx page to the App_Code folder.
B. Create a code-behind file for the Products.aspx page.
C. Rename the Products.aspx page to Products.ascx.
D. Remove all server controls from the Products.aspx page.
E. Replace the Page directive with a Control directive. -
单项选择题
You recently developed a Web application that accesses an external Web service to retrieve current exchange rates for Certkiller .coms e-Commerce Web site. The Web service converts USD prices to the customers local currency. You have stored the URL to the external Web services endpoint in the section of the Web.config file. The Web application has been successfully deployed to a Certkiller .com Web server named Certkiller -SR14. A few months later the vendor of the Web service changes the port that is used to access the Web service. You need to update the section of the Web applications Web.config file from Certkiller -WS528. You need to ensure that your solution has a minimal impact on customers that may be connected to the e-Commerce Web site. What should you do?()
A. Create a Host entry in the Lmhosts file on Certkiller -SR14. Point the Host entry to the new end point.
B. Use the Copy Web Site function in Visual Studio 2005 to deploy the Web.config file from Certkiller -WS528 to Certkiller -SR14.
C. Create a Web Setup project in Visual Studio 2005 to deploy the Web.config file from Certkiller -WS528 to Certkiller -SR14.
D. Use the Web Site Administration Tool to change the <appSettings> section of the Web.config file. -
单项选择题
ou are developing a chat forum for the Certkiller .com Web site. You are using ASP.NET 2.0 to develop the chat forum. You are developing a Web Form that allows a subscriber to alter enter their account details. The page contains the following code snippet. You need to programmatically hide the TextBox control based on other input. What should you do?()
A. Add a Runat="server" attribute to the TextBox control.
B. Declare _Description as a TextBox in the code-behind class.
C. Replace the <div> element with <table>, <tr>, and <td> elements.
D. Replace the <div> element with a Panel server control.
