home » blogs » mohit » Get Enter Key Press Event Using JavaScript

To rate this blog entry please  register or login

Author

mohit mohit (Member since: 9/24/2009)

View mohit 's profile

Comments (no comments yet)

Post a comment

Comment (No HTML)  

Type the characters:
 *
 
   

Join CodeAsp.Net for FREE Today!

It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.

enter your email address:

Blogs RSS Feed

mohit's latest blog posts

  • Alert Box From ASPX Code-Behind Code
    1/20/2010
    In this blog I will explain how to open a JavaScript alert from Code-behind file.I want to show ‘Welcome’ alert on page load. Below is my code:-protected void Page_Load(object sender, EventArgs e) { Response.Write("<script>alert('Welcome')</script>"); }   Happy Coding:)
  • DataTable in ASP.NET
    1/14/2010
    In this blog I will explain how to create DataTable. here is my code:- creating Table first- private DataTable myTestTable() { DataTable myTable = new DataTable(); DataColumn myColumn; myColumn = new DataColumn(); myColumn.DataType = Type.GetType("System.String"); myColumn.ColumnName = "Name"; myTable.Columns.Add(myColumn); myColumn = new DataColumn(); myColumn.DataType = Type.GetType("System.String"); myColumn.ColumnName = "FatherName"; myTable.Columns.Add(myColumn); ...
  • Unique constraint in SQL
    12/16/2009
    In this blog I will explain Unique constraint in SQL.If i create a UNIQUE constraint, i can't insert duplicate data in that column.The UNIQUE constraint ensures that all values in a column are distinct.Example i have created a Table:-CREATE TABLE UNIQUE_EXAMPLE ( ID INT UNIQUE, Name VARCHAR(50) ) Now I am inserting data in UNIQUE_TABLE:-INSERT INTO UNIQUE_EXAMPLE values ('1','Mohit'); INSERT INTO UNIQUE_EXAMPLE values ('2','Rahul'); INSERT INTO UNIQUE_EXAMPLE values ('3','Deepak'); If I ...
  • two-dimensional array in C Sharp
    12/15/2009
    In this blog I will explain how to use two-dimensional array in C#.Here is my aspx code:-<body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txt2dArray" runat="server" TextMode="MultiLine"></asp:TextBox> </div> </form> </body> Here is my Code behind code:-namespace Test { public partial class _Default : System.Web.UI.Page { private string[,] _test = { {"Name","Mohit"}, {"Sex","Male"}, {"Address","India"}, {"PhNo...
  • Generate Random Number In JavaScript
    11/24/2009
    In this Blog I will explain how we can gernerate random number. Example -   <HTML><HEAD><SCRIPT type="text/javascript"> function GenerateRandomNo() { var _date=new Date() var ran_num=(_date.getSeconds())%10 var ran_num=ran_num+1 alert(ran_num) }</SCRIPT></HEAD><BODY> <form> <INPUT TYPE="button" VALUE="Generate Number from 1 to 10" onClick="GenerateRandomNo()"> </FORM></BODY></HTML>   Happy Coding:) Mohit Kumar
Blogs RSS Feed

Latest community blog posts

  • Fetching Data from Database and Populating fields in the Form using LINQ to SQL
    14 hours, 33 minutes ago
    In my previous example I have demonstrated how to create a simple form that would allow users to insert data to the database using L2S. In this example I’m going to demonstrate how to fetch and filter data from database and fill the fields in the form using L2S.  This example is basically a continuation of my previous example here . So I would suggest you to take a look at my previous example first before you proceed reading this example. Continue...
  • Inserting Data to Database using LINQ to SQL
    14 hours, 34 minutes ago
    Few months ago, I’ve created a simple demo about “Creating a Simple Registration Form using the ADO.NET way ”. In this article, I'm going to demonstrate how to create a simple form that would allows users to insert data to the database using L2S.   As an overview, LINQ to SQL is a technology that allow you to query sql server. LINQ to SQL is an O/RM (object relational mapping) implementation that ships in the .NET Framework "Orcas" release, and which allows you to model a relatio...
  • Learning ASP.NET: Where to Begin?
    3/1/2010
    I often see questions at forums(http://forums.asp.net ) asking stuffs like: Where to begin? Where Do I start? How to Get Started? So I deciced to write this "boring " post to express my opinion and hopefully this can help beginners find their way to get started with ASP.NET. Based on my experience learning ASP.NET is just like learning how to play a guitar.. (oh really? why could I say that? ).(1) First you must have this what we called "interest " because if you d...
  • Pluralsight On-Demand Training library
    3/1/2010
    Pluralsight is an online .NET Training library which provides online training materials for .NET developers. Example trainings available on demand: ·  .NET 3.5 ·  Agile Team Practices ·  ASP.NET 3.5 ·  ASP.NET AJAX ·  ASP.NET MVC ·  BizTalk 2006 ·  BizTalk Server 2006 R2    ·  BizTalk Server 2009 ·  iPhone ASP.NET ·  LINQ ·  Managed Services Engine ·  Silverlight 3 ·  SharePoint Services ·  SQL Server 2008    ·  VSTS ·  WCF ·  Windows Server AppFabric, formerly "Dubli...
  • NEW DATA TYPES IN SQL SERVER 2008
    2/17/2010
    • Date and Time: Four new date and time data types have been added, making working with time much easier than it ever has in the past. They include: DATE, TIME, DATETIME2, and DATETIMEOFFSET. • Spatial: Two new spatial data types have been added--GEOMETRY and GEOGRAPHY-- which you can use to natively store  and manipulate location-based information, such as Global Positioning System (GPS) data. • HIERARCHYID: The HIERARCHYID data type is used to enable database applications to m...