c# .net change label text

前端 未结 6 1816
眼角桃花
眼角桃花 2021-01-05 07:21

Hello for I trying to use this code but for some reason it doesn\'t work. Really need help with this. The problem is that the label doesn\'t change name from \"label\" when

6条回答
  •  走了就别回头了
    2021-01-05 07:43

      Label label1 = new System.Windows.Forms.Label
    //label1.Text = "test";
        if (Request.QueryString["ID"] != null)
        {
    
            string test = Request.QueryString["ID"];
            label1.Text = "Du har nu lånat filmen:" + test;
        }
    
       else
        {
    
            string test = Request.QueryString["ID"];
            label1.Text = "test";
        }
    

    This should make it

提交回复
热议问题