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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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
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/
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 [...]
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 [...]