|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to get the file's name after click the Browse... in HtmlInputFileclick the Browse... button,
and choose a image from local disk,OK. and how to show the image in the webpage . before it be uploaded ? -- FireCrow Studio Kylin Garden EMail:w***@sohu.com ICQ:156134382 Add an image to your page, and change it's src property to the value in the
file input box. Eg. <img name="preview" src="blank.gif"> <input name="newImage" type="file"> <input type="button" onClick="previewImage()"> <script language="javascript"> <!-- function previewImage() { var filename = document.forms[0].elements["newImage"].value; var img = document.all.preview; img.src = filename; } //--> </script> This code hasn't been tested, and might need some modification, but it should give you an idea of what you need to do. Mun Show quoteHide quote "Kylin" <w***@sohu.com> wrote in message news:udPFb%23WSFHA.1096@tk2msftngp13.phx.gbl... > click the Browse... button, > and choose a image from local disk,OK. > and how to show the image in the webpage . > before it be uploaded ? > > -- > FireCrow Studio > Kylin Garden > EMail:w***@sohu.com > ICQ:156134382 > >
Datalist and LoadTemplate
Weird "defined in multiple places" error Form Post Back in ASP.Net 1.1 Referencing to .ascx DropDownList with default values How do I set the value of a checkbox on my repeater control? ASP.NET project and Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Losing selectedIndex on Control inherted from ListBox during postback Enabled / Disabled my control textbox onfocus event |
|||||||||||||||||||||||