在asp.net中的按钮单击事件期间多次更新label.text

时间:2016-07-04 07:37:52

标签: javascript asp.net .net

我想显示代码的处理,该代码在按钮点击事件上运行。 请帮忙。 我的代码如下所示。

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        //Do some stuff

        //Show the message that the application is processing

        lblCaption.Text = "Processing...updating label data";


        //Do more stuff

        lblCaption.Text = "Processing...creating label files.";


       //More stuff that will take some time

        lblCaption.Text = "Processing...updating label counts.";


        //More stuff

        lblCaption.Text = "Processing...completed.";

    }

0 个答案:

没有答案