SlideServe
Menu
Preferences
© SlideServe · v2026

Chapter 7- Building User Controls and Custom Web Controls

roshaun avatar
16 slides · 404 Views · 160 likes · Jul 04, 2013

Chapter 7- Building User Controls and Custom Web Controls. User Controls. Reduce duplication of effort Maintains site consistency Examples controls: Header/Footer Address entry Validation. User Control Creation. Requires .ascx extension Web User Control. User Control .

Chapter 7- Building User Controls and Custom Web Controls - slide 1
01 / 16Chapter 7- Building User Controls and Custom Web Controls
1 / 17

Download Presentation

Chapter 7- Building User Controls and Custom Web Controls
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

More Related Content

Presentation Transcript
  1. Chapter 7- Building User Controls and Custom Web Controls

  2. User Controls • Reduce duplication of effort • Maintains site consistency • Examples controls: • Header/Footer • Address entry • Validation

  3. User Control Creation • Requires .ascx extension • Web User Control

  4. User Control <%@ Control Language="vb" AutoEventWireup="false" Codebehind="MyControl.ascx.vb" Inherits="Ch07Web.MyControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <P> Name: <asp:TextBox id="TextBox1" runat="server"> </asp:TextBox> </P>

  5. User Control … <%@ Register TagPrefix="uc1" TagName="MyControl" Src="MyControl.ascx" %> … <form id="Form1" method="post" runat="server"> <uc1:MyControl id="MyControl1" runat="server"> </uc1:MyControl> </form>

  6. Web Server Controls • More time to create • Implement Render( ) method • Inherits System.Web.UI.Control or • Inherits System.Web.UI.WebControls.WebControl

  7. Web Server Controls

  8. Web Server Controls

  9. Web Server Controls

  10. Lab

  11. Lab