'Programming' Category

  • Changing the cursor using javascript in chrome without the mouse moving

    May 21, 2010

    I had a DIV html element absolute positioned, transparent and with an astronomical z-index. Whenever I want to show that the web page is contacting the server and that the user should be patient I would change the css display value to the default and the cursor to progress. This stopped the user from causing [...]

    • Share/Bookmark
  • jQuery Context Menu appears off screen issue

    May 18, 2010

    jQuery Context Menu is available here: http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/ It’s a fantastic jQuery plugin that replicates most of the features that you’ll expect from any windows context menu. A feature that I noticed was missing was what happens when you right click on the right and bottom edges of the screen. On windows the context menu appears [...]

    • Share/Bookmark
  • Default Button in asp.net forms

    May 17, 2010

    Taken from http://www.metabuilders.com/Tools/DefaultButtons.aspx Often in asp.net WebForms you have multiple buttons with a number of textboxes and other form controls making it difficult for the web browser to determine what should happen when a user clicks enter. Thankfully in asp.net 2 the panel and form controls have a default button property making it so that [...]

    • Share/Bookmark
  • Updating Redirection using Strong Types to .Net 4

    April 17, 2010

    I wrote previously how to handle redirecting to other pages in an asp.net Web Forms application using the page’s type which allows you to move pages around in your site without having to worry about dead links as long as you use some sort of refactoring tool like resharper from jetbrains. Here is a link [...]

    • Share/Bookmark
  • How To Build VS2010 Solutions Using TFS2008 Team Build

    April 14, 2010

    This will work with .Net 4 RTM. It will also build previous versions of .Net Projects. Step 1: Install the .Net 4.0 Framework Beta 2 on your build server (or just put VS2010 beta 2 on it) Step 2: Change the Team Build config as follows Stop the Team Build service Go to C:\Program Files\Microsoft Visual Studio [...]

    • Share/Bookmark
  • Updating designer.cs in an ASP.Net Web Application

    April 13, 2010

    If the controls on your designer.cs are out of sync with your aspx page you may want to try the following to resync them. Put your page in design view and right click / refresh. It will sync the controls with the designer.cs. Make sure designer.cs is close before doing this. Taken from the following [...]

    • Share/Bookmark
  • How to stop a javascript event from bubbling

    February 25, 2010

    Events on any html document bubble from child up to parent calling the handlers on each element until it reaches the Body. In order to stop this from happening you can cancel the bubble by setting the cancelBubble property on the event to true <INPUT TYPE=”TEXT” NAME=”TEXT1″ onclick=”alert(‘TEXT1′);event.cancelBubble=true;”>Name Taken from http://webdevelopersjournal.com/articles/jsevents2/jsevents2.html

    • Share/Bookmark
  • Reducing the size of your ViewState in asp.net web forms

    February 22, 2010

    Very useful article on how to reduce your ViewState size. Also very simple to implement. http://szokelizer.blogsome.com/2006/11/09/how-to-put-controlstate-into-viewstate-and-how-to-put-viewstate-into-session/

    • Share/Bookmark
  • Redirecting using strong types in an asp.net web application project

    January 13, 2010

    Update, I recommend also reading the following post after you read this one if you plan on using this within .Net 4: http://www.lacy.ie/updating-redirection-using-strong-types-to-net-4 It recently began to annoy me that every time I want to redirect to a page I have to use a string. Not a big deal I know but when you have broken [...]

    • Share/Bookmark
  • Custom Control won’t trigger Update Panel

    November 24, 2009

    I was using the __dopostback  function in asp.net to cause a postback that would trigger an update in an updatepanel where relevant. If you come across this problem make sure that your custom control implements the INamingContainer as well as the IPostBackEventHandler interfaces Also make sure that your first argument to the __dopostback function is [...]

    • Share/Bookmark
 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org