Simple c# scraping task
$30-250 USD
Paiement à la livraison
I need a c# function that returns all source code from a webpage with a drop-down menu (some kind of script).
The drop-down menu has 1-5 options and I want the function to return an array of Strings (one String for each option).
private String[] getSourceCode() {...}
Part of the source code (the webpage is an aspx webpage, this example only has 1 option, normally there are a few more):
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAwKp0pnBBAK17cvzDwLjncUSsBJfurko0pGzGsoD8YufPyxTn8g=" />
</div>
<div class="mainDiv" >
<div class="leftinnerdiv">
<img alt="Skoinfo kanal75" src="styles/images/ShoeInfoBackground.gif" />
<span class="track"><span class="trackname">Åmål</span></span>
<br />
<span class="date">Måndag 3 september 2012</span>
<br />
<span class="updatetime">Uppdaterad kl 11:46</span><br />
<br />
<span class="smallcommontext">Välj bana:</span><br />
<select name="ddlTracks" onchange="javascript:setTimeout('__doPostBack('ddlTracks','')', 0)" id="ddlTracks" class="trackdropdown">
<option selected="selected" value="SKOINFO_0.xml">Åmål</option>
</select>
Nº du projet : #2456299
À propos du projet
Décerné à:
6 freelances font une offre moyenne de 55 $ pour ce travail
Please check with the current work status of our freelancer profile already working on DB & MSQL . We have a special task force for DB ,C# & MSQL. thanks & regards OJ