I have a page to upload resume and valid file formats are
.doc
.docx
I m in my testing phase tryinhg yo upload a image file..it works fine.shows error msg but the page alignment is lost..some issue with page
Expand|Select|Wrap|Line Numbers
- <table width="100%" bgcolor="#99CCFF" style="margin-bottom:auto; margin-top:auto">
- <tr>
- <td align="center" class="style1" bgcolor="#99CCFF">
-
- <br />
- <br />
- <br />
- <br />
- <br />
- <br />
-
- <asp:FileUpload ID="FileUpload1" Text="Browse" runat="server"
- Font-Bold="True" BorderColor="#FFFF66" />
Width="95px" style="margin-right: 0px; margin-top: 0px"
onclick="btnUpload_Click" Font-Bold="True" />
</td>
</tr>
<tr>
<td align="center"
style="font-family: 'Times New Roman', Times, serif; font-size: medium; font-weight: normal; font-style: normal; font-variant: inherit; text-transform: inherit; color: #000000"
bgcolor="#99CCFF">
Please Upload Your Resume file here. </td>
</tr>
<tr>
<td align="center" class="style1" bgcolor="#99CCFF">
&n bsp; &nbs p;
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
OnRowCommand="GridView1_RowCommand" AllowSorting="True"
AllowPaging="True" PageSize="1" OnPageIndexChanging="GridView1_Paging"
onsorting="GridView1_Sorting" CaptionAlign="Right" Font-Bold="False"
ForeColor="#333333" CellPadding="4" GridLines="None">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:BoundField HeaderText="FileName" DataField="FileName" SortExpression="FileName" runat="server" />
<asp:BoundField HeaderText="Date Uploaded" DataField="DateUploaded" SortExpression="DateUploaded" runat="server" />
<%--<asp:BoundField HeaderText="Remarks" DataField="Remarks" runat="server" />--%>
<asp:BoundField HeaderText="AssociateId" DataField="AssociateId" SortExpression="AssociateId" runat="server" />
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CommandName="Download" Text="Download" CommandArgument='<%#Eval("ResumeId") %>' />
<asp:Button ID="Button2" runat="server" CommandName="DeleteRow" Text="Delete" OnClientClick='return confirm("Are you sure you want to delete this entry?");' CommandArgument='<%#Eval("ResumeId") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px" Font-Bold="True" Font-Underline="True"
ForeColor="White" />
<HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"
Font-Bold="True" Font-Names="Arial" ForeColor="White"
BackColor="#5D7B9D" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
<asp:Image ID="Image2" runat="server" Height="155px" ImageAlign="Left"
ImageUrl="~/Images/resume1.jpg" Width="162px" />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</td>
</tr>
</table>