Click here to Skip to main content
15,891,423 members
Home / Discussions / Database
   

Database

 
GeneralRe:I want to know how a user can observe Pin
Christian Graus6-Sep-05 11:51
protectorChristian Graus6-Sep-05 11:51 
QuestionConnection Via DSN in VB.Net Pin
MODI_RAHUL5-Sep-05 3:20
MODI_RAHUL5-Sep-05 3:20 
AnswerRe: Connection Via DSN in VB.Net Pin
Andy Brummer5-Sep-05 4:05
sitebuilderAndy Brummer5-Sep-05 4:05 
GeneralRe: Connection Via DSN in VB.Net Pin
miah alom6-Sep-05 9:44
miah alom6-Sep-05 9:44 
GeneralRe: Connection Via DSN in VB.Net Pin
Andy Brummer6-Sep-05 12:18
sitebuilderAndy Brummer6-Sep-05 12:18 
GeneralRe: Connection Via DSN in VB.Net Pin
Anonymous7-Sep-05 3:23
Anonymous7-Sep-05 3:23 
QuestionPlease help me,,(MySql Front Installation) Pin
Jeeva Mary Varghese4-Sep-05 18:38
Jeeva Mary Varghese4-Sep-05 18:38 
QuestionUser And Password with ... Pin
mostafa_h4-Sep-05 8:58
mostafa_h4-Sep-05 8:58 
thank for your reply(Colin Angus Mackay )in advance!!
----
the type of password field = int
----
and this my code for check!?
----
private void btnOK_Click(object sender, System.EventArgs e)
{
//------->Step :1
if ((txtUserName.Text.Trim().Length == 0)|| (txtPassword.Text.Trim().Length == 0))
{

MessageBox.Show(Empty_MESSAGE,CAPTION_TITLE);
txtPassword.Text="";
txtUserName.Text="";
return;
}
//------>Step :2
string strFilter;
strFilter = "SELECT UserName,Password FROM User_Name WHERE Password='" +txtPassword.Text + "' AND UserName='"+txtUserName.Text+"'";
userAdapter=new SqlDataAdapter(strFilter,UserConnection);
SqlCommandBuilder UserCmd=new SqlCommandBuilder(userAdapter);
DataTable UserTable=new DataTable();
userAdapter.Fill(UserTable);
//------ Counting and Displaying
UserView = new DataView(UserTable,DEFAULT_FILTER,DEFAULT_SORT,DataViewRowState.OriginalRows);
//---->Step :3
if (UserView.Count == 0)
{
MessageBox.Show(NO_RECORDS_FOUND_MESSAGE,CAPTION_TITLE);
txtPassword.Text="";
txtUserName.Text="";
}
else
{
this.Hide();
//----displaying form
Private_Public_Form frm_pub_pri=new Private_Public_Form();
frm_pub_pri.ShowDialog();
}

//************* Finish ********/
}
//-----------
the difficult in this app. is , when password type=int
,system give an error , if we type in textbox of password non-numeral(character)

AnswerRe: User And Password with ... Pin
Colin Angus Mackay4-Sep-05 9:50
Colin Angus Mackay4-Sep-05 9:50 
QuestionUser And Password Pin
mostafa_h4-Sep-05 2:57
mostafa_h4-Sep-05 2:57 
AnswerRe: User And Password Pin
Colin Angus Mackay4-Sep-05 4:48
Colin Angus Mackay4-Sep-05 4:48 
Questionhow do i access a column from database Pin
ashima143-Sep-05 20:22
ashima143-Sep-05 20:22 
AnswerRe: how do i access a column from database Pin
Colin Angus Mackay3-Sep-05 21:31
Colin Angus Mackay3-Sep-05 21:31 
QuestionUpdate DataSet Pin
Zeeshan Gulzar3-Sep-05 4:15
Zeeshan Gulzar3-Sep-05 4:15 
AnswerRe: Update DataSet Pin
Besinci4-Sep-05 9:38
Besinci4-Sep-05 9:38 
GeneralRe: Update DataSet Pin
Zeeshan Gulzar6-Sep-05 5:51
Zeeshan Gulzar6-Sep-05 5:51 
QuestionVB and remote database(web) Pin
aluizs2-Sep-05 18:03
aluizs2-Sep-05 18:03 
Questioninset a Datacolumn Pin
PaulaM2-Sep-05 3:23
PaulaM2-Sep-05 3:23 
AnswerRe: inset a Datacolumn Pin
Besinci2-Sep-05 9:37
Besinci2-Sep-05 9:37 
Questionupdating the DB Pin
minkinin2-Sep-05 3:16
minkinin2-Sep-05 3:16 
AnswerRe: updating the DB Pin
Besinci2-Sep-05 10:04
Besinci2-Sep-05 10:04 
GeneralRe: updating the DB Pin
minkinin4-Sep-05 20:20
minkinin4-Sep-05 20:20 
GeneralRe: updating the DB Pin
Besinci4-Sep-05 21:24
Besinci4-Sep-05 21:24 
GeneralRe: updating the DB Pin
minkinin4-Sep-05 22:27
minkinin4-Sep-05 22:27 
GeneralRe: updating the DB Pin
Besinci5-Sep-05 7:49
Besinci5-Sep-05 7:49 

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.