Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,533 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,801 people online right now. Registration is fast and FREE... Join Now!




Logged in website

 
Reply to this topicStart new topic

Logged in website, Username and password should be passed and logged in page sholud displ

kavitachawoor
20 Aug, 2008 - 10:06 PM
Post #1

New D.I.C Head
*

Joined: 20 Aug, 2008
Posts: 3

CODE

protected void Button1_Click(object sender, EventArgs e)
    {
      
{
    try
    {
    //Connect to the database
    OleDbConnection conn = new OleDbConnection();

    conn.ConnectionString = "Provider=SQLNCLI;Server=.\\;"+
"User ID=ozekiuser;password=ozekipass;Database=ozeki;Persist Security Info=True";
    conn.Open();
    if (conn.State == ConnectionState.Open)
    {
        //Send the message
        OleDbCommand cmd = new OleDbCommand();
        cmd.Connection = conn;
        string SQLInsert =
        "INSERT INTO "+
        "ozekimessageout (receiver,msg,status) "+
        "VALUES "+
        "('"+tbSender.Text+"','"+tbMsg.Text+"','send')";
        cmd.CommandText = SQLInsert;
        cmd.ExecuteNonQuery();
        MessageBox.Show("Message sent");
    }

    //Disconnect from the database
    conn.Close();
    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.Message);
    }

}


** Edit ** code.gif
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Logged In Website
20 Aug, 2008 - 10:09 PM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,465



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Did you have question about this code?
User is online!Profile CardPM
+Quote Post

kavitachawoor
RE: Logged In Website
20 Aug, 2008 - 11:44 PM
Post #3

New D.I.C Head
*

Joined: 20 Aug, 2008
Posts: 3

QUOTE(no2pencil @ 20 Aug, 2008 - 11:09 PM) *

Did you have question about this code?



Sir i am Miss Kavita.C working 3DCAD India Pvt Ldt as Web Developer. working on C# code ASP.Net platform.I am searching the code to log into the purticular website programintical.the user will be not knowing the password. so when ever they will click on the website hyperlink in my web site. the sholud directly post to logged in page of purticular site.
please send me the code.
Thanks in advance
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:10PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month