Friday, 29 November 2013

How to create a username and password page with login to another page?

Step 1-Firstly from toolbox select Label and select properties from solution explorer of label and change text "username"in demo.aspx web form..
Step 2-Similarly for password also select a Label and change text "password".
Step 3-Then straight to username label place textbox for the input of username.
Step 4-Similarly for password place a textbox.
Step 5-Then select validation from toolbox for both username and password.
For both regular expression validation is to be selected.
Step 6-For username change properties of validation where error message "enter email"
and control to validate "Textbox1",validation expression "\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" is to be given.
Step 7-Similarly for password validation property error message "enter password",control to validate "Textbox2",validation expression "\d{6}" is to be given. 
Step 8-Now from toolbox button is selected change properties from solution explorer where text "login",PostBackUrl "demo2.aspx" is to be selected.
Step 9-click the login button and write this code.
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class demo : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)

    protected void Button1_Click(object sender, EventArgs e)

Thursday, 28 November 2013

How to create a new website,web form in visual studio with visual c#

Microsoft visual studio-It is an integrated development environment(IDE) or interactive development environment  from Microsoft.That means IDE  is a software application which provide a comprehensive facility to computer programmers for software development.An IDE  mostly consists of a source code editor,build automation tool and a debugger.Some contains a compiler and interpreter both like Net Beans and Eclipse.
To create a website
File->New->Website->ASP.NET Empty Website


Installed templates->visual c#
Change  C:\Users\Administrator\Documents\Visual Studio 2010\WebSites\Websites1 to

 C:\Users\Administrator\Documents\Visual Studio 2010\WebSites\Demo
Where Demo or any other names can be given.Then  a project named Demo is created successfully.

In right side we can see a solution explorer tab ->right click and select the option 'add new item'->
Web form->name given as 'demo1.aspx' is added.
Here you can see the demo1.aspx web form.
Here you can get the design,split and source page which would be named as demo1.aspx

Tuesday, 26 November 2013

Myths on testing

Myths:"Testing is too expensive"-Test when software development,it results in lesser cost.Otherwise the resulting product will be useless and have to pay more for maintenance and correction later.

Myths:"Missed bugs are due to testers" -It is not right to blame testers for bugs remaining.It depends on time,cost and requirement changing constraints.
Myths:"If software is tested it must be bug free"-No one can say that the software is 100% bug free if tester will superb skills has tested it.

Myths:"Anyone can test the software"-Testers know it well that it is a myth.It is not even possible for whose who developed it to find the bugs.

Myths:"Testers task is to find the bugs"-Testers understand the overall working of the software,what the dependencies are,and what the impacts of one module on another module are.Developers are only responsible for the specific component that is assigned to them.

Software Testing Overview

Testing-It is the process of evaluating a system or its components with the aim to find that whether it satisfies the specified requirements or not.

When to start testing?
An early start to testing reduces the cost,time to rework and error free software that is delivered to the client.

When to stop testing?
Testing is a never ending process.No one can say that any software is 100% tested.

Following professionals are included in testing field-

  • software testers
  • software developers
  • project managers
  • end users
Myths on testing

Sunday, 24 November 2013


Full form is automated teller machine.ATM's are very basic computer(or data terminal).It have 2 input devices keypad,card reader and 4 output devices cash dispenser,receipt printer,speaker and screen.
  • Firstly insert a card into the card reader.The card reader reads information encoded on the magnetic strip on back of the card.
  • The card black strip is encoded with a unique card number,expiry date or CVV and a PIN.
  • Response to the prompts on the screen.The ATM asks the PIN.The authentication to access account fund is provided by entering the PIN(personal identification number).
  • ATM communicates with bank and within a minute we get money and a receipt from the bank account balance.

Friday, 22 November 2013

Difference between Internel and External modem

Internal modem
Internal modem-It is plugged directly into the CPU.Physically it is in the form of a card plugged into one of the expansion slots on the mainboard on CPU.The advantage is lesser in price and economical compared to external modem.The drawback of is that it has no indicator which is present in external modem.
External modem

External modem-It is connected external to the CPU.It is connected to CPU through an USB.It uses separate voltage source as an adapter.The advantage is its portability so that it can be used for another computer.It is equipped with an indicator which allow us to monitor the status of it.The drawback is it is expensive and need a separate space to put it though small.

Wednesday, 20 November 2013

How Internet Speed Is Measured

Internet speed is measured in bits by service provider.Since most computer files arrange data in group of eight bits.8 bit=1 bytes.For this reason transfer rate shown when files are downloaded is always in bytes.

  • bit per second=bps
  • kilobit per second=kbps
  • megabit per second=mbps
  • byte per second=Bps
  • kilobyte per second=kBps
  • megabyte per second=mBps
Bit(binary digit)-A bit is the smallest unit of data in computer.A bit has a single binary value either 0 or 1.
Bit rate-It is the rate of bits transmitted usually per second.
  • 4 bits called nibble
  • 8 bits=1 byte(octet)
  • 4 byte=a 32 bit word
  • 1000 bits= 1 kilo bit
  • 1000 kilobits=1 megabit
 a 6 kbps internet connection can transfer data at speed of 6000 bits per second (since 1000 bits=1 kilobits)

Tuesday, 19 November 2013

Things needed to get Internet connection

1. a computer

2. a modem- The modem is used to modulate digital data of a personal computer to electrical signals,these signals are transmitted through telephone lines and demodulated by another modem at the receiver side to recover the digital data.

3. a telephone line-It refers to the physical wire which connects users telephone to the telecommunication network.

4. an internet browser- The main purpose of browser is to bring information to the user (retrieve) ,allowing them to view the information (display) and access other information (navigation) on www.
They can also be used to access information provided by web servers in private network or files in file system.The major web browsers are Google chrome,Mozilla Firefox,Internet Explorer,Opera,Safari.

5. software to connect to ISP ISP account with username and password