Solving a Problem
Error 10 Error updating JScript IntelliSense: C:\SVN\HappyMappy\website\scripts\prototype.js: Object expected @ 31:4 C:\SVN\HappyMappy\website\coolscripts\blah.js 1 1 C:\...\website\
/// <reference path="blah.js" />
You also can get a reference by having things setup in the ScriptManager. Also, you can do this:
/// <reference path="Page.aspx" />
This could be helpful if you are in a .js file that is added into a page and you want to reference something else on that page, such as a web service in the ScriptManager. And yes, i agree that it seems like a backwards way to do things..........
var SelectedOffice = $get("<%=ActiveOffice.ClientID%>").value; // if this isn't exact, it is fairly close.
I was going through a debug session. I wanted to set a breakpoint on that line, but I couldn't. I scratched my head on this. What is so special about that line?!? I could set a breakpoint in the debug session in the dynamic page, but the source page, that didn't seem to work correctly. Well, it ends up that because of <% %> characters, no break points can be set on that line in the source view. You can do something like this:
var ClientId = "<%=ActiveOffice.ClientID%>";
var SelectedOffice = $get(ClientId).value; // a break point can be set on this line.
I'd like to thank Scott Guthrie for pointing this out to me.
Creating an ASP.NET 3.5 AJAX Project
Ok, I want to create an ASP.NET 3.5 AJAX Project in Visual Studio 2008. How do I do that? Its easy. AJAX is now integrated into the basic ASP.NET Project.