Tuesday, July 12, 2022

HTML table with 3 columns C# ASP.NET file upload with link button

 <table cellspacing="1" cellpadding="6" width="100%" class="listTable persist-area">

                


                <tr>

                     <td align="left" width="19%">Attendance Upload <br />(PDF with size up to 10 MB):<asp:Label ForeColor="Red"

                        runat="server" ID="Label34">*</asp:Label>&nbsp;

                    </td>

                   

                    <td align="left" width="26%">

                        <asp:FileUpload ID="fld_photoupload" runat="server" CssClass="form-control" />

                        <asp:HyperLink ID="Lnk_Attendance" runat="server" Text="Attendance Sheet" Visible="false" Target="_blank"></asp:HyperLink>

                        <asp:CustomValidator ID="CustomValidator2" runat="server"  Display="Dynamic" ForeColor="Red"

                                    ErrorMessage="" ValidationGroup="Save1" SetFocusOnError="true" OnServerValidate="CustomValidator2_ServerValidate"

                                    ControlToValidate="fld_photoupload"></asp:CustomValidator>

                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"

                            ErrorMessage="Please Upload Attendance Sheet" ControlToValidate="fld_photoupload"

                            ValidationGroup="Save1" CssClass="ValidatorCallout" SetFocusOnError="True"></asp:RequiredFieldValidator>                          

                         


                                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender29" runat="server" TargetControlID="RequiredFieldValidator1">

                                </cc1:ValidatorCalloutExtender>

                    </td>

                    <td></td>

                <td></td>

                <td></td>

                <td></td>

                    </tr>

</table>

No comments:

Post a Comment