mohit gupta

mohit gupta

  • NA
  • 145
  • 59.5k

how to make admin page in asp.net?

Apr 15 2014 7:33 AM
I made a master page and one admin page.In master page,I have upload 6 image individual.now i want using admin panel,upload image in any location.
My admin panel code is..
<body>
  <form id="form1" runat="server">
  <div>
  <table border="1" align="center" width="50%" style="margin-top:150px; height:150px";>
  <tr><td><asp:Label ID="catlbl" runat="server" Text="Category"></asp:Label></td>
  <td><asp:DropDownList ID="drplist" runat="server">
  <asp:ListItem>Image1</asp:ListItem>
  <asp:ListItem>Image2</asp:ListItem>
  <asp:ListItem>Image3</asp:ListItem>
  <asp:ListItem>Image4</asp:ListItem>
  <asp:ListItem>Image5</asp:ListItem>
  <asp:ListItem>Image6</asp:ListItem></asp:DropDownList><br /></td></tr>
  <tr><td><asp:Label ID="uploadimg" runat="server" Text="SelectImage"></asp:Label>
</td><td><asp:FileUpload ID="imguplod" runat="server" /></td></tr>
<tr><td><asp:Button ID="addbtn" runat="server" Text="ADD" onclick="addbtn_Click"
  style="height: 26px" /></td><td>
<asp:Button ID="removBtn" runat="server" Text="REMOVE" onclick="removBtn_Click" /></td></tr>
  </Table>
Master page is..........
 <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
       
        </asp:ContentPlaceHolder>
    </div>
    <div style="margin-top:100px; margin-right:auto;">
           <img id="img1" src="../images/07.jpg" alt=""  runat="server" />
            <img id="img2" src="../images/08.jpg" alt="" />
            <img id="img3" src="../images/09.jpg" alt="" />
            <img id="img4" src="../images/10.jpg" alt="" />
            <img id="img5" src="../images/11.jpg" alt="" />
            <img id="img6" src="../images/12.jpg" alt="" />
    </div>

Answers (5)