 DC DSLThere's a reason I'm Command.Premium join:2000-07-30 Washington, DC kudos:2 Reviews:
·Covad Communicat..
·Verizon Online DSL
| [ASP.NET 4]Any advice for Lightbox2 in Master Pages? Before I embark on this journey or give myself serious agita, are there any known issues with using Lightbox2 in an ASP.NET 4 site that uses master pages? Are there better choices than Lightbox in a master page based site? -- "Dance like the photo isn't being tagged; love like you've never been unfriended; and tweet like nobody is following." |
|
 cdruGo ColtsPremium,MVM join:2003-05-14 Fort Wayne, IN kudos:5 Reviews:
·Frontier FiOS
| Are you already using jquery on the site? If so, I prefer ColorBox and haven't had any problems with using it on masterpages. However, the lightbox is defined within a user control that's on a content page that calls the masterpage, not on the masterpage itself. I don't see why it wouldn't work on the masterpage directly.
At my last job we used a different lightbox. I'm trying to remember what it was but I'm drawing a blank. I can check tonight when I get home. It might be FatBox. When I was there and we were looking at them, jquery wasn't in the state that it was and a lot of the *boxes required a mismash of libraries that weren't compatible with the .net way, or there libraryless implementation conflicted directly with .net's ajax libraries (this was circa .net 2.0 still). I think Lightbox2 was included in with the has-problems group but that doesn't mean those issues haven't been worked out. |
|
 DC DSLThere's a reason I'm Command.Premium join:2000-07-30 Washington, DC kudos:2 Reviews:
·Covad Communicat..
·Verizon Online DSL
| Not using jQuery. This is a clean slate. I'm wanting to use it within databound controls like FormView and ListView on content pages. I had a bitch of a time last summer with a custom js scroller the client insisted I use...it had all sorts of conniptions over being in content pages because of how the content page control ids are generated. I just don't want to go through that again. -- "Dance like the photo isn't being tagged; love like you've never been unfriended; and tweet like nobody is following." |
|
|
|
 cdruGo ColtsPremium,MVM join:2003-05-14 Fort Wayne, IN kudos:5 Reviews:
·Frontier FiOS
| said by DC DSL:I had a bitch of a time last summer with a custom js scroller the client insisted I use...it had all sorts of conniptions over being in content pages because of how the content page control ids are generated. I just don't want to go through that again. If you weren't aware, ClientIDMode can set the id to static or predictable to make naming easier. For databound controls that have multiple instances on a page it doesn't work but if there's only ever one of the control on a page it can make things a lot easier to find, bind to, etc. |
|
 DC DSLThere's a reason I'm Command.Premium join:2000-07-30 Washington, DC kudos:2 | I know that. The problem was the js had DOM dependencies that were broken when dropped into a DHTML page.  |
|