Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

ClimerChinna

@ClimerChinna
About
Posts
4
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ModalPopupExtender popup Problem
    C ClimerChinna

    Have you given CancelControlId and TargetControlId properties in modal popup extender. You need to assign corresponding button id's to these properties

    ASP.NET com help

  • Interview question: What are the 5 classes you use most often?
    C ClimerChinna

    System.web.ui system.io system.data system.data.sqlclient system.configuration :)

    C# question career

  • Interview question: What are the 5 classes you use most often?
    C ClimerChinna

    system.web.ui system.io system.data system.configuration system.data.sql :)

    C# question career

  • Date Validation
    C ClimerChinna

    <table>
    <tr>
    <td>
    Start Date:
    </td>
    <td>
    <asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
    End Date:
    </td>
    <td>
    <asp:TextBox ID="txtEndDate" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
    Rollout Date:
    </td>
    <td>
    <asp:TextBox ID="txtRolloutDate" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <asp:Button ID="btnsave" runat="server" Text="Save" OnClientClick="fnSave();" />
    </td>
    </tr>
    </table>

    JAVASCRIPT: function fnSave() { debugger; var startdate=new Date(document.getElementById("txtStartDate").value); var enddate=new Date(document.getElementById("txtEndDate").value); var rolloutdate=new Date(document.getElementById("txtRolloutDate").value); var curdate = new Date(); if (!((startdate.getFullYear() > curdate.getFullYear() + 2) && (startdate.getFullYear() < curdate.getFullYear() - 2) && (((enddate - startdate) / (24 * 60 * 60 * 1000 * 365)) < 2) && (((enddate - rolloutdate) / (24 * 60 * 60 * 1000 * 365)) < 1))) { alert("please provide correct dates"); } }

    JavaScript javascript help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups