Click here to Skip to main content
15,907,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Display random image form folder. Pin
ToddHileHoffer29-Aug-06 8:26
ToddHileHoffer29-Aug-06 8:26 
QuestionAdd/Delete Record Pin
shapper29-Aug-06 6:24
shapper29-Aug-06 6:24 
AnswerRe: Add/Delete Record Pin
ToddHileHoffer29-Aug-06 6:43
ToddHileHoffer29-Aug-06 6:43 
GeneralRe: Add/Delete Record Pin
shapper29-Aug-06 11:02
shapper29-Aug-06 11:02 
GeneralRe: Add/Delete Record Pin
eggsovereasy30-Aug-06 3:29
eggsovereasy30-Aug-06 3:29 
AnswerRe: Add/Delete Record Pin
YeHtut29-Aug-06 20:24
YeHtut29-Aug-06 20:24 
QuestionForms Authentication and Crystalreportviewer.ReportSource Pin
vonny23229-Aug-06 5:46
vonny23229-Aug-06 5:46 
QuestionDatasets all over again Pin
drc_no129-Aug-06 4:56
drc_no129-Aug-06 4:56 
Hello, everybody! I came to you with another problem. This time, it's about a dataset loading an .xml document and an authentification form: login.


<br />
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)<br />
    {<br />
        dsLogin ds_login = new dsLogin();<br />
        ds_login.ReadXml(Server.MapPath("~/App_Data/login.xml"), System.Data.XmlReadMode.ReadSchema);<br />
        Label1.Text = "";    <br />
        <br />
        for(int i =0; i<ds_login.Tables[0].Rows.Count; i++){<br />
            <br />
            //test purpose<br />
            Label1.Text = Login1.Password + "   " + ds_login.Tables[0].Columns[2].Table.Rows[i].ToString();            <br />
            if(Login1.UserName == "a") Label1.Text  = Label1.Text +" 1 ";<br />
            if(Login1.Password == "aaaaaa.") Label1.Text  = Label1.Text + " 2 ";<br />
            if(ds_login.Tables[0].Columns["UserName"].Table.Rows[i].ToString() == "a") Label1.Text = Label1.Text + " 3 ";<br />
            if (ds_login.Tables[0].Columns[2].Table.Rows[i].ToString() == "aaaaaa.") Label1.Text = Label1.Text + " 4 ";<br />
            //end of testing<br />
            <br />
            if(Login1.UserName.Equals(ds_login.Tables[0].Columns["UserName"].Table.Rows[i].ToString()))<br />
                <br />
                if(Login1.Password.Equals(ds_login.Tables[0].Columns[2].Table.Rows[i].ToString()))<br />
            <br />
              {<br />
//some bunch of code...<br />
e.Authenticated = true;<br />
            } <br />
        }<br />
                   <br />
    }<br />

the problem seems to be that the web never reaches the if-s. even thought i've set watches for both values there, nothing happened. more, at the test, i only get 1 and 2 and, instead the value at ds_login.Tables[0].Columns[2].Table.Rows[i].ToString(), i get System.Data.DataRow.
Please tell me what i do wrong!

Thanks in advance!Sigh | :sigh:
Questiondelete file from drive Pin
playout29-Aug-06 3:51
playout29-Aug-06 3:51 
AnswerRe: delete file from drive Pin
ToddHileHoffer29-Aug-06 4:12
ToddHileHoffer29-Aug-06 4:12 
GeneralRe: delete file from drive Pin
playout29-Aug-06 4:31
playout29-Aug-06 4:31 
GeneralRe: delete file from drive Pin
ToddHileHoffer29-Aug-06 4:32
ToddHileHoffer29-Aug-06 4:32 
GeneralRe: delete file from drive Pin
Baj2229-Aug-06 5:24
Baj2229-Aug-06 5:24 
GeneralRe: delete file from drive Pin
ToddHileHoffer29-Aug-06 6:21
ToddHileHoffer29-Aug-06 6:21 
QuestionFormatting the Data Display asp.net 2.0 Pin
Jay_se29-Aug-06 3:26
Jay_se29-Aug-06 3:26 
AnswerRe: Formatting the Data Display asp.net 2.0 Pin
ToddHileHoffer29-Aug-06 4:05
ToddHileHoffer29-Aug-06 4:05 
QuestionRe: Formatting the Data Display asp.net 2.0 Pin
Jay_se30-Aug-06 1:56
Jay_se30-Aug-06 1:56 
AnswerRe: Formatting the Data Display asp.net 2.0 Pin
ToddHileHoffer30-Aug-06 4:02
ToddHileHoffer30-Aug-06 4:02 
Questionrefresh problem Pin
fouad88829-Aug-06 0:53
fouad88829-Aug-06 0:53 
AnswerRe: refresh problem Pin
_AK_29-Aug-06 1:02
_AK_29-Aug-06 1:02 
GeneralRe: refresh problem Pin
fouad88829-Aug-06 1:37
fouad88829-Aug-06 1:37 
GeneralRe: refresh problem Pin
_AK_29-Aug-06 1:46
_AK_29-Aug-06 1:46 
GeneralRe: refresh problem Pin
fouad88829-Aug-06 2:19
fouad88829-Aug-06 2:19 
GeneralRe: refresh problem Pin
_AK_29-Aug-06 2:20
_AK_29-Aug-06 2:20 
AnswerRe: refresh problem Pin
YeHtut29-Aug-06 20:30
YeHtut29-Aug-06 20:30 

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.