Click here to Skip to main content
15,896,446 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Updated 30-Apr-13 8:03am
v3
Comments
Sergey Alexandrovich Kryukov 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900