I always get blank value instead of Hello. Below is my code
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
var text = $("[id*=Label1]").text();
alert(text);
});
</script>
</head>
<body>
<form id="form1" runat = "server">
<asp:Label ID="Label1" runat="server" Text="Hello" Visible = "false"></asp:Label>
</form>
</body>
</html>