473,396 Members | 1,938 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,396 software developers and data experts.

postdata in website

hi

i have to develop a webapplication where i need to request a webpage with the help of

httpwebrequest and httpwebresponse class.like the following code

webRequest = HttpWebRequest.Create(http://URL) as HttpWebRequest;

cookies = new CookieContainer();

webRequest.Method = "GET";

webRequest.CookieContainer = cookies;

webResponse = webRequest.GetResponse() as HttpWebResponse;

reader = new StreamReader(webResponse.GetResponseStream());



now what i need to do is perform signup programmatically

we can do this by postdata


string postdata="username=sally&password=YYYYY";

but i need to know how can we postdata if the value is going to be a select tag

for example if the website has a column of select tag like

<select name=location>

<option value=1>Agra</option>

<option value=2>bangalore</option>

</select>

how can we give this value in postdata

any idea about this plz help

thanks Rama
Apr 4 '07 #1
0 863

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

Similar topics

0
by: mic | last post by:
I'm stuck with following problem. Using webbrowser control I try to make custom-made request. I found working example of this written in VBS but porting it to Python doesn't seem to work. The key...
2
by: Henri | last post by:
Could you give an example that shows when to use PostData, and when to use ViewState in a custom control. Both permit to keep traces of user's actions between posts... Thanks
0
by: Donal McWeeney | last post by:
Hi, I'm currently playing with a custom composite control at the moment and I can get it to get the posted data back in the control - however not the way I want it to. If I specify the...
2
by: crferguson | last post by:
I'm having a really odd issue. Recently my company has upgraded our data server. For a couple of months I'm having to host two versions of the same website on our webserver until the new data...
3
by: Jack Daynes | last post by:
I'm hoping that someone here can help us out. We are in the process of re-writing the underlying code for my website (link to old version below). The site is (and will continue to be) driven by...
0
by: Ekart Laszlo | last post by:
Hi, there We have currently a Java Applet based solution that we would like to rewrite to a .NET solution. The scenario is the following: 1. Starter Client application opens up a web browser...
1
by: ashokingroups | last post by:
Hi, My problem is well known to all. But, I couldn't able to get answer from anywhere either from my colleagues, or from forums. :( My problem is this: 1. I've 10 fields on the form, which...
0
by: Ganesh | last post by:
Please Get me some solution to open popup window in firefox,: Working fine with IE its opening in firefox and on submitting data to server * its throwing a alert saying: The page you...
4
by: Svinja | last post by:
Hello, I made a shoutbox in php, the problem is that i am sending shoutbox data(name and text) with submitting forms, that way i get POSTDATA. The question is, can i send my shoutbox data to php...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.