Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27223

.Net Change value in Iframe without id

$
0
0
I'm working on a automatic fill in form, but i dont get pass through the picture upload. The picture upload is inside an Iframe without an id or name. I would like to know if i can add a value to it, like
Code:

webbrowser1.document.getelementbyid("file[]").setAttribute("Value","Url")
or
Code:

WebBrowser1.Document.Window.Frames("file[]")...
Down here the html code (i dont have acces for changing it)
HTML Code:

<iframe width="250" scrolling="no" height="22" frameborder="no" marginwidth="0" marginheight="0" allowtransparency="true" border="0" src="/upload.html?v4#mdrp9c7tlgin8d038qnj6mnmi4">#document<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head></head>
    <body>
    <div id="button_container"><object id="SWFUpload_0" class="swfupload" width="250" height="22" data="/swfupload250beta3/swfupload.swf?wrapperbrowsercheck=0.7308926264884217&preventswfcaching=1354384013251" type="application/x-shockwave-flash"></object></div>
    <form enctype="multipart/form-data" target="uploader" action="/upload.php" method="post"><input id="file" type="file" onchange="fileUploadStart(this);" name="file[]"></input></form>
    </body></html></iframe>


Viewing all articles
Browse latest Browse all 27223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>