473,467 Members | 1,419 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

request and response+asp.net 2.0+c#

26 New Member
hi to all

This is sridhar

I have one doubt

i went to sent a request to a web site i need some response from that web site


For example :


I want to register no. as a request to a web site and mark sheet while be the response from that web site?


Example with code will be very useful for me

thanks

sridhar
Jun 7 '07 #1
4 1226
Plater
7,872 Recognized Expert Expert
System.Net.WebRequest
It's a good thing.
Jun 7 '07 #2
sridhar21
26 New Member
System.Net.WebRequest
It's a good thing.



I need some explaination eith code plz

thanks
sridhar
Jun 8 '07 #3
Plater
7,872 Recognized Expert Expert
I need some explaination eith code plz

thanks
sridhar
I am sorry, I had linked you to the underlying class and not the correct class.

Have a look at this:
Expand|Select|Wrap|Line Numbers
  1. System.Net.HttpWebRequest hwreq = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create("http://www.google.com/");
  2. System.Net.HttpWebResponse hwresp = (System.Net.HttpWebResponse)hwreq.GetResponse();
  3. StreamReader sr = new StreamReader(hwresp.GetResponseStream());
  4.  
Jun 11 '07 #4
radcaesar
759 Recognized Expert Contributor
Hey is this a web site or web service ?

:)
hi to all

This is sridhar

I have one doubt

i went to sent a request to a web site i need some response from that web site


For example :


I want to register no. as a request to a web site and mark sheet while be the response from that web site?


Example with code will be very useful for me

thanks

sridhar
Jun 11 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: RobertHillEDS | last post by:
While using the Soap generated ASP code, I would like to dump the raw contents of the request and response objects using Response.AppendToLog. I have tried using variations of the following code,...
6
by: John Edwards | last post by:
Hello, What is the best way to do a POST from an ASP.NET page to an old time ASP page. The ASP accesses the data through Request.Form("username") method. Looks like a normal WebRequest with POST...
2
by: J.Marsch | last post by:
I'm pretty new to ASP.Net (server side) Suppose that I have an instance of an ASP Page class, and I want the client's web browser to load it. I don't necessarily know the URL of the page that I...
7
by: John Ruiz | last post by:
the constructor definition in my Global.asax.cs file contains (among other things) the following line: System.Diagnostics.Debug.WriteLine( "Global Constructor ran." ); when I run my web...
16
by: who be dat? | last post by:
Consider the following code which enables multithreading in an ASP.Net application I'm writing: Code in global.asx Application_start subroutine, Threadnotify is declared Globally as a new thread...
2
by: Raja | last post by:
Hi, I want to render my response(ASP.NET) as excel format. So I am using Response.ContentType = "application/vnd.ms-excel"; Response.AddHeader("Content-Disposition", "filename=results.xls"); ...
1
by: Jay Hilyard | last post by:
Hi all, I was playing with the new ConfigurationManager class in the Feb CTP drop of VS 2005 and I noticed that if you make changes to the configuration inside of an ASP.NET page, those changes...
17
by: freemann | last post by:
Can anyone provide example code showing how to send form results to a results page, email and a comma delimited file? Notice that I need it going to all three locations. Details: I have forms...
0
by: btreddy | last post by:
Hii all, i want to calculate the no.of bytes sent out from my webserver when a user requested for a page in my website.How can i calculate this? kindly give me a thought rgds, Tiru.
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.