6. In the new window that appears, click Web Form and type ControlsDemo as the name. The ASPX
extension is added for you automatically when you click the Add button. You can leave the other
settings in the dialog box at their default settings. The page should open in Markup View, showing
you the default HTML, like the , , , and elements that VS adds
there for you automatically when you create a new page.
7. Switch the page to Design View by clicking the Design button at the bottom of the Document
Window.
8. If the Toolbox isn’t open yet, press Ctrl+Alt+X to open
it or click the Toolbox tab to show it and then click the
pin icon in the top-right corner to make the Toolbox
visible at all times. Drag a TextBox and a Button from
the Standard category of the Toolbox into the dashed
area in the Design View of the page. You should end up
with a Design View that looks similar to Figure 1-10.
9. Right-click the button in Design View and choose
Properties. In the Properties Grid, locate the Text property under
the Appearance category (shown in Figure 1-11) and change it
from Button to Submit Information. As soon as you press Tab or
click somewhere outside the Properties Grid, the Design View of
the page is updated and shows the new text on the button.
10. Press Ctrl+F5 to open the page in your default browser. Note
that it’s not necessary to explicitly save the changes to your
page (although it’s a good idea to do this often anyway using
the shortcut Ctrl+S). As soon as you press Ctrl+F5 to run the
page, VS saves all changes to open documents automatically.
11. Type some text in the text box and click the button. Note that
after the page has reloaded, the text is still displayed in the text box. Other than that, not much has
happened because you didn’t write any code for the button yet.
6. In the new window that appears, click Web Form and type ControlsDemo as the name. The ASPXextension is added for you automatically when you click the Add button. You can leave the othersettings in the dialog box at their default settings. The page should open in Markup View, showingyou the default HTML, like the , , , and <body> elements that VS adds<br />there for you automatically when you create a new page.<br />7. Switch the page to Design View by clicking the Design button at the bottom of the Document<br />Window.<br />8. If the Toolbox isn’t open yet, press Ctrl+Alt+X to open<br />it or click the Toolbox tab to show it and then click the<br />pin icon in the top-right corner to make the Toolbox<br />visible at all times. Drag a TextBox and a Button from<br />the Standard category of the Toolbox into the dashed<br />area in the Design View of the page. You should end up<br />with a Design View that looks similar to Figure 1-10.<br />9. Right-click the button in Design View and choose<br />Properties. In the Properties Grid, locate the Text property under<br />the Appearance category (shown in Figure 1-11) and change it<br />from Button to Submit Information. As soon as you press Tab or<br />click somewhere outside the Properties Grid, the Design View of<br />the page is updated and shows the new text on the button.<br />10. Press Ctrl+F5 to open the page in your default browser. Note<br />that it’s not necessary to explicitly save the changes to your<br />page (although it’s a good idea to do this often anyway using<br />the shortcut Ctrl+S). As soon as you press Ctrl+F5 to run the<br />page, VS saves all changes to open documents automatically.<br />11. Type some text in the text box and click the button. Note that<br />after the page has reloaded, the text is still displayed in the text box. Other than that, not much has<br />happened because you didn’t write any code for the button yet.
การแปล กรุณารอสักครู่..

6. ในหน้าต่างใหม่ที่ปรากฏคลิกฟอร์มเว็บและพิมพ์ ControlsDemo เป็นชื่อ ASPX
ส่วนขยายจะถูกเพิ่มสำหรับคุณโดยอัตโนมัติเมื่อคุณคลิกที่ปุ่มเพิ่ม คุณสามารถออกจากคนอื่น ๆ
การตั้งค่าในกล่องโต้ตอบที่ตั้งค่าเริ่มต้นของพวกเขา หน้าควรจะเปิดให้บริการในมาร์กอัปดูการแสดงที่คุณ HTML เริ่มต้นเช่น,
, and <body> elements that VS adds<br />there for you automatically when you create a new page.<br />7. Switch the page to Design View by clicking the Design button at the bottom of the Document<br />Window.<br />8. If the Toolbox isn’t open yet, press Ctrl+Alt+X to open<br />it or click the Toolbox tab to show it and then click the<br />pin icon in the top-right corner to make the Toolbox<br />visible at all times. Drag a TextBox and a Button from<br />the Standard category of the Toolbox into the dashed<br />area in the Design View of the page. You should end up<br />with a Design View that looks similar to Figure 1-10.<br />9. Right-click the button in Design View and choose<br />Properties. In the Properties Grid, locate the Text property under<br />the Appearance category (shown in Figure 1-11) and change it<br />from Button to Submit Information. As soon as you press Tab or<br />click somewhere outside the Properties Grid, the Design View of<br />the page is updated and shows the new text on the button.<br />10. Press Ctrl+F5 to open the page in your default browser. Note<br />that it’s not necessary to explicitly save the changes to your<br />page (although it’s a good idea to do this often anyway using<br />the shortcut Ctrl+S). As soon as you press Ctrl+F5 to run the<br />page, VS saves all changes to open documents automatically.<br />11. Type some text in the text box and click the button. Note that<br />after the page has reloaded, the text is still displayed in the text box. Other than that, not much has<br />happened because you didn’t write any code for the button yet.
การแปล กรุณารอสักครู่..
