Web Development

Setting Session Variables in ASP.NET from JavaScript

Someone on the ASP.NET forums asked how to set session variables in JavaScript. The answers given ranged from “totally wrong” to “rather misleading” or “marginally helpful”. So in a nutshell, yes, you can totally do it. Not only will you be able to do it, you will love doing it after you get used to …

Setting Session Variables in ASP.NET from JavaScript Read More »

Solved a problem with an Visual Studio 2008 “Source control provider could not be found” error…

I had run into this problem before. Setup I have my Visual Studio 2008 options set to reload the previously loaded solution on startup. I use Subversion. I use AnkhSVN as my SVN provider in Visual Studio 2008. Problem If I launched Visual Studio 2008 with a particular solution loaded when I last closed VS, …

Solved a problem with an Visual Studio 2008 “Source control provider could not be found” error… Read More »

When JavaScript Conventions Aren’t Conventions

In experimenting with Dashcode last night using the introductory tutorial provided by Apple, I noticed that in their example, they build a URL dynamically: var dsource = dashcode.getDataSource(“list”); var name = dsource.selection().valueForKey(“name”); document.location = (“http://www.google.com/search?client=googlet&q=” + name); But your first thought when looking at this may be (as was mine), “what if there are spaces …

When JavaScript Conventions Aren’t Conventions Read More »

Running a javascript function after UpdatePanel.Update()

Found this forum post to be very helpful and I think I may employ this more often when doing UpdatePanel related messaging-when-done… Run a javascript function after UpdatePanel.Update() – ASP.NET Forums: … You should call the method in this way: ScriptManager.RegisterStartupScript(this.Page, this.GetType(), “MyScriptName”, “<script type=’text/javascript’>functionToCall(‘hello world’);</script>”, false); The problem could be the fact that you …

Running a javascript function after UpdatePanel.Update() Read More »