Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. fileuploads in asp.net 1.1

fileuploads in asp.net 1.1

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m dhu
    wrote on last edited by
    #1

    hi. i have a file upload and a button. On button click other upload control should be visible initially which dont. But on post back the path in 1st upload control disappears. i would have use ajax if it is 2.0 but im using 1.1 any ideas how to do this.

    A 1 Reply Last reply
    0
    • M m dhu

      hi. i have a file upload and a button. On button click other upload control should be visible initially which dont. But on post back the path in 1st upload control disappears. i would have use ajax if it is 2.0 but im using 1.1 any ideas how to do this.

      A Offline
      A Offline
      Arjun Sridhar
      wrote on last edited by
      #2

      can u post ur aspx page and code which you r using ?

      M 1 Reply Last reply
      0
      • A Arjun Sridhar

        can u post ur aspx page and code which you r using ?

        M Offline
        M Offline
        m dhu
        wrote on last edited by
        #3

        not exactly but briefly

        <input class="input" id="imgFile1" type="file" name="imgFile1" runat="server">

        <asp:linkbutton id="lnkimg2" Runat="server" Text='<IMG height="14" src="../images/add-child.gif" width="14" align="absMiddle" border="0"Add New Image'CausesValidation="False"></asp:linkbutton>
        <input class="input" id="imgFile2" type="file" name="imgFile2" runat="server" visible="false">

        <asp:button id="btnSubmit" Runat="server" Text="Submit" CssClass="button"></asp:button>

        //link button click
        imgFile2.visible=true;

        //buttonsubmit click
        code for inserting....

        once link button clicked path in upload1 disappears as page loads.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups