CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of DataBind
C#
enum ReportTypes 
{
   Country, CountryState, CountryStateZone, CountryStatePostCode, CountryZone, CountryStateCounty
}
 
var reportTypes = new Dictionary<int, string> () 
    { 
        {(int)ReportType.Country, "By Country"},
        {(int)ReportType.CountryState, "By Country, State"},
        {(int)ReportType.CountryStateZone, "By Country, State, Zone"},
by Cat   June 01, 2010 @ 4:55am
425 Views
no comments
 
//Uneven Row 
<%# Container.DisplayIndex % 2 == 0 ? "" : "altRow" %>
 
// Datetime Formatter with Culture
<%# ((DateTime)Eval("LogDatum")).ToString("t", System.Globalization.CultureInfo.CurrentCulture) %>
 
// Datetime Formatter
<%#Eval("LogDatum", "{0:HH:mm}")%>
 
//Nullable Boolean
by Arjan   March 24, 2010 @ 12:45pm
Tags: ASP, Databind
219 Views
no comments
 
C#
private void GetResourceSet()
{
    this.ResourceSet = Request.Form[this.lstResourceSet.UniqueID];
    if (ResourceSet == null)
        this.ResourceSet = Request.QueryString["ResourceSet"];
    if (this.ResourceSet == null)
        this.ResourceSet = ViewState["ResourceSet"] as string;
 
    if (this.ResourceSet == null)
        this.ResourceSet = "";
by Rick Strahl   September 22, 2009 @ 1:17pm
501 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate