473,397 Members | 1,960 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,397 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 1835
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.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.