hi
I have a page to upload resume and valid file formats are
.doc
.docx
.pdf
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
<asp:Button ID="btnUpload" Text="Upload" runat="server" Height="22px"
Width="95px" style="margin-right: 0px; margin-top: 0px"
onclick="btnUpl oad_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="#99CCF F">
Please Upload Your Resume file here. </td>
</tr>
<tr>
<td align="center" class="style1" bgcolor="#99CCF F">
&nb sp; &nb sp; &nb sp; &nb sp; &nb sp;
<asp:GridView ID="GridView1" runat="server" AutoGenerateCol umns="False"
OnRowCommand="G ridView1_RowCom mand" AllowSorting="T rue"
AllowPaging="Tr ue" PageSize="1" OnPageIndexChan ging="GridView1 _Paging"
onsorting="Grid View1_Sorting" CaptionAlign="R ight" Font-Bold="False"
ForeColor="#333 333" CellPadding="4" GridLines="None ">
<AlternatingRow Style BackColor="Whit e" ForeColor="#284 775" />
<Columns>
<asp:BoundFie ld HeaderText="Fil eName" DataField="File Name" SortExpression= "FileName" runat="server" />
<asp:BoundFie ld HeaderText="Dat e Uploaded" DataField="Date Uploaded" SortExpression= "DateUpload ed" runat="server" />
<%--<asp:BoundFie ld HeaderText="Rem arks" DataField="Rema rks" runat="server" />--%>
<asp:BoundFie ld HeaderText="Ass ociateId" DataField="Asso ciateId" SortExpression= "AssociateI d" runat="server" />
<asp:TemplateFi eld>
<ItemTemplate >
<asp:Button ID="Button1" runat="server" CommandName="Do wnload" Text="Download" CommandArgument ='<%#Eval("Resu meId") %>' />
<asp:Button ID="Button2" runat="server" CommandName="De leteRow" Text="Delete" OnClientClick=' return confirm("Are you sure you want to delete this entry?");' CommandArgument ='<%#Eval("Resu meId") %>' />
</ItemTemplate>
</asp:TemplateFie ld>
</Columns>
<EditRowStyle BackColor="#999 999" />
<FooterStyle BackColor="#5D7 B9D" BorderColor="Bl ack" BorderStyle="So lid"
BorderWidth="1p x" Font-Bold="True" Font-Underline="True "
ForeColor="Whit e" />
<HeaderStyle BorderColor="Bl ack" BorderStyle="So lid" BorderWidth="1p x"
Font-Bold="True" Font-Names="Arial" ForeColor="Whit e"
BackColor="#5D7 B9D" />
<PagerStyle BackColor="#284 775" ForeColor="Whit e" HorizontalAlign ="Center" />
<RowStyle BackColor="#F7F 6F3" ForeColor="#333 333" />
<SelectedRowSty le BackColor="#E2D ED6" Font-Bold="True" ForeColor="#333 333" />
<SortedAscendin gCellStyle BackColor="#E9E 7E2" />
<SortedAscendin gHeaderStyle BackColor="#506 C8C" />
<SortedDescendi ngCellStyle BackColor="#FFF DF8" />
<SortedDescendi ngHeaderStyle BackColor="#6F8 DAE" />
</asp:GridView>
<asp:Image ID="Image2" runat="server" Height="155px" ImageAlign="Lef t"
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>
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
Code:
<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="btnUpl oad_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="#99CCF F">
Please Upload Your Resume file here. </td>
</tr>
<tr>
<td align="center" class="style1" bgcolor="#99CCF F">
&nb sp; &nb sp; &nb sp; &nb sp; &nb sp;
<asp:GridView ID="GridView1" runat="server" AutoGenerateCol umns="False"
OnRowCommand="G ridView1_RowCom mand" AllowSorting="T rue"
AllowPaging="Tr ue" PageSize="1" OnPageIndexChan ging="GridView1 _Paging"
onsorting="Grid View1_Sorting" CaptionAlign="R ight" Font-Bold="False"
ForeColor="#333 333" CellPadding="4" GridLines="None ">
<AlternatingRow Style BackColor="Whit e" ForeColor="#284 775" />
<Columns>
<asp:BoundFie ld HeaderText="Fil eName" DataField="File Name" SortExpression= "FileName" runat="server" />
<asp:BoundFie ld HeaderText="Dat e Uploaded" DataField="Date Uploaded" SortExpression= "DateUpload ed" runat="server" />
<%--<asp:BoundFie ld HeaderText="Rem arks" DataField="Rema rks" runat="server" />--%>
<asp:BoundFie ld HeaderText="Ass ociateId" DataField="Asso ciateId" SortExpression= "AssociateI d" runat="server" />
<asp:TemplateFi eld>
<ItemTemplate >
<asp:Button ID="Button1" runat="server" CommandName="Do wnload" Text="Download" CommandArgument ='<%#Eval("Resu meId") %>' />
<asp:Button ID="Button2" runat="server" CommandName="De leteRow" Text="Delete" OnClientClick=' return confirm("Are you sure you want to delete this entry?");' CommandArgument ='<%#Eval("Resu meId") %>' />
</ItemTemplate>
</asp:TemplateFie ld>
</Columns>
<EditRowStyle BackColor="#999 999" />
<FooterStyle BackColor="#5D7 B9D" BorderColor="Bl ack" BorderStyle="So lid"
BorderWidth="1p x" Font-Bold="True" Font-Underline="True "
ForeColor="Whit e" />
<HeaderStyle BorderColor="Bl ack" BorderStyle="So lid" BorderWidth="1p x"
Font-Bold="True" Font-Names="Arial" ForeColor="Whit e"
BackColor="#5D7 B9D" />
<PagerStyle BackColor="#284 775" ForeColor="Whit e" HorizontalAlign ="Center" />
<RowStyle BackColor="#F7F 6F3" ForeColor="#333 333" />
<SelectedRowSty le BackColor="#E2D ED6" Font-Bold="True" ForeColor="#333 333" />
<SortedAscendin gCellStyle BackColor="#E9E 7E2" />
<SortedAscendin gHeaderStyle BackColor="#506 C8C" />
<SortedDescendi ngCellStyle BackColor="#FFF DF8" />
<SortedDescendi ngHeaderStyle BackColor="#6F8 DAE" />
</asp:GridView>
<asp:Image ID="Image2" runat="server" Height="155px" ImageAlign="Lef t"
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>