Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

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

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)