Click here to Skip to main content
15,920,633 members
Home / Discussions / Database
   

Database

 
GeneralRe: HowTo: Get Column Detault Value in ADO.NET Pin
wolver-hampton-wanderer7-Sep-05 13:53
wolver-hampton-wanderer7-Sep-05 13:53 
Questionrestore an in used SQL Database Pin
i-p-g-i5-Sep-05 22:41
i-p-g-i5-Sep-05 22:41 
AnswerRe: restore an in used SQL Database Pin
Frank Kerrigan5-Sep-05 22:57
Frank Kerrigan5-Sep-05 22:57 
AnswerRe: restore an in used SQL Database Pin
miah alom6-Sep-05 9:26
miah alom6-Sep-05 9:26 
Questiondatagrid titel ... Pin
Anonymous5-Sep-05 21:14
Anonymous5-Sep-05 21:14 
AnswerRe: datagrid titel ... Pin
Frank Kerrigan5-Sep-05 22:54
Frank Kerrigan5-Sep-05 22:54 
AnswerRe: datagrid titel ... Pin
miah alom6-Sep-05 8:19
miah alom6-Sep-05 8:19 
Questionw can User observe his private information Pin
mostafa_h5-Sep-05 10:22
mostafa_h5-Sep-05 10:22 
hi!
I have 2 form and 2 sql table :
the following fields are for 2 table :
table 1 :
id_user type[int],username type[nvarchar],password type[nvarchar]
table 2:
id_name type[int],name type[nvarchar],telephone type[decimal]
//-----
after the user enter his username and password , if it's correct , the second form show the private information .
Now I want to add,delete,save the User private information , in how ,every user enter his
username and password ,show his private info .
How can it possible?
//---------------------
in btnOK_Click Event ,for affirmative user and password is Here :
*************************
private void btnOK_Click(object sender, System.EventArgs e)<br />
{<br />
//------->Step :1<br />
if ((txtUserName.Text.Trim().Length == 0)|| (txtPassword.Text.Trim().Length == 0))<br />
{<br />
MessageBox.Show(Empty_MESSAGE,CAPTION_TITLE);<br />
txtPassword.Text="";<br />
txtUserName.Text="";<br />
return;<br />
}<br />
//------>Step :2<br />
string strFilter;<br />
strFilter = "SELECT UserName,Password FROM User_Name WHERE Password='" +txtPassword.Text + "' AND UserName='"+txtUserName.Text+"'";<br />
userAdapter=new SqlDataAdapter(strFilter,UserConnection);<br />
SqlCommandBuilder UserCmd=new SqlCommandBuilder(userAdapter);<br />
DataTable UserTable=new DataTable();<br />
userAdapter.Fill(UserTable);<br />
//------ Counting and Displaying<br />
UserView = new DataView(UserTable,DEFAULT_FILTER,DEFAULT_SORT,DataViewRowState.OriginalRows);<br />
//---->Step :3		<br />
if (UserView.Count == 0)<br />
{<br />
MessageBox.Show(NO_RECORDS_FOUND_MESSAGE,CAPTION_TITLE);<br />
txtPassword.Text="";<br />
txtUserName.Text="";<br />
}<br />
else<br />
{<br />
this.Hide();<br />
Private_Public_Form frm_pub_pri=new Private_Public_Form();<br />
frm_pub_pri.ShowDialog();<br />
}<br />
//************* Finish *******<br />
		<br />
}<br />
***********************************************<br />
thanks in advance!!!<br />
 <br />
<br />
mostafa hosseiny b.

AnswerRe: w can User observe his private information Pin
Colin Angus Mackay5-Sep-05 20:53
Colin Angus Mackay5-Sep-05 20:53 
GeneralRe:I want to know how a user can observe Pin
mostafa_h6-Sep-05 1:57
mostafa_h6-Sep-05 1:57 
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 
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 

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.