Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
I am developing a project in which there is a facility for the user to upload the image, title to the image, and description of the image; all in one panel.
 
But my problem is that when the user wants to upload or insert more than one image and their description in the database, what will i do?
 
Should i use more than one panel ..or what?
 
if i use more than one panel it works, but is a very lengthy process and the database also increases in size or length.
 
code:
<asp:Panel ID="Panel1" runat="server">
                                
                                    <table>
                                        <tr>
                                            <td style="text-align: left; width: 35%;">
                                                Tital:
                                            </td>
                                            <td style="text-align: left; width: 45%;">
                                                <asp:TextBox ID="txttital1" runat="server" Font-Bold="True" Font-Size="Large" Width="200px">
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                 
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: left; width: 35%;">
                                                Upload the Screen Shot1:
                                            </td>
                                            <td align="left">
                                                <asp:FileUpload ID="SceenShot1" runat="server" />
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                 
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: left; width: 35%;">
                                                Description:
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtdesc1" runat="server" BorderColor="#000099" BorderStyle="Solid"
                                                    BorderWidth="1px" Style="font-family: Tahoma; font-size: 10pt" TextMode="MultiLine"
                                                    Width="300px" Height="150px" OnTextChanged="txtpwd_TextChanged">
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                 
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: left; width: 35%;">
                                                 
                                            </td>
                                            <td align="left">
                                                 
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                 
                                                <asp:HyperLink ID="addmore1" runat="server">AddMoreDetails
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: left; width: 35%;">
                                                 
                                            </td>
                                            <td align="left">
                                                 
                                            </td>
                                            <td style="text-align: left; width: 12%;">
Posted 30-Apr-13 8:46am
Edited 30-Apr-13 9:03am
v3
Comments
Sergey Alexandrovich Kryukov at 30-Apr-13 13:49pm
   
You can post whatever you want and process it in the way your want. It does not related to the panels, but you can also design the UI the way you want. I don't see a problem or a need in any advice. If your solution has problem (more than one panel), you should explain the problem properly. So far, there is no a way to see why it is "lengthy".
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100