Include inc file Demo : Include inc file « Development « ASP.Net






Include inc file Demo

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)
    lblResult.Text = MakeLength(txtStringToSize.Text, _
        txtPadCharacter.Text, txtLength.Text)
End Sub
</SCRIPT>
<!-- #include file="makelength.inc" -->
<HTML>
<HEAD>
<TITLE>Make Length Sample Page</TITLE>
</HEAD>
<BODY TEXT="black" LINK="darkred" VLINK="darkred" ALINK="red" LEFTMARGIN="40" TOPMARGIN="60">
<form runat="server">
<Font Face="Tahoma" >
<asp:Label
    id="lbl1"
    runat="Server"
    font-bold="True"
    text="Enter String to Size"
/>    
<BR>
<asp:TextBox
    id="txtStringToSize"
    runat="server"
/>
<BR><BR>
<asp:Label
    id="lbl2"
    runat="Server"
    font-bold="True"
    text="Enter Pad Character"
/>    
<BR>
<asp:TextBox
    id="txtPadCharacter"
    runat="server"
/>
<BR><BR>
<asp:Label
    id="lbl3"
    runat="Server"
    font-bold="True"
    text="Enter Length"
/>    
<BR>
<asp:TextBox
    id="txtLength"
    runat="server"
/>
<BR><BR>
<asp:button 
    id="butGo"
    text="  Go  "
    Type="Submit"
    runat="server"
    OnClick="SubmitBtn_Click" 
/>
<BR><BR>
<asp:Label
    id="lblResult"
    runat="Server"
    font-bold="True"
/>    
</Font>
</Form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Linking to an Include Code Library