| | |
Create a login page for a URL
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Oct 2008
Posts: 3
Reputation:
Solved Threads: 0
hi i have been trying to get this working out i got a login url with two urls actually one to log you in and a java script button.
lets say this is the URL's
http://login.mywebsite/login.nhn?m=login&memberid= (HERE Account)
middle part of url : &password= (password)
The last part i would like put put one more hmtl with it lets call it : &nextURL=http://LOL.mywebsite.com/common/prelaunch.nhn?gameId=crazyness="
what i would like to do is have the public enter account names in one textbox
and password in the next.
For the site im wanting to login with has the account/password in the hmtl itself. i would like to know how i can make ONE button log me in and then go the the next URL
something like http://login.mywebsite.com/login.nhn...eId=crazyness= where the %username% and %pass% is where the information goes in the URL. (this is not the real URL fyi)
Please help me i would gladey appreciate
lets say this is the URL's
http://login.mywebsite/login.nhn?m=login&memberid= (HERE Account)
middle part of url : &password= (password)
The last part i would like put put one more hmtl with it lets call it : &nextURL=http://LOL.mywebsite.com/common/prelaunch.nhn?gameId=crazyness="
what i would like to do is have the public enter account names in one textbox
and password in the next.
For the site im wanting to login with has the account/password in the hmtl itself. i would like to know how i can make ONE button log me in and then go the the next URL
something like http://login.mywebsite.com/login.nhn...eId=crazyness= where the %username% and %pass% is where the information goes in the URL. (this is not the real URL fyi)
Please help me i would gladey appreciate
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
How far have you got, do you have the 2 boxes and a button yet? Why would you use javascript as the whole next page and password part would be open for someone to either just bypass it or decrypt it and use your page
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Oct 2008
Posts: 3
Reputation:
Solved Threads: 0
i was searching of how i could possibly do this i found this that ki nda gave me an idea:
the point of java script is that it launches an application from my computer files.
C# Syntax (Toggle Plain Text)
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.IO; using System.Web; namespace aebot { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnGo_Click(object sender, EventArgs e) { string url = "http://website/a.aspx"; if (tbRegio.Text.Length > 0) { url += tbRegio.Text; } lblUrl.Text = url; //url = "http://login.ijji.com/login.nhn?m=login&memberid="; rtbHtml.Text = getHtml(url,"email@example.com","secret"); } private string getHtml(string url,string username,string password) { HttpWebRequest request; HttpWebResponse response; CookieContainer cookies = new CookieContainer(); WebClient client = new WebClient(); HttpUtility hu = new HttpUtility(); string parameters = string.Format("email={0}&pass={1}", HttpUtility.UrlEncode(username), HttpUtility.UrlEncode(password)); return HttpPost("http://website/login.aspx?href=%22/a.aspx" ,parameters); /*client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0;Windows NT 5.2; .NET CLR 1.0.3705;)"); request = (HttpWebRequest)WebRequest.Create(url); request.AllowAutoRedirect = false; request.CookieContainer = cookies; response = (HttpWebResponse)request.GetResponse(); string s = "niks gevonden"; using (Stream data = response.GetResponseStream()) { StreamReader sr = new StreamReader(data); s = sr.ReadToEnd(); sr.Close(); data.Close(); } return s; * */ } private string HttpPost(string URI, string Parameters) { System.Net.WebRequest req = System.Net.WebRequest.Create(URI); //req.Proxy = new System.Net.WebProxy(ProxyString, true); req.ContentType = "application/x-www-form-urlencoded"; req.Method = "POST"; byte[] bytes = System.Text.Encoding.ASCII.GetBytes(Parameters); req.ContentLength = bytes.Length; System.IO.Stream os = req.GetRequestStream(); os.Write(bytes, 0, bytes.Length); os.Close(); System.Net.WebResponse resp = req.GetResponse(); if (resp == null) return null; System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream()); return sr.ReadToEnd().Trim(); } } }
the point of java script is that it launches an application from my computer files.
Last edited by cscgal; Oct 13th, 2008 at 12:24 pm. Reason: Added code tags
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
OK, but thats entirely different from what you initially asked. If you wanted to use javascript you'd need to be running a web form, implying aspx, and that you said you wanted to make a login form, so it seems very much like you wanted a web form..
Now you have shown a windows app..
Please define your problem more clearly.
Now you have shown a windows app..
Please define your problem more clearly.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
You need to define what you want, for your own sanity and that of anyone whos going to try and help you.
What you wrote is not a definition, its a waffle, with fluff..
What you wrote is not a definition, its a waffle, with fluff..
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Similar Threads
- Simple ASP.Net Login Page using C# (C#)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Linking from the login page to other pages (PHP)
- Login page. JSP/Servlet (JSP)
- help me please. i am making a login page.. (ASP)
- Please help me :"login form use drag and drop toolbox" ! (C#)
- How to create a login page using ASp.net 2.0 c# (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
Other Threads in the C# Forum
- Previous Thread: Problem with keyboard control in C#
- Next Thread: DataGrid and Multiple Tables
| Thread Tools | Search this Thread |
.net access algorithm array asp.net bitmap box broadcast c# check checkbox client combobox control conversion csharp database datagrid datagridview dataset datetime dbconnection decryption degrees design developer draganddrop drawing encryption enum eventhandlers excel file firefox focus form format forms function gdi+ grantorrevokepermissionthroughc#.net hospitalmanagementsystem image input install interface java libraries list loop marshalbyrefobject math mouseclick movingimage mysql netcfsvcutil.exe numeric operator path photoshop php picturebox pixelinversion platform polynomial post programming properties radians read regex remote remoting richtextbox server sleep socket sql statistics string stringformatting study system.servicemodel table tcpclientchannel text textbox thread time timer update usb usercontrol validation visualstudio webbrowser winforms wpf wpfc# xml






