Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with Web Forms

  • Adding cross-browser support for ContextMenu

    This weekend I have to get the ContextMenu working in Opera and Mozilla browsers. This shouldn't be too hard as I've stuck close to the spec. on everything and already have a browser sniffer built in to the js code. I've already taken the precautions of separating the 4 main XBrowser fragile parts out into their own logic units:

  • ASP.net Control Gallery - tons of free stuff

    In all the time that I've been using the ASP.net website I never really understood what the tab for "Control Gallery" was all about. I'd just kinda assumed that it must be a place where really smart people insert totally cool controls for others to download and enjoy. Turns out that it's not like that at all because they've accepted my new ContextMenu server control as a download :-) My control is now listed here:

  • ContextMenu - code complete!

    I finished off some of the rough edges of ContextMenu tonight and have to say that I am quite impressed with the result. Although, I have to say that this will be the last control that I build using VB until Whidbey; the sad part of this story is that after spending 5 or 6 hours working on it I am unable to get VBCommenter to successfully emit Xml based on my code comments.

  • ContextMenu - now working in browser.

    I finally got all of the rendering logic finished and spent this morning working "in the client" on some positional bugs. Basically, I had the menu working fine until the user selected a menu which was at a position greater the 1 window height down the page. In other words, if the page was tall enough to require a scrollbar down the side, the positioning of the menu was screwy when you had to scroll down. I've fixed that though with a nice little hack :-) Basically, I wire-up a delegate to handle the mousedown event on the document like so:

  • ContextMenu - working in the designer

    I've now got the ContextMenu to emit all of the Javascript into the page as part of it's rendering process which is the first part of what I said needed to be done from yesterday. Here is the code in the ContextMenu class which is responsible for doing that:

  • Context Menu - building the classes

    Well, it's been a great week inside the software dream ;-) as I've had the chance to work on something out of pure enjoyment - an ASP.NET Context Menu Server Control. I've been blogging my progress as I've had to tackle each part of the problem and, it's gone something like this: