I was new to c# and asp.net .I want to create a simple login page using ASP.net with c# code.I had 2 textboxs(username and id) and 1 button control.I stored all the username and id in oracle database.Ma table in database contents emp_name & password.what i need is ,once the users enter their username & id,and by clicking button control,it must check into the database.If is it in database means ,this login page call other .aspx page.if is it not in database means it should display a alert messagebox.I dont know how to proceed .........and i need a full code regarding on this.Please do help me...........(its vry urgent)

Thanks in advance...

Recommended Answers

All 5 Replies

You should look for FormsAuthentication:
Check this:

Although it uses SqlServer DB ...the idea remains the same except the way how CheckUser() method is implement that user System.Data.SqlClinet classes.

Check this:

hey thnks for ya kind reply.I made it to work.
here is ma coding..

protected void Submit_Click(object sender, EventArgs e)
        string constr;

        constr = "Provider=MSDAORA;DataSource=ltmpips;Password=creative;User ID=bsl";

        OleDbConnection con = new OleDbConnection(constr);

        OleDbCommand cm = new OleDbCommand("select   emp_employee_name,emp_psno from employee_master where emp_employee_name=upper('" + textbox1.Text + "')and emp_psno='" + textbox2.Text + "'", con);

        OleDbDataReader reader = cm.ExecuteReader();
        if (reader.HasRows)
            Response.Redirect("Entry.aspx?myname=" + textbox1.Text + "&myage=" + textbox2.Text);
            Response.Write("<script language=JavaScript>alert('Sorry,your username or password may be Invalid.Please enter Vaild Datas')</script>");


sir what does this statement do

Response.Redirect("Entry.aspx?myname=" + textbox1.Text + "&myage=" + textbox2.Text);

i m a novice in this language so plz help me

i m making my first project in .net having oracle in backend

so plz guys help me out

It will take you to another page named Entry.aspx with querysting parameters having values in textbox1 and textbox2...eg.
if you entered - joe in textbox1 and 15 in textbox2 you will be taken to new page and the url in addressbar will look like below:


i want to know source code for online banking in vb.net or asp.net using oracle as backend..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.