Tuesday, May 20, 2014

Sample Resignation Letter



Hi Sir/Madam,

                        Please accept my letter of resignation from the position of Jr.Analyst Programmer with XYZ  effective from today.

Allow me to record a note of thanks for the numerous opportunities awarded to me for my professional and personal development during my 5.2 years here. I am proud to be a part of this esteemed organization which has groomed me to where I am today.

I relish my time here rising from a Trainee engineer to the current position because of the trust and support rendered to me, which I am grateful for.

Please consider my request and relieve me as soon as possible.


Thanks & Regards:
ABC
Team Lead| XYZ
 

Resignation Letter

Dear Sir/Madam,

I would like to inform you that I am resigning from my current position as Analyst Programmer for the XYZ company, effective from May 20th.

                       While I believe that I am moving for good reasons, I am sorry to leave.Thank you for the opportunities for professional and personal development that you have provided me during the last 1 year. I have enjoyed working for the XYZ company and appreciate the support provided me during my tenure with the company.

     Please consider my request and relieve me as soon as possible.

Your's Sincerely,
ABC.

Differences between ASP.NET MVC 3 Vs MVC 4 Vs MVC 5

ASP.NET MVC 3

  • New Project Templates having support for HTML 5 and CSS 3.
  • Improved Model validation.
  • Razor View Engine introduced with a bundle of new features.
  • Having support for Multiple View Engines i.e. Web Forms view engine, Razor or open source.
  • Controller improvements like ViewBag property and ActionResults Types etc.
  • Unobtrusive JavaScript approach.
  • Improved Dependency Injection with new IDependencyResolver.
  • Partial page output caching.

ASP.NET MVC 4

  • ASP.NET Web API, a framework that simplifies the creation of HTTP services and serving a wide range of clients. Follow to create your first ASP.NET Web API service.
  • Adaptive rendering and other look-n-feel improvements to Default Project Templates.
  • A truly Empty Project Template.
  • Based on jQuery Mobile, new Mobile Project Template introduced.
  • Support for adding controller to other project folders also.
  • Task Support for Asynchronous Controllers.
  • Controlling Bundling and Minification  through web.config.
  • Support for OAuth and OpenID logins using DotNetOpenAuth library.
  • Support for Windows Azure SDK 1.6 and new releases.

ASP.NET MVC 5

  • Bootstrap replaced the default MVC template.
  • ASP.NET Identity for authentication and identity management.
  • Authentication Filters for authenticating user by custom or third-party authentication provider.
  • With the help of Filter overrides, we can now override filters on a method or controller.
  • Attribute Routing is now integrated into MVC 5.

Friday, May 9, 2014

Ajax Get and Post Methods in MVC


<script type="text/javascript">
    $(document).ready(function () {
        $("#ddlparentmenu").live('change', function () {
            var id = $("#ddlparentmenu").val();
            $.ajax({
                dataType: 'json',
                type: 'POST',
                url: '@Url.Action("GetSubmenu")',
                data: { type: id },
                success: function (data) {
                    if (data != null && data!=0 && data!="") {
                        $("#trsub").removeAttr("style")
                        var appenddata='<option value="">--Select--</option>';
                        $.each(data, function (key, value) {
                            appenddata += "<option value = '" + value.SubmenuId + " '>" + value.SubMenu + " </option>";                      
                        });
                        $('#ddlsub').html(appenddata);
                    }
                    else
                    {
                        $("#ddlsub").empty();
                        $("#trsub").hide();
                    }
                }
            });
        });
    });
</script>

Disabling Dates in Date Picker Control Based on other Date Picker in MVC

<script type="text/javascript">
    $(document).ready(function () {
        var val = $('#Sdate').val();
        var d = new Date();
        var dat1 = (d.getMonth() + 1) + "/" + d.getDate() + "/" + d.getFullYear();

        $(function () {
            $('#Sdate').datepicker({
                maxDate: new Date(Date.parse(dat1)),
                onSelect: function (dateText, inst) {
                    var Days = 1296000000; // 15 days in micro seconds
                    var dat = (d.getMonth() + 1) + "/" + d.getDate() + "/"+ d.getFullYear();
                 var presentdate=  new Date(Date.parse(dat));
                 var exdate = new Date(Date.parse(dateText) + 1296000000);
             
                    if (exdate > presentdate)
                    {
                        $('#Edate').datepicker("option", "minDate", new Date(Date.parse(dateText)));
                        $('#Edate').datepicker("option", "maxDate", new Date(Date.parse(dat)));
                        $('#Edate').datepicker("setDate", dateText);
                        $("#Edate").datepicker().datepicker('enable');
                    }

                    if (exdate < presentdate) {
                            $('#Edate').datepicker("option", "minDate", new Date(Date.parse(dateText)));
                            $('#Edate').datepicker("option", "maxDate", new Date(Date.parse(dateText) + Days));
                            $('#Edate').datepicker("setDate", dateText);
                            $("#Edate").datepicker().datepicker('enable');
                    }
               
                }
            });
            $("#Edate").datepicker({
                minDate: new Date(Date.parse(val)),
                maxDate: new Date(Date.parse(val) + 1296000000),
                setDate: new Date(Date.parse(val))
            });

            GetData();
        });
    });
 
</script>

<table>
 <tr>
                <td class="div-left">From Date<span style="color:red">*</span>
                </td>
                <td class="div-right">
                    @Html.TextBoxFor(m => m.SDate, new { @class = "membertextbox", @id = "Sdate", @Value = Model.SDate.ToString("MM/dd/yyyy"),@readonly="readonly"})
                </td>
            </tr>
            <tr>
                <td class="div-left">To Date<span style="color:red">*</span>
                </td>
                <td class="div-right">
                    @Html.TextBoxFor(m => m.EDate, new { @class = "membertextbox", @id = "Edate",@Value = Model.EDate.ToString("MM/dd/yyyy"),@readonly="readonly"})
                    <span style="color:red">(Select dates should be with in 15days)</span>
                </td>
            </tr>
</table>