473,383 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Equivalent to JSP Objects

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,

Nov 19 '05 #1
3 1834
On Fri, 15 Jul 2005 00:10:58 -0500, Anbu
<An***********************@alcatel.com> wrote:
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,

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/de...classtopic.asp

System.UriBuilder (handy if you're munging a url together yourself)
http://msdn.microsoft.com/library/de...classtopic.asp

System.Net.HttpWebRequest and ...HttpWebResponse
http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...classtopic.asp
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2
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,
Nov 19 '05 #3
Look at the System.Net.WebClient class.
--
Klaus H. Probst, MVP
http://www.simulplex.net/
"Anbu" <An***********************@alcatel.com> wrote in message
news:1121408506.555664@slbhw0...
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,

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mark Harrison | last post by:
I'm writing some event-driven programs, and I would like to do the equivalent of the Tcl 'after' command, e.g.: after 1000 {puts "one second has elapsed"} 1. What's the most canonical way of...
3
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it...
4
by: Jim H | last post by:
Does .NET have an equivalent to java's JMS messaging. I'm not a java programmer but as I understand it a java application can be setup to pass entire objects between processes. Is there some sort...
9
by: Paul Brownjohn | last post by:
Hello I am new both to this group and to C# programming having spent the last 15 years or so writing C and VB. You will forgive I hope if I am asking the totally obvious but it is a question...
2
by: Ron | last post by:
Hello, I have to invoke instances of MS Excel and MS Access from my vb.net applications so that I can invoke procedures that reside in the Excel and Access applications from the vb.net...
8
by: Nikkita | last post by:
Software such as Excel or Word exposes a COM object model which allows them to be automated by any language that can call COM objects. As I understand it, I can do the same in VB6 by writing an...
14
by: Ian | last post by:
I am looking at porting code from a C++ application to C#. This requires implementing data sharing functionality similar to what is provided by a smart pointer in C++. I have only recently begun...
16
by: 3rdshiftcoder | last post by:
hi- where would someone find things like lists, sets, map classes like a hash map or tree map. not specifically those but in general is there a book section that deals with it? in java you can...
18
by: Csaba Gabor | last post by:
Is there a straightforward way of implementing a PHP equivalent to window.setTimeout? In a javascript web app, it's often the case that things are done on an event driven basis. For example,...
11
by: mthread | last post by:
Hi, I would like to know if C++ has a class equivalent to memcpy and its associated functions available in C.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.