Thursday, January 22, 2009

Security Development guide

it's about time that i've done that :) 

here are security best practices named "OWASP Development Guide 2.0"

http://prdownloads.sourceforge.net/owasp/OWASPGuide2.0.1.pdf?download

it is highly recommended to at least review the documet since it has been written by Real proffecionals who are not being paid directly for writing this 

Monday, January 19, 2009

Learn CSS Positioning in Ten Steps

http://www.barelyfitz.com/screencast/html-training/css/positioning/
 

This tutorial examines the different layout properties available in CSS: position:static, position:relative, position:absolute, and float.

just read it 

Sunday, January 18, 2009

Adding new popup window (modal) to a webpage

Adding new popup window (modal) to a webpage is not that hard, but can be a little tricky.
let's describe how it should be done :

  1. We create an asp:Panel 
  2. We create an modalPopupExtender. It is located in the AjaxControlToolkit 
  3. We Create a Hidden Button . Something has to be a trigger for a popup to show up. If you do that as I do , meaning you make a modal to show up on screen using a Javascript (latter) you still have to create a control to trigger the modal. That's why we create a asp:button.
    <asp:button id="openModal1" runat="server">
     
  4. Configuration 
  5. 1-ModalPopupExtender :  
    TargetControlID should point to the button or the control we want to trigger the popup
    PopupControlID should point to the panel we want to open (step 2 )
    BehaviorID is the clientside name of the popup .. if we want to call it from  the HTML\javascript $find('behID').show(); will show up the popup . 
    2-Panel the Id has to the the value in the PopupControlID
  6. Then, we add the script that shows up the modal , something like :
    function onLoad(){
    $find('behID').show();
    }
  7. note that the value in the brackets points to the behaviorID proterty of the ModalPopupExtender

Sunday, January 11, 2009

How to handle ampersands in webconfig

The problem:
inserting a value with ampersand in webconfig results with an error

The solution:
Try using & in place of the ampersand character or thedecimal code equivalent, when inserting variables to web config

Tuesday, January 6, 2009

The latest Microsoft Academy III Presentations

See all here

ALM301 - Web Sites Testing with Visual Studio Team System (Level 300)
ALM302 - Test Driven Development (TDD) with Visual Studio Team System (Level 300)
ALM303 - Professional Developer Tools in Visual Studio Team System (Level 300)
ARC202 - Architecting Real-World Enterprise Application – Considerations and Dilemmas (Level 200)
ARC301 - "Velocity": Distributed Cache for Performance, Scalability and Availability (Level 300)
DEV301 - HTTP Web Services with Windows Communication Foundation 3.5 (Level 300)
DEV302 - Building Your First Great Silverlight 2 Application (Level 300)
DEV303 - Integrating Silverlight 2 into Existing Web Sites (Level 300)
DEV305 - Leverage SQL Server 2008 in Your .Net Code with Visual Studio 2008 SP1 (Level 300)
DEV306 - Windows Azure: Building Web Sites and Services in the Cloud (Level 300)
DEV308 - Internet Explorer 8 : What's New for Developers? (Level 300)
DEV309 - Building Web Sites with ASP.NET MVC Framework (Level 300)
DEV311 - Building Windows 7 and Windows Vista Compatible Applications (Level 300)
DEV312 - Dynamic Languages and the .Net Framework (Level 300)
DEV313 - Building Composite Applications in WPF (Level 300)
DEV314 - Design Patterns – Learn From the Experience of Others (Level 200)
DEV401 - ASP.NET Ajax Internals (Level 400)
DEV402 - Concurrent Programming: From Thread Pool to Parallel Extensions (Level 400)
DEV403 - A Deep Dive into LINQ (Level 400)
DEV404 - Hardcore C#: Hidden Power and Flexibility (Level 400)