473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Page alignment changes when tried to upload unsupported file

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

Expand|Select|Wrap|Line Numbers
  1.  <table width="100%" bgcolor="#99CCFF" style="margin-bottom:auto; margin-top:auto">
  2.  
  3.     <tr>
  4.             <td align="center" class="style1" bgcolor="#99CCFF">
  5.                 &nbsp;&nbsp;&nbsp;
  6.                 <br />
  7.                 <br />
  8.                 <br />
  9.                 <br />
  10.                 <br />
  11.                 <br />
  12.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  13.                 <asp:FileUpload ID="FileUpload1" Text="Browse" runat="server" 
  14.                     Font-Bold="True" BorderColor="#FFFF66" />
  15.  
<asp:Button ID="btnUpload" Text="Upload" runat="server" Height="22px"
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">
&nbsp;&nbsp;
Please Upload Your Resume file here. </td>
</tr>
<tr>
<td align="center" class="style1" bgcolor="#99CCFF">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<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>
Feb 20 '12 #1
0 1253

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
5
by: Grace | last post by:
Hello, I want to upload the file by webpage to SQL Server. When I upload the small file, it is work. But, when I upload big file(ex. 40~50 MB), it isn't work; the Browser displays the...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
1
by: hdotnetdev | last post by:
hi all i am using server upload control and other server controls. Once the page is posted back to server by any of other server controls, the page gets expired. So if i move to the page...
12
by: lawrence k | last post by:
I've a form that starts off like this: <form method="post" action="profile.php? id=5&formName=my_story_edit.htm" enctype="multipart/form-data"> <p>Email address:<br /> <input type="text"...
3
by: vijaykumardahiya | last post by:
Hello To Every One, I want to know that when I upload the File like a image from html page Its not show on servlet page using appropriate logic. I read the FileUpload Home page.But I am still...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
2
by: Viji nellaiappan | last post by:
I designed a web page using php... when i view this page in someother system, then its alignment changes in that system.. How to design in php, so that alignment remains same irrespective of system...
7
by: rshgeneral | last post by:
I am having difficulty uploading some large files using php/html form. The code has worked for file sizes up to 23MB. When I've tried a 50MB file, i get a blank page instead of my confirmation echo...
1
by: Mukesh Tiwari | last post by:
When we run the application on localhost the attachment is upload succesfully and the mail is send. But when we upload the site on webserver, and run the application the attachment was not...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.