Welcome Guest Search | Active Topics | Sign In | Register

AjaxUploader Width is not working.. Options
WebReprice
Posted: Friday, October 17, 2008 6:57:30 AM
Rank: Member
Groups: Member

Joined: 10/17/2008
Posts: 20
Hi there, I am evaluating this control as we supposed to buy it ASAP.
But I am unable to set the width of this control. when I select the file and hit the upload the control width get automatically increased even I have set it to 350px. Following is the control's html code. The Version which I am having for Eo.web.dll is 6.0.32.2

<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<%@ Page Language="C#" AutoEventWireup="false" Codebehind="Default.aspx.cs" Inherits="TpaaUpload._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Webflow Upload</title>
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

<script type="text/javascript">
function CleanUpDemo()
{
//Avoid this demo's state information to interfere other
//demos since they all use the same ID AJAXUploader1
var uploader = eo_GetObject("AJAXUploader3");
if (uploader)
uploader.unload();
}
</script>

</head>
<body>
<form id="form1" runat="server">
<eo:AJAXUploader id="AJAXUploader3" runat="server" Width="350px" TempFileLocation="C:\test\"
FinalFileLocation="C:\test\test" Rows=3 MaxDataSize="100000" ></eo:AJAXUploader>
<table class="normal" cellspacing="0" cellpadding="0" width="500px" align="center" bgcolor="white"
border="1" >
<tr >
<td width="350px">

</td>
</tr>
<tr>
<td>
<div>
<p>
Upload Utility
</p>
<p>
<asp:Label runat="server" ID="lblStatus" CssClass="normalBlack"></asp:Label>
</p>
<p class="normalBlack">
Your Name:
<asp:TextBox runat="server" ID="txtUploadedBy"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUploadedBy"
ErrorMessage="Name is Required"></asp:RequiredFieldValidator></p>
<p class="normalBlack">
Patient Name:
<asp:TextBox runat="server" ID="txtPatName"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPatName"
ErrorMessage="Patient Name Required"></asp:RequiredFieldValidator></p>
<p class="normalBlack">
Claim Number:
<asp:TextBox runat="server" ID="txtClaimNum"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtClaimNum"
ErrorMessage="Claim Number Required"></asp:RequiredFieldValidator></p>
<p>
</p>
<p>
&nbsp;<asp:Button ID="btnMore" runat="server" CausesValidation="False" OnClick="btnMore_Click"
Text="Add more Files" Visible="false" />
<asp:Button ID="Button1" Enabled="true" runat="server" Text="Submit" OnClick="Button1_Click">
</asp:Button></p>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
eo_support
Posted: Friday, October 17, 2008 7:25:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Does it only happen when you have selected a file name that's longer than the textbox? (For example, if you upload something like "c:\test.txt", which is short enough, then the problem does not occur). If this is the case, it is a bug that we have already fixed recently and we already have a new build that contains the fix for that. Please confirm if that's the problem.

Thanks!
WebReprice
Posted: Friday, October 17, 2008 7:34:26 AM
Rank: Member
Groups: Member

Joined: 10/17/2008
Posts: 20
Yes only when the Selected file name is longer then the Textbox. Usually we select the file from the folder on desktop and it has the length more then the textbox.
Sample browse path:
C:\Documents and Settings\username\Desktop\Imags\2008_10_15_16_8_22_86.tif
eo_support
Posted: Friday, October 17, 2008 7:59:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have sent you a private message that contains the download location for the new build.

This build fixes the text box part. So the uploader will not extend itself due to the file name is too long in the textbox. However one issue still remains with the posted file list if the file name is a single long "unbreakable" word (without any space). In this case the browser would not break the single word into multiple lines and results in expanding the whole uploader. This situation is not common but does occur. The easiest workaround for this issue is to:

1. Right click the uploader, then choose to edit the uploader's LayoutTemplate. This will generate the default layout template for you;
2. Find

Code: HTML/ASPX
<asp:PlaceHolder id="PostedFilesPlaceHolder" runat="server">
Posted Files Place Holder 
</asp:PlaceHolder>


In the layout template, and wrap it around with something like this:
Code: HTML/ASPX
<div style="width:350px;overflow-x:hidden">
....
</div>


This way the browser will no longer extend the uploader because the long line is now clipped off. Clipping off a long file name is less an issue than affecting the page layout. Neverthless, we are continue working on this and should be able to provide a solution that will "force" wrap the long unbreakable file names very soon.

Hope this helps.

Thanks
WebReprice
Posted: Friday, October 17, 2008 8:17:36 AM
Rank: Member
Groups: Member

Joined: 10/17/2008
Posts: 20
Thanks the build did helped and the width is not growing now.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.