Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
Questiontransparent maskededit box? Pin
TheCardinal12-Sep-07 23:25
TheCardinal12-Sep-07 23:25 
QuestionNetron Pin
Mamphekgo Bahula12-Sep-07 22:59
Mamphekgo Bahula12-Sep-07 22:59 
AnswerRe: Netron Pin
Colin Angus Mackay12-Sep-07 23:22
Colin Angus Mackay12-Sep-07 23:22 
AnswerRe: Netron Pin
Pete O'Hanlon13-Sep-07 0:04
mvePete O'Hanlon13-Sep-07 0:04 
GeneralRe: Netron Pin
Mamphekgo Bahula13-Sep-07 0:36
Mamphekgo Bahula13-Sep-07 0:36 
GeneralRe: Netron Pin
Pete O'Hanlon13-Sep-07 4:02
mvePete O'Hanlon13-Sep-07 4:02 
QuestionLogin Pin
LouieV12-Sep-07 22:29
LouieV12-Sep-07 22:29 
AnswerRe: Login Pin
P_Elza12-Sep-07 22:53
P_Elza12-Sep-07 22:53 
For that u have to use database connection
I think this code will help u......

<br />
SqlConnection MySchool;<br />
					MySchool= new SqlConnection("server=(local);database=MySchool;integrated security=sspi");<br />
					MySchool.Open();<br />
					String selectCmd = "select * from signin where vusername='"+Txtuname.Text+"'";<br />
					SqlCommand MyCmd = new SqlCommand(selectCmd,MySchool);<br />
					SqlDataReader dr;<br />
					dr=MyCmd.ExecuteReader();<br />
					while(dr.Read())<br />
					{<br />
						if((String.Equals(dr.GetString(0).Trim(),Txtuname.Text.Trim()))==true)<br />
						{<br />
							if((String.Equals(dr.GetString(1).Trim(),Txtpassword.Text.Trim()))==true)<br />
							{<br />
								//test.Text="Inside if";<br />
								Response.Redirect("New_Page.aspx");<br />
							}<br />
							else<br />
							{<br />
								Lblmsg.Text="Error:Password is wrong.";<br />
							}<br />
						}<br />
						else<br />
						{<br />
							Lblmsg.Text="Error:Username is wrong";<br />
						}<br />
					}<br />
<br />
:)<br />
<br />
<br />
<br />

GeneralRe: Login Pin
pmarfleet12-Sep-07 23:05
pmarfleet12-Sep-07 23:05 
GeneralRe: Login Pin
Paul Conrad14-Sep-07 19:07
professionalPaul Conrad14-Sep-07 19:07 
GeneralRe: Login Pin
Colin Angus Mackay12-Sep-07 23:31
Colin Angus Mackay12-Sep-07 23:31 
AnswerRe: Login Pin
Pete O'Hanlon12-Sep-07 23:21
mvePete O'Hanlon12-Sep-07 23:21 
AnswerRe: Login Pin
Paul Conrad14-Sep-07 19:08
professionalPaul Conrad14-Sep-07 19:08 
QuestionLive Video Transmission Pin
DeepOceans12-Sep-07 22:17
DeepOceans12-Sep-07 22:17 
QuestionChanging the screen resolution Pin
pokabot12-Sep-07 22:08
pokabot12-Sep-07 22:08 
AnswerRe: Changing the screen resolution Pin
Giorgi Dalakishvili12-Sep-07 22:37
mentorGiorgi Dalakishvili12-Sep-07 22:37 
QuestionInserting Multiple Rows in a dataset to Database Pin
meeram39512-Sep-07 21:51
meeram39512-Sep-07 21:51 
AnswerRe: Inserting Multiple Rows in a dataset to Database Pin
Giorgi Dalakishvili12-Sep-07 22:35
mentorGiorgi Dalakishvili12-Sep-07 22:35 
GeneralRe: Inserting Multiple Rows in a dataset to Database Pin
meeram39513-Sep-07 1:23
meeram39513-Sep-07 1:23 
QuestionCom port and process Pin
Rahul.RK12-Sep-07 21:29
Rahul.RK12-Sep-07 21:29 
AnswerRe: Com port and process Pin
Pete O'Hanlon12-Sep-07 22:17
mvePete O'Hanlon12-Sep-07 22:17 
GeneralRe: Com port and process Pin
Rahul.RK12-Sep-07 22:22
Rahul.RK12-Sep-07 22:22 
QuestionHow to process calls to a Control on a separate thread? Pin
ctoma200512-Sep-07 21:18
ctoma200512-Sep-07 21:18 
AnswerRe: How to process calls to a Control on a separate thread? Pin
Mark Swaanenburg12-Sep-07 22:22
Mark Swaanenburg12-Sep-07 22:22 
GeneralRe: How to process calls to a Control on a separate thread? Pin
ctoma200512-Sep-07 22:32
ctoma200512-Sep-07 22:32 

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.