1 / 9

Web User Control Development Environment: MS Visual Studio .NET 2005

Web User Control Development Environment: MS Visual Studio .NET 2005. Internet Programming Class 2006 Instructor: Dr. James W. Fawcett TA: Murat K. Gungor. Web User Control. Create New Empty Web Site Name it WebUserControl. 1 Add New Item. 2 Web User Control.

davidmann
Download Presentation

Web User Control Development Environment: MS Visual Studio .NET 2005

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web User ControlDevelopment Environment: MS Visual Studio .NET 2005 Internet Programming Class 2006 Instructor: Dr. James W. Fawcett TA: Murat K. Gungor Web User Control .NET 2005

  2. Web User Control • Create New Empty Web Site • Name it WebUserControl Web User Control .NET 2005

  3. 1 Add New Item 2 Web User Control Web User Control .NET 2005

  4. We only have LoginControl.ascx • Using Toolbox in Design View of LoginControl.ascx • Let’s add Standard Controls • Panel • Two TextBox • Button • Label • Then rename controls’ IDs appropriately Renaming IDs LoginNameTextBox PasswordTextBox LoginButton StatusLabel Web User Control .NET 2005

  5. Change the PasswordTextBox’s TextMode to Password • Double Click on Login Button and add LoginButton_Click function • Then type the code on the right. We are done with the LoginControl How can we see it working? Web User Control .NET 2005

  6. Add New Item Web Form Web User Control .NET 2005

  7. We have Default.aspx page LoginControl.ascx • Drag and Drop • Select LoginControl.ascx • Then hold the left mouse button down then drag it over Default.aspx and drop it. What happened is we just added these highlighted code lines to Default.aspx Web User Control .NET 2005

  8. Lets Run It • What else can we do with Web User Control? • Search Control • Menu • Admin Menu • Customer Menu • Employee Menu • News Control • Deal of the Day Control • Quotes Control • What to cook today Control • Etc… Web User Control .NET 2005

  9. End of Presentation Web User Control .NET 2005

More Related