c# .net change label text

Posted by Morgan on Stack Overflow See other posts from Stack Overflow or by Morgan
Published on 2010-05-26T20:48:58Z Indexed on 2010/05/26 20:51 UTC
Read the original article Hit count: 325

Filed under:
|
|
|

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 I enter the site.

<asp:Label ID="Label1" runat="server" Text= label'></asp:Label>


<% 
    Label1.Text = "test";
    if (Request.QueryString["ID"] != null)
    {

        string test = Request.QueryString["ID"];
        Label1.Text = "Du har nu lånat filmen:" + test;
    }

     %>

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET