in

Al Pascual

a little of ASP.NET with a dust of MVC, a little AJAX, a sprinkle of GIS and Silverlight 2.0

Browse by Tags

  • Code Collection: Old code to improve the DataGrid control

    Found this code in my old hard disk, I remember I received a few emails about how to improve a control, this could be helpful to somebody: /// <summary> /// Summary description for MyDataGrid. /// </summary> public class MyDataGrid : System.Web.UI.WebControls.DataGrid { [Category("Design"...
    Posted to Al Pascual (Weblog) by albert on 06-14-2008
  • Code Snip: Getting the values on GridView update event

    Microsoft should call it a bug, when using the GridView updating event the arguments received by the method are empty. If you have been using the GridView and to update the value, you'll find that after pressing the update button no values come into the event. To resolve this issue, you'll have...
    Posted to Al Pascual (Weblog) by albert on 11-26-2007
  • Export DataGrid/GridView to Excel

    Got to my attention the code on this old post is all screw up, please find the right version below. /// <summary> /// Summary description for ExportToExcel. /// </summary> public class ExportToExcel { private Page m_pPage = null; public ExportToExcel(Page pPage) { m_pPage = pPage; } public...
    Posted to Al Pascual (Weblog) by albert on 11-25-2007
  • Code Snip Collection: Do you know how big is your session?

    Using the session state is a great resource, there are many forums with threads talking about the best way to use session. Some others believe to never use session. I personally like to take advantage as is there and I can keep secure information of the user. Of course it could be a very expensive resource...
    Posted to Al Pascual (Weblog) by albert on 08-21-2007
  • The power of CompositeControl. Another skeleton class in VB.NET

    This is a response for all the emails I have received about using Composite Control in VB: The previous post was in C# http://alpascual.com/blog/al/archive/2006/06/19/The-power-of-CompositeControl.-Another-skeleton-class-.aspx Second part using VB.NET: Imports System Imports System.Collections.Generic...
    Posted to Al Pascual (Weblog) by albert on 05-18-2007
  • Code Snip "Customizing ScriptManager" to detect errors

    Quick code snip that you should add to your script manager if you are using AJAX to catch errors, something pretty frequent when using the ajax library. aspx.cs: protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e) { ScriptManager1.AsyncPostBackErrorMessage ...
    Posted to Al Pascual (Weblog) by albert on 03-26-2007
  • Code Snip Colletion "Encrypting and Decrypting"

    This class is just a code snip to encrypt and decrypt an string. Very handly to keep around. on the static string sKey, please do change it to something unique for you, otherwise anybody will be able to decrypt your encrypted stuff. public class AlEncrypt { private static string sKey = "al%&is...
    Posted to Al Pascual (Weblog) by albert on 02-14-2007
  • Code Snip "AJAX Select All Check Box List Extender"

    Provided by Sco tt Osborne // (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Permissive License. // See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx . // All other rights reserved. using System; using System.Web.UI.WebControls;...
    Posted to Al Pascual (Weblog) by albert on 12-23-2006
  • Code Snip "AJAX Timer"

    Tired of receiving the same email, this is the code for the timer. Normal mistake, people sets the timer outside the UpdatePanel < html xmlns ="http://www.w3.org/1999/xhtml" > < head runat ="server"> < title > Untitled Page </ title > </ head > < body...
    Posted to Al Pascual (Weblog) by albert on 12-21-2006
  • Code Snip Collection "Creating CAPTCHA Like Words "

    From Mohammad Azam http://forums.asp.net/1482564/ShowThread.aspx CaptchaControl.cs: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls...
    Posted to Al Pascual (Weblog) by albert on 12-01-2006
Page 1 of 2 (16 items) 1 2 Next >
Albert Pascual using CS 2007
Powered by Community Server (Commercial Edition), by Telligent Systems