Click here to Skip to main content
15,918,706 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
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?

i did this way code-
XML
<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"></asp:TextBox>
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                &nbsp;
                                            </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%;">
                                                &nbsp;
                                            </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"></asp:TextBox>
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: left; width: 35%;">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                &nbsp;
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                &nbsp;
                                                <asp:HyperLink ID="addmore1" runat="server">AddMoreDetails</asp:HyperLink>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: left; width: 35%;">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                &nbsp;
                                            </td>
                                            <td style="text-align: left; width: 12%;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>

i want to use single panel and insert more than one image and their description ...

can anybody help me?
Posted
Updated 30-Apr-13 18:39pm
v2

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