home » people » mohit

mohit

mohit kumar

Profile

Name:
mohit kumar
Location:
N/A
Bio:
N/A
Interests:
N/A

Community info

Member since:
9/24/2009 6:05:28 AM
Rank:
2
Role:
Member
Total Posts:
40
Total points:
776

Personal Information

Favorite Music:
N/A
Favorite TV Shows:
N/A
Favorite Books:
N/A
Favorite Cuisines:
N/A
Occupation:
N/A
Sex:
Undefined
Industry:
Loading ...

Confirm

  • Alert Box From ASPX Code-Behind Code
    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')</sc...
    1/20/2010 11:46:58 AM - Comments:3
  • DataTable in ASP.NET
    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.GetT...
    1/14/2010 1:57:10 PM - Comments:0
  • Unique constraint in SQL
    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_E...
    12/16/2009 12:13:59 PM - Comments:0
  • two-dimensional array in C Sharp
    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> &l...
    12/15/2009 12:17:37 PM - Comments:0
  • Generate Random Number In JavaScript
    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(ra...
    11/24/2009 12:12:31 PM - Comments:0
  • How to create a Object in JavaScript
    In this blog I will explain how to create a Object in JavaScript. <html> <head> <script type="text/javascript"> var info = new Object(); info.Name = "Mohit"; info.Address = "Delhi"; info.PhNo = 100; alert("Name: " + info.Nam...
    11/18/2009 6:12:24 AM - Comments:0
  • Open a New Window in JavaScript
    In this blog I will explain how to open a new window in JavaScript. Example:- <html> <head> <script type="text/javascript"> function openWin() { window.open("http://www.google.co.in/", "newWin", "status,width=500,height=500,to...
    11/18/2009 4:58:57 AM - Comments:0
  • Get Enter Key Press Event Using JavaScript
    In this blog I will explain How to get enter keypress event in JavaScript. Example:- <html> <HEAD> <SCRIPT type="text/javascript" language="javascript"> function enterHere(e) { var code = e.keyCode; if(code == 13) alert("WE...
    11/17/2009 7:09:35 AM - Comments:0
  • Array in Javascript
    In this blog I will explain Array in JavaScript. An array is a variable, which can hold more than one value, at a time. It is a little Database holding any given type of information, and is easily accessible. There are two ways of defining an Array.Exampl...
    11/17/2009 2:33:04 AM - Comments:0
  • using if...else in switch statement in javaScript
    HI, In this blog I will show how to use if...else in switch statement. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <script type="text/javascript"> var num = prompt("Please enter 0-5 value"); switc...
    10/29/2009 9:39:34 AM - Comments:0
4 people found.