I'm currently converting a web site developed in ASP.NET 2.5 (VB.NET Code) to ASP.NET 4.0 (VB.NET code).
I have an Textbox and ListBox server controls on the web page.
<asp:ListBox ID="lstStore" runat="server"></asp:ListBox>
<asp:TextBox ID="txtCriteria" runat="server">
var list = document.getElementById("lstStore");
var txtCriteria = document.getElementById("txtCriteria");
Has something changed with ASP.NET 4.0? Note: I do not get any errors on the two 'var' statements. It is properly identifying the controls on the client side.