Simple c# scraping task

Terminé Publié le Sep 3, 2012 Paiement à la livraison
Terminé 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>

.NET Programmation C# Web Scraping

Nº du projet : #2456299

À propos du projet

6 propositions Projet à distance Actif Sep 3, 2012

Décerné à:

greggfletcher

Hello, i am ready to start. Please share the details in private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(52 Commentaires)
6.5

6 freelances font une offre moyenne de 55 $ pour ce travail

salmanaim

easy task , couple of hours to finish . please check PM

$30 USD en 0 jours
(22 Commentaires)
6.6
mantislin

Hi sir, please check PM, thx Kimi.

$60 USD en 2 jours
(80 Commentaires)
6.4
khiemdmse60773

Hi, I can do this job easily.

$30 USD en 2 jours
(20 Commentaires)
4.3
scripish

I am a professional Software Engineer having 6 years experience in .net, could I cross check he requirement with you? You need to get the complete source code of the webpage, and when you select an item in the drop d Plus

$60 USD en 2 jours
(3 Commentaires)
2.7
sotrue

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

$120 USD en 2 jours
(0 Commentaires)
0.0