Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Equivalent to JSP Objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anbu - 15 Jul 2005 06:10 GMT
Hi,

I'm new to ASP .NET and I'm developing a web based tool to authenticate the
users. The existing application in JSP. I would like to know the ASP .NET
equivalent to the URL and URLConnection JSP Objects

Thanks,
Craig Deelsnyder - 15 Jul 2005 06:23 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> Thanks,

Hmm, without knowing the true uses of those classes in the Java world, I  
think you're looking for things like:

System.Uri
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemuriclasstopic.asp


System.UriBuilder (handy if you're munging a url together yourself)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemuribuilderclasstopic.asp


System.Net.HttpWebRequest and ...HttpWebResponse
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemnethttpwebrequestclasstopic.asp


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemnethttpwebresponseclasstopic.asp


Signature

Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Anbu - 15 Jul 2005 07:21 GMT
Craig,

Here is the exact JSP code. I'm looking for the alternative code in ASP
.NET.

       URLConnection con=url.openConnection();
       con.setDoOutput(true);
       con.setDoInput(true);
       BufferedWriter out=new BufferedWriter(new
OutputStreamWriter(con.getOutputStream()));
       out.write(str4);

       out.close();

How can i read the output from a web page and store them in a buffer?

Thanks,
Klaus H. Probst - 15 Jul 2005 09:47 GMT
Look at the System.Net.WebClient class.

Signature

Klaus H. Probst, MVP
  http://www.simulplex.net/

> Craig,
>
[quoted text clipped - 13 lines]
>
> Thanks,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.