Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to login our site to another site with our code and open a specific page that we will mentioned(I have used freshdesk)
Posted
Updated 18-May-12 1:32am
v2
Comments
AshishChaudha 18-May-12 7:08am    
What you want??? opening the page of your website only or third party website page..like opening facebook page from our website??
Ravinder_Verma 18-May-12 7:44am    
Please provide more information on your query.
Code 89 18-May-12 7:56am    
do you want to open new window?? explain in detail!

  protected void login1User(object sender, EventArgs e)
    {
    SqlConnection con = new SqlConnection("Data Source=SYSTEM1;Initial Catalog=master;Integrated Security=True");
    SqlCommand cmd = new SqlCommand();
    cmd.Connection = con;
    string sql;
    sql = "select *from user1 where uname ='" + TextBox1.Text + "' and pwd = '" + TextBox2.Text + "'";
    cmd.CommandText = sql;
    con.Open();
    SqlDataReader dr = cmd.ExecuteReader();
    if (dr.Read())
    {
        Response.Redirect("User.aspx");
    }
}
 
Share this answer
 
v3
you can use web browser control in asp.net.
 
Share this answer
 
Using System.Net.WebClient or System.Net.HttpWebRequest you can download any kind of data. If you supply Credentials and depending on 3rd party site authentication method, even login could be handled automaticaly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900