Click here to Skip to main content
15,915,513 members
Home / Discussions / Database
   

Database

 
GeneralRe: How Do i combine this two queries Help(Addition to the below one Pin
Arun.Immanuel25-Apr-07 3:10
Arun.Immanuel25-Apr-07 3:10 
QuestionHow Do i combine this two queries Help Pin
Vimalsoft(Pty) Ltd24-Apr-07 0:17
professionalVimalsoft(Pty) Ltd24-Apr-07 0:17 
AnswerRe: How Do i combine this two queries Help Pin
Colin Angus Mackay24-Apr-07 0:30
Colin Angus Mackay24-Apr-07 0:30 
GeneralRe: How Do i combine this two queries Help Pin
Vimalsoft(Pty) Ltd24-Apr-07 0:40
professionalVimalsoft(Pty) Ltd24-Apr-07 0:40 
GeneralRe: How Do i combine this two queries Help Pin
Colin Angus Mackay24-Apr-07 6:39
Colin Angus Mackay24-Apr-07 6:39 
QuestionHelp me in developing stored Pin
Bilal wani23-Apr-07 23:53
Bilal wani23-Apr-07 23:53 
AnswerRe: Help me in developing stored Pin
Colin Angus Mackay23-Apr-07 23:55
Colin Angus Mackay23-Apr-07 23:55 
GeneralRe: Help me in developing stored Pin
Bilal wani24-Apr-07 19:23
Bilal wani24-Apr-07 19:23 
Dear Friend ,
I have created the login page, you just go through the code of that page below:

Client End:(ASP.NET 2005)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>





<title>Metalearn Login Page


// <!CDATA[



// ]]>




<asp:panel id="Panel1" runat="server" backcolor="MidnightBlue" height="236px" style="z-index: 100;
left: 429px; position: absolute; top: 176px; border-left-style:inset; border-bottom-color:Aqua; border-right-color:Aqua" width="425px" forecolor="Aqua">
<asp:label id="Label2" runat="server" height="23px" style="z-index: 100; left: 36px;
position: absolute; top: 53px" text="User Name" width="129px">
 
<asp:button id="Button2" runat="server" style="z-index: 101; left: 183px; position: absolute;
top: 160px" text="Sign In" validationgroup="SignIn" onclick="Button2_Click" backcolor="CornflowerBlue" bordercolor="CornflowerBlue" width="77px">
<asp:label id="Label3" runat="server" height="25px" style="z-index: 102; left: 35px;
position: absolute; top: 111px" text="Password" width="96px">
<asp:textbox id="txtuname" runat="server" style="z-index: 103; left: 210px; position: absolute;
top: 55px" backcolor="Beige" validationgroup="SignIn">
<asp:textbox id="passwrd" runat="server" style="z-index: 104; left: 211px; position: absolute;
top: 108px" textmode="Password" width="149px" backcolor="LightGoldenrodYellow" validationgroup="SignIn">
 
<asp:requiredfieldvalidator id="RequiredFieldValidator2" errormessage="* Please enter your Password" controltovalidate="TextBox1" validationgroup="SignIn" runat="server" style="z-index: 105; left: 209px; position: absolute; top: 137px" font-size="XX-Small" width="187px">
<asp:button id="Button1" runat="server" validationgroup="SignIn" style="z-index: 106; left: 270px; position: absolute;
top: 159px" text="Reset" onclick="Button1_Click" backcolor="CornflowerBlue" bordercolor="CornflowerBlue" width="104px">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" errormessage="* Please enter your User Name" controltovalidate="TextBox1" validationgroup="SignIn" runat="server" style="z-index: 107; left: 208px; position: absolute; top: 84px" font-size="XX-Small" width="201px">   

   
<asp:label id="Label1" runat="server" height="19px" style="z-index: 101; left: 460px;
position: absolute; top: 194px" text=" Login In Here" width="247px" forecolor="Cyan">
<asp:panel id="Panel2" runat="server" backcolor="White" forecolor="MintCream"
="" height="428px" style="z-index: 99; left: 146px; position: absolute; top: 81px; border-style:outset;
border-bottom-color:Lime; border-left-color:Lime; border-right-color:Lime; border-top-color:Lime" width="742px">
















<asp:label id="lblerrormsg" runat="server" forecolor="Red" style="z-index: 101; left: 310px;
position: absolute; top: 346px" width="282px">
 







Server end:(C#)

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using Banking.Encryption;
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// Put user code to initialize the page here //info.dll DATA =G5HQ4RcM3shUNn5uaYHTztba/UuiBuDG

}


protected void Button2_Click(object sender, EventArgs e)
{
EncryptDecrypt objEncrypt = new EncryptDecrypt();
if (txtuname.Text = "bank" & passwrd.Text = "bn")
{
Response.Redirect("Mainmenu.aspx", false);
}
else
{
lblerrormsg.Text = "Invalid Login";
//Button2.Attributes.Add("onclick", "return validations();");
txtuname.Text = "";
passwrd.Text = "";
txtuname.Focus();
}
}

protected void Button1_Click(object sender, EventArgs e)
{
lblerrormsg.Text = "";
txtuname.Text = "";
passwrd.Text = "";
txtuname.Focus();
}
}


Now the thing I have created a database table in SQL which can store userlogins now I want to know how to write the code in c# which can verify userlogins how to pass the parameters to compare user logins.

Thanks
Bilal
GeneralRe: Help me in developing stored Pin
Rocky#24-Apr-07 20:22
Rocky#24-Apr-07 20:22 
GeneralRe: Help me in developing stored Pin
Bilal wani25-Apr-07 18:33
Bilal wani25-Apr-07 18:33 
GeneralRe: Help me in developing stored [modified] Pin
Bilal wani25-Apr-07 19:05
Bilal wani25-Apr-07 19:05 
QuestionConnectionString Pin
blackjack215023-Apr-07 23:19
blackjack215023-Apr-07 23:19 
AnswerRe: ConnectionString Pin
Colin Angus Mackay23-Apr-07 23:50
Colin Angus Mackay23-Apr-07 23:50 
AnswerRe: ConnectionString Pin
Pete O'Hanlon24-Apr-07 0:55
mvePete O'Hanlon24-Apr-07 0:55 
GeneralRe: ConnectionString Pin
Aaron VanWieren25-Apr-07 3:54
Aaron VanWieren25-Apr-07 3:54 
QuestionProcedure or function SummerizeInsert has too many arguments specified. Pin
rkherath23-Apr-07 23:13
rkherath23-Apr-07 23:13 
AnswerRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Colin Angus Mackay23-Apr-07 23:48
Colin Angus Mackay23-Apr-07 23:48 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 0:00
rkherath24-Apr-07 0:00 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Colin Angus Mackay24-Apr-07 0:07
Colin Angus Mackay24-Apr-07 0:07 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 0:14
rkherath24-Apr-07 0:14 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 1:24
rkherath24-Apr-07 1:24 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Elina Blank24-Apr-07 2:42
sitebuilderElina Blank24-Apr-07 2:42 
AnswerRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
gauthee23-Apr-07 23:50
gauthee23-Apr-07 23:50 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
Colin Angus Mackay23-Apr-07 23:51
Colin Angus Mackay23-Apr-07 23:51 
GeneralRe: Procedure or function SummerizeInsert has too many arguments specified. Pin
rkherath24-Apr-07 0:09
rkherath24-Apr-07 0:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.