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