Views
11 months ago

BIS 450 DeVry Week 7 iLab 8

Step 4: Add Code to Save

Step 4: Add Code to Save E-mail Addresses and Send Confirmation (Signup.aspx.vb). • Code placed in click event handler of btnSignup button • Calls Insert() method of AccessDataSource to save e-mail address to Subscribers table • Sets up MailMessage object • Sets up SmtpClient object • Calls Send() method of SMTPClient to send MailMessage (NOTE: This may be commented out in the code with no deduction)! • Displays thank you to user in literal on Web form 10 40% Step 6: Test, Capture Screenshots, and Submit (Student Name BIS450 Lab8 Screenshot.docx) • Word file submitted to Dropbox with screenshot of Newsletter Sign-up Form 5 20% Total 25 100% i L A B S T E P S Preparation 1. Download the BIS450 Lab8 Code Snippets.txt file from Doc Sharing and save it in your working folder for this lab. 2. Using the Citrix remote lab: a. Follow the log-in instructions located in the iLab tab in Course Home. b. Upload the file that you downloaded from Doc Sharing into your BIS450Labs folder on your Citrix drive. (You created this folder in Week 1). 3. If possible, obtain a free e-mail account with an e-mail provider that allows you to send e-mail via the Simple Mail Transfer Protocol (SMTP). Google Gmail is one such provider; you can obtain a free Gmail account at http://gmail.com. Other providers can be found by doing a Web search for “free e-mail smtp access.” You may use your personal e-mail account for this lab if you wish, provided it allows SMTP access; but to protect the security of your personal e-mail, it is recommended that you obtain a new account with Gmail or another free provider just for use in this lab. An account from a Web-based e-mail provider such as Gmail is recommended, rather than one provided by your own Internet Service Provider (ISP). ISP-provided e-mail accounts are sometimes restricted in ways that may interfere with their use in this lab. For security reasons, the DeVry University Web server does not support sending e-mail directly from the server, which is why you will need an account with Gmail or a similar provider. You can complete the lab without such an account, with no loss of points, if you choose. However, with an SMTP-capable e-mail account, you will be able to test your code to see that it works and actually sends an e-mail, which is much more satisfying! If you have any questions or concerns about this issue, please discuss them with your professor. STEP 1: Open Website on the DeVry Web Server 1. Launch Microsoft Visual Studio 2010. You must use Visual Studio 2010 in the Citrix environment. 2. Pull down the File menu and select Open Website. In the Open Website dialog, select FTP Site in the left column. The connection information that you used in the previous lab should be displayed: • Server: bisweb.devry.edu • Port: 21 • Directory: coursefolder/yourname, where coursefolder = folder on the Web server for your course (provided by your professor), and yourname = your first initial and last name, (e.g. jsmith for student John Smith). • Passive Mode and Anonymous Login: Both unchecked. • Username: acadDnnnnnnnn, where Dnnnnnnnn = your DSI number.

• Password: Enter the same password as the one that you use for Citrix iLab (must be re-entered each time). Click Open. STEP 2: Gather Outbound E-mail Server Information. 1. As explained in the “Preparation” section above, to fully test your work in this iLab, you will need an e-mail account that allows SMTP access. A new account from a free web-based e-mail provider such as Gmail, separate from your existing personal e-mail account, is recommended. 2. By reviewing the documentation supplied by your e-mail provider, gather the following information about outbound SMTP access for your account: • What is your e-mail address? • What is the SMTP Server address? • What is the port number? • What is your account name? (may be the same as your e-mail address) • What is the password? • Is a secure connection (SSL or TLS) required? TIP: For Gmail, you can obtain this information from http://mail.google.com/support/bin/answer.py?hl=en&answer=13287. Look in the section for “Outgoing Mail (SMTP) Server.” For other e-mail providers, look for instructions on configuring e-mail clients like Microsoft Outlook, and/or information on using POP, IMAP, or SMTP. In these instructions, you are only interested in the settings for outgoing mail via SMTP; you do not need to be concerned about settings that relate to incoming mail via POP or IMAP (although these are often discussed together in the documentation). TIP: Some e-mail providers may list more than one port number for SMTP. You may have to try each listed port, in turn, to find out which one will work for you, so make note of them all. If you are unable to obtain an e-mail account with SMTP access, or if you choose not to do so, you may skip this step with no deduction. STEP 3: Create a Newsletter Signup Form. 1. Add a new web form named Signup.aspx to the site. Make sure that it goes into the root of the site and not into one of the subfolders. 2. Set the Title property of the Document to Newsletter Signup. 3. Attach StyleSheet.css to the Web form. 4. As you did when setting up the Web forms in previous labs, open Default.htm and copy the contents of its element (in HTML, everything in between the and tags, but not the and tags themselves). Paste these contents inside the div in Signup.aspx (in HTML, in between the and tags). Delete the contents of the #main div after pasting. 5. Inside div#main, type Sign Up for Free Nutrition Newsletter! as a heading for the form, followed by a blank line. Bold this heading. 6. Type the prompt Enter your e-mail address:. To the right of this prompt, place a TextBox from the Standard section of the Toolbox. To the right of the TextBox (on the same line), place a Button. On the line below, place a Literal control. Set the properties of each control as indicated below: Control (ID) Text TextBox txtEmail Button btnSignup Sign Up for Newsletter Literal litMessage

DEVRY CIS 336 Week 7 iLab 7
DEVRY MGMT 404 Week 7 iLab
DEVRY BIAM 420 Week 7 iLab NEW