Friday 5 October 2012

DateTime Format in GridView ItemTemplate In Asp.net C#

<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblDate" runat="server" Text='<%# Eval("Date", "{0:dd/MM/yyyy}")%>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>

7 comments:

  1. http://csharpdotnetfreak.blogspot.com/2009/08/handle-gridview-eval-null-itemtemplate.html

    ReplyDelete
  2. http://blog.bobcravens.com/2009/11/ajax-calls-to-asp-net-mvc-action-methods-using-jquery/

    http://www.dotnet-tricks.com/Tutorial/mvc/9KHW190712-ViewData-vs-ViewBag-vs-TempData-objects-in-mvc3-razor.html
    http://www.codeproject.com/Articles/476967/WhatplusisplusViewData-2cplusViewBagplusandplusTem


    http://geekswithblogs.net/michelotti/archive/2008/06/28/mvc-json---jsonresult-and-jquery.aspx

    msdn.microsoft.com/en-us/library/gg508808(v=vs.98).aspx

    http://yassershaikh.com/how-to-upload-and-display-an-image-using-html-beginform-in-razor-view-mvc-3/

    http://msdn.microsoft.com/en-us/vs2010trainingcourse_aspnetmvc3formsandvalidation_topic3.aspx

    http://dineshkumara.blogspot.in/2011/06/mvc-3-razor-editor-template.html

    http://stackoverflow.com/questions/1982517/execution-flow-in-mvc

    ReplyDelete
  3. http://www.dotnetcurry.com/ShowArticle.aspx?ID=814

    ReplyDelete


  4. @* *@


    $(document).ready(function () {
    initialize();

    });
    var geocoder;
    var map;
    function initialize() {
    geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(39.232253, -101.704103);
    var mapOptions = {
    zoom: 15,
    center: latlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP


    }
    map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
    codeAddress();
    }

    function codeAddress() {
    var address = '@TempData["ProviderAddress"]';
    geocoder.geocode({ 'address': address }, function (results, status) {
    if (status == google.maps.GeocoderStatus.OK) {
    map.setCenter(results[0].geometry.location);
    var marker = new google.maps.Marker({
    map: map,
    position: results[0].geometry.location
    });
    } else {
    alert("Geocode was not successful for the following reason: " + status);
    }
    });
    }



    ReplyDelete
  5. http://www.codeproject.com/Articles/148949/ASP-NET-MVC-3-the-Razor-View-Engine-and-Google-Map

    ReplyDelete
  6. http://stackoverflow.com/questions/3896871/google-map-driving-direction-source-code-for-their-example

    ReplyDelete
  7. https://google-developers.appspot.com/maps/documentation/javascript/examples/directions-simple

    ReplyDelete