Can't Register Javascript for Invisible Control

August 19, 2009

I was writing an ASP.Net Dialog Control and I overwrote the Visible property to mean does the Dialog Control get displayed on the page initally, this defaulted to false.

Later on I discovered that I couldn’t seem to register any javascript from the control. Turns out that it wasn’t being registered because of the lack of visibility. .Net was treating it like an on/off switch even though I’d told it not to. It’s things like this that make me want to use ASP.Net MVC.

  • Share/Bookmark

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org