• 11-10-2015, 13:00:39
    #1
    merhaba arkdaşlar..asp.net 3.5 kulalnıyorum c#..
    fileupload nesnesinde yükleyeceğim imageleri upload etmeden ekranda göstermek istiyorum.
    http://bildiklerimiz.net/Blog/Fileup...meden-Gosterme
    bu sitede arkdaş anlatmış ama bu php....asp.net versiyonunu öğrenmem mümkün mü..bilen birisi cevaplarsa sevinirm..
  • 11-10-2015, 15:10:33
    #2
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:FileUpload ID="FileUpload1" runat="server" />
        </div>
            <img id="resim" width="100" height="100" />
        </form>
        <script>
            $("#FileUpload1").on('change', function () {
                $('#resim')[0].src = window.URL.createObjectURL(this.files[0]);
    
            });
        </script>
    </body>
    </html>


    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 15:10:33 -->-> Daha önceki mesaj 15:09:46 --

    HTML kodun asp, asp.net , php, felan farkı yoktur.
    Artık şunu öğrenin.