Click here to Skip to main content
15,909,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Rupee denomination Pin
Abhishek Sur25-Oct-09 21:01
professionalAbhishek Sur25-Oct-09 21:01 
General[Message Deleted] Pin
Guru Prasad Pedapati25-Oct-09 21:21
Guru Prasad Pedapati25-Oct-09 21:21 
GeneralRe: Rupee denomination Pin
Christian Graus25-Oct-09 21:25
protectorChristian Graus25-Oct-09 21:25 
QuestionASPxGridView Delete Button (for Developer Express) Pin
zizigolo11025-Oct-09 19:24
zizigolo11025-Oct-09 19:24 
AnswerRe: ASPxGridView Delete Button (for Developer Express) Pin
Imran Khan Pathan25-Oct-09 20:03
Imran Khan Pathan25-Oct-09 20:03 
QuestionExtending the Ajax Control Toolkit AutocompleteExtender control Pin
CrazyCoder2625-Oct-09 18:36
CrazyCoder2625-Oct-09 18:36 
AnswerRe: Extending the Ajax Control Toolkit AutocompleteExtender control Pin
CrazyCoder2625-Oct-09 23:05
CrazyCoder2625-Oct-09 23:05 
QuestionThe name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Kristy Chan25-Oct-09 17:35
Kristy Chan25-Oct-09 17:35 
I have attached the code in aspx.

<br />
<br />
 <table><br />
            <tr><br />
                <td style="width: 100px; height: 26px"><br />
                    <asp:Label ID="Label2" runat="server" Text="Username:"></asp:Label></td><br />
                <td style="width: 154px; height: 26px"><br />
                   <asp:TextBox ID="usernameTB" runat="server" Width="140px" OnTextChanged="usernameTB_TextChanged1"></asp:TextBox><br />
                </td><br />
            </tr><br />
            <tr><br />
                <td style="width: 100px"><br />
                    <asp:Label ID="Label3" runat="server" Text="Password:"></asp:Label></td><br />
                <td style="width: 154px"><br />
                    <asp:TextBox ID="passwordTB" runat="server" OnTextChanged="passwordTB_TextChanged"></asp:TextBox></td><br />
            </tr><br />
            <tr><br />
                <td style="width: 100px; height: 16px"><br />
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td><br />
                <td style="width: 154px; height: 16px"><br />
                    <asp:Button ID="btnlogin" runat="server" Height="24px" OnClick="btnlogin_Click" Text="Login"<br />
                        Width="70px" /><br />
                    <asp:Button ID="btnlogout" runat="server" OnClick="btnlogout_Click" Text="Logout" /></td><br />


This is the code for aspx.cs

<br />
protected void btnlogin_Click(object sender, EventArgs e)<br />
    {<br />
        if (usernameTB.Text != "")<br />
        {<br />
<br />
            if (passwordTB.Text != "")<br />
            {<br />
                OleDbConnection mdb = new OleDbConnection();<br />
                OleDbCommand cmd;<br />
                OleDbDataReader rdr;<br />
                Connect.DBConnection(mdb);<br />
                mdb.Open();<br />
                string SQLinfo = "SELECT * FROM Customers WHERE cUserName = '" +<br />
                    usernameTB.Text.ToUpper() + "'";<br />
                                {<br />
                    if (passwordTB.Text == (string)rdr["cPassword"])<br />
else<br />
                    {<br />
                        rdr.Close();<br />
                        mdb.Close();<br />
                        usernameTB.Text = "";<br />
                        passwordTB.Text = "";<br />
                        Response.Write("<script>alert('Error signing in')</script>");<br />
                        break;<br />

AnswerRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Christian Graus25-Oct-09 18:32
protectorChristian Graus25-Oct-09 18:32 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Kristy Chan25-Oct-09 18:40
Kristy Chan25-Oct-09 18:40 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Christian Graus25-Oct-09 18:52
protectorChristian Graus25-Oct-09 18:52 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Kristy Chan25-Oct-09 18:59
Kristy Chan25-Oct-09 18:59 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Christian Graus25-Oct-09 19:06
protectorChristian Graus25-Oct-09 19:06 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Kristy Chan25-Oct-09 19:14
Kristy Chan25-Oct-09 19:14 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Christian Graus25-Oct-09 19:18
protectorChristian Graus25-Oct-09 19:18 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Kristy Chan25-Oct-09 19:24
Kristy Chan25-Oct-09 19:24 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Christian Graus25-Oct-09 19:30
protectorChristian Graus25-Oct-09 19:30 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Kristy Chan25-Oct-09 19:35
Kristy Chan25-Oct-09 19:35 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Christian Graus25-Oct-09 19:41
protectorChristian Graus25-Oct-09 19:41 
GeneralRe: The name of the textbox does not exist in the context!! Please Help Me!!! Thanks!!! Pin
Kristy Chan25-Oct-09 19:46
Kristy Chan25-Oct-09 19:46 
Questionplaying song in my site Pin
mayur rathod25-Oct-09 9:40
mayur rathod25-Oct-09 9:40 
AnswerRe: playing song in my site Pin
Christian Graus25-Oct-09 10:05
protectorChristian Graus25-Oct-09 10:05 
GeneralRe: playing song in my site Pin
Bassam Saoud25-Oct-09 11:44
Bassam Saoud25-Oct-09 11:44 
GeneralRe: playing song in my site Pin
Christian Graus25-Oct-09 12:29
protectorChristian Graus25-Oct-09 12:29 
AnswerRe: playing song in my site Pin
Abhishek Sur25-Oct-09 12:07
professionalAbhishek Sur25-Oct-09 12:07 

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.