TipsOnLips.net

Your .net tips and tricks source

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010


ASP.NET Controls Articles

  1. Programmatic access to ValidationSummary control
  2. ASP .NET - A ValidationSummary with some style
  3. Removing SPAN-tags around server control
  4. ASP.NET 2.0 Wizard Control
  5. Using Extension methods in ASP.NET 3.0 and 3.5 with generics
  6. Pimpin validation Summary with CSS
  7. How to add a required validator to a CheckBoxList
  8. Hierarchical GridView With Clickable RowsHierarchical GridView With Clickable Rows
  9. ASP.Net GridView Checkbox Javascript Validation
  10. How to implement the smart navigation features in ASP.NET 2.0
  11. How To Add CheckBox And Image Button Columns In GridView

Categories: ASP.NET
Posted by developer on Sunday, April 05, 2009 6:49 AM
Permalink | Comments (0) | Post RSSRSS comment feed

HTTP Handlers and Modules in ASP.NET

  1. 15 Seconds : HTTP Handlers and HTTP Modules in ASP.NET
  2. Use an HttpHandler to stop bandwidth leeching of your images
  3. Roll Your Own HttpHandler
  4. Scalable Apps with Asynchronous Programming in ASP.NET
  5. Protect Your Downloadable Files Using HTTP Handlers
  6. How To Create an ASP.NET HTTP Handler by Using Visual C# .NET
  7. Two ASP.NET HttpHandler Image Hacks
  8. Authenticated File Access using HTTP Handler

Categories: ASP.NET
Posted by developer on Saturday, April 04, 2009 5:16 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Create Event in C#

Using EventHandler

Declaration: 

        public event EventHandler UserSaved;

        public void OnUserSaved()

        {       

            if (UserSaved != null)       

            {       

               UserSaved(this, EventArgs.Empty);       

            }       

        }   

 

Event Trigger with parameter:

public void OnCustomerSelected(string customerBusinessKey)          
         {             
 
if (!this.CustomerSelected.IsNotNull()) return
;             
 
var e = new CustomerEventArgs

                 {

                  CustomerBusinessKey = customerBusinessKey

                 };             
         

      this.CustomerSelected(this, e);         

          

}


Using Delegate

public delegate void CreateUserControlValidated(object sender, ValidationEventArgs e);

public event CreateUserControlValidated Validated;

 

public class ValidationEventArgs : EventArgs

{

    public virtual IList<string> ClientExceptionList { get; set; }

}

 

Useful Articles: 1


Categories: C#
Posted by Admin on Friday, April 03, 2009 11:02 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Web Services & WCF Resources

  1. Encrypting SOAP Messages
  2. Using Session State in a Web Service
  3. How Your WCF Service Can Use MSMQ as a Durable Message Store
  4. Windows Communication Foundation: Videos

Tags: , ,
Categories: WCF | Web Services
Posted by developer on Wednesday, April 01, 2009 9:17 AM
Permalink | Comments (0) | Post RSSRSS comment feed