Language Basics ASP.Net

<%@ Page Language="C#" Debug="true" %>

    void Page_Load()
    {
        if (IsPostBack)
        {
    
            lblMessage.Text = "First Line";
            InsertLinebreak(Convert.ToInt32(NumberOptions.SelectedItem.Value),
                            Convert.ToInt32(WidthOptions.SelectedItem.Value));
            lblMessage.Text += "Second Line";
            InsertLinebreak(Convert.ToInt32(NumberOptions.SelectedItem.Value),
                            Convert.ToInt32(WidthOptions.SelectedItem.Value));
        }
    }
    
    void InsertLinebreak(int NumLines, int Width)
    {
        for (int i=1; i<=NumLines; i++)
        {
           lblMessage.Text += "
                              "' align='left'>";
        }
    }



    Using Functions with Parameters


    Choose the number and width of the linebreaks and then press submit 
    
        
            100 pixels wide
            300 pixels wide
            600 pixels wide
        
        
            1 Line
            2 Lines
            3 Lines