Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
475 views
Im using AsynUpload to upload a file, and an asp button to submit the the process of the file.
<telerik:RadProgressManager runat="server" ID="RadProgressManager1" />
<telerik:RadAsyncUpload ID="rauFileUpload" runat="server" Width="95%"
                        OnClientValidationFailed="validationFailed" 
                        AllowedFileExtensions="xls" 
                        MaxFileSize="4000000">
</telerik:RadAsyncUpload>
<br />
<asp:button id="btnCharge" runat="server" OnClick="btnCharge_Click" /> 
<br />
<telerik:RadProgressArea runat="server" ID="RadProgressArea1" skin="Default" ProgressIndicators="TotalProgressBar, TotalProgressPercent">
</telerik:RadProgressArea>

The problem was when i double click on the button btnCharge i get the Exception
Server Error in '/EPR' Application.
--------------------------------------------------------------------------------
  
Could not find file 'C:\RPG\01-NET\EPR\EPR\EPR\App_Data\RadUploadTemp\nt2njtqp.xhy'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\RPG\01-NET\EPR\EPR\EPR\App_Data\RadUploadTemp\nt2njtqp.xhy'.
  
Source Error: 
  
  
Line 70: 
Line 71:             string fileName = Path.GetTempFileName();
Line 72:             uf.SaveAs(fileName);
Line 73:             
Line 74:             //DataSet ds = HLPimportExcel.ImportExcel(fileName, Yes);
   
  
Source File: c:\RPG\01-NET\EPR\EPR\EPR\Pages\HES\ServicesMassiveCharge.aspx.cs    Line: 72 
  
Stack Trace: 
  
  
[FileNotFoundException: Could not find file 'C:\RPG\01-NET\EPR\EPR\EPR\App_Data\RadUploadTemp\nt2njtqp.xhy'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   System.IO.File.Move(String sourceFileName, String destFileName) +239
   Telerik.Web.UI.AsyncUploadedFile.SaveAs(String fileName, Boolean overwrite) +81
   Telerik.Web.UI.UploadedFile.SaveAs(String fileName) +38
   Pages_HES_ServicesMassiveCharge.btnCharge_Click(Object sender, EventArgs e) in c:\RPG\01-NET\EPR\EPR\EPR\Pages\HES\ServicesMassiveCharge.aspx.cs:72
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
  
   
  
  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5420

I solve the problem with those double-click-on-buttons users with javasript, disabling the button and forcing a postback
        function enableLoadButton(button)
        {   
            button.disabled = true;
              
            __doPostBack("<%= btnCharge.UniqueID %>");
              
            return;
        }
  
<asp:button id="btnCharge" runat="server" OnClick="btnCharge_Click" OnClientClick="enableLoadButton(this)" />

Its solve the problem for some users, other still have the problem.
I try the different configurations of the time persistens of the files and nothing. In some point the uploaded file dissapear and i get the exception.
This occurs after the file was processed, when the response is created and i dont need to access to it anymore.

   Hope u can assist me, ask me if u need more info.
Peter Filipov
Telerik team
 answered on 21 Nov 2011
4 answers
110 views
Every now and then, if a user hits the PasteStript button to paste in to the editor, an alert window shows up saying "Please use Ctrl+V to Paste".

Why would this happen and, more importantly, how do I stop it?

FWIW, the alert looks a bit like a RadAlert except there is no chrome. It most assuredly isn't a standard javascript alert.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 21 Nov 2011
2 answers
88 views
Hi
I'm working with IIS 7.5 and windows server 2008 x64 but i have a problem

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Timestamp: Fri, 18 Nov 2011 14:36:17 UTC

 

 

Message: Sys.WebForms.PageRequestManagerServerErrorException: Exception has been thrown by the target of an invocation.

Line: 6

Char: 84093

Code: 0

URI: http://localhost/SAA/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.2.915.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a8a3454ab-b0eb-4774-9c97-f1758de16536%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3a58366029%3ae4f8f289%3aed16cbdc

Ivan
Top achievements
Rank 1
 answered on 21 Nov 2011
1 answer
87 views
Hi, I am wondering if there is any way to trap the Recurrence checkbox checked event client side? It would be wonderful to be able to get the checkbox state client side to do some validation on other data on our form. Thanks.
Plamen
Telerik team
 answered on 21 Nov 2011
5 answers
146 views
I am trying to load fresh data after one full rotation of the rotator. After a full cycle completes I'd like to have an event fire to reload new data and there's no event so far as I can see to do this. The data consists of live scores for a sporting event and I'd like to use one full rotation as the trigger to refresh the data. I am using the Live XML example as my basis. Please advise on the best way to accomplish this as there's no event to signal that a rotation is complete. Clearly the rotator must know when a cycle is complete since it can wrap frames. Thank you.

Regards,
George 
Slav
Telerik team
 answered on 21 Nov 2011
1 answer
224 views
Hi, i am trying to use the RadFileExplorer with physical and shared folder's paths

I try with this article
http://www.telerik.com/support/kb/aspnet-ajax/editor/physical-paths-and-different-content-types.aspx

In my code i get an error Type 'CustomFileSystemProvider' is not defined

By error i mean can not compile my code!

What i need to do?

- I include all the file in the App_code
- Include de FileSystemHandler.ashx in the root of my project

For now i am trying to do it locally on my machine!

I am using vb

Tks

Rumen
Telerik team
 answered on 21 Nov 2011
4 answers
287 views
Hi,

I want to put the Radcombobox (Demo: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=combobox) within formview control. Thats mean, I need to display the selected value on RadComboBox using c# code (For example, Asia). I tried to do that, but it is not working.

Can you please explain to me how can I do that?

Regards,
Bader
Bader
Top achievements
Rank 1
 answered on 21 Nov 2011
3 answers
129 views
Hello

Upgraded my project to Q3 RadControls (2011.3 1115) today.
I read the sticky note about the replacement of the skins, however it does not provide me with information on how to "upgrade" the code regarding to non-default skins.
My previous skin Windows7 cannot be loaded, though I copy Telerik.Web.UI.Skins to the \Bin folder and made a reference to that file.
I have the skin set in web.config:
<add key="Telerik.Skin" value="Windows7" />
This doesn't do the trick, I the the error in the first loaded control:
Telerik.Web.UI.RadSplitter with ID='SiteSplitter' was unable to find embedded skin with name 'Windows7'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false

Pavlina
Telerik team
 answered on 21 Nov 2011
8 answers
292 views
Hi.

I am trying to use ItemTemplate when Databoud, but can't get it to work.
The following code gives an error:
DataBinding: 'Telerik.Web.UI.OrgChartGroupItemRenderer' does not contain a property with the name 'name'.
<telerik:RadOrgChart ID="rocUsers" runat="server" DataFieldID="ID" DataFieldParentID="manager"
    DataTextField="fullname" DisableDefaultImage="True" GroupColumnCount="2" >
    <ItemTemplate>
 
        <strong><%# DataBinder.Eval(Container, "name") %></strong>
    </ItemTemplate>
    <RenderedFields>
        <ItemFields>
            <telerik:OrgChartRenderedField DataField="name" Label=":" />
            <telerik:OrgChartRenderedField DataField="avdeling_name" Label=":" />
        </ItemFields>
    </RenderedFields>
</telerik:RadOrgChart>



The following code gives no data, only the label Name: is shown in the boxes.
It is no difference if the RenderedFields are set or not.
It works fine if I use RenderedFields and no ItemTemplate, so the data is avaliable.
<telerik:RadOrgChart ID="rocUsers" runat="server" DataFieldID="ID" DataFieldParentID="manager"
    DataTextField="fullname" DisableDefaultImage="True" GroupColumnCount="2" >
    <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Bind("name","~/vimages/ownimages/{0}.jpg") %>'
            Width="30px" Height="30px" />
            Name:
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("Fullname") %>'></asp:Label>
        <br />
        <asp:Label ID="Label2" runat="server" Text='<%# Bind("avdeling_name") %>'></asp:Label>
        </ItemTemplate>
    <RenderedFields>
        <ItemFields>
            <telerik:OrgChartRenderedField DataField="name" Label=":" />
            <telerik:OrgChartRenderedField DataField="avdeling_name" Label=":" />
        </ItemFields>
    </RenderedFields>
</telerik:RadOrgChart>
Espen Fosshaug
Top achievements
Rank 1
 answered on 21 Nov 2011
1 answer
122 views
Hello,

Please check attached image for issue.

<telerik:RadOrgChart ID="RadOrgChart1" runat="server">
           <ItemTemplate>
               <asp:Image ID="Image1" runat="server" ImageUrl="http://2.bp.blogspot.com/_LBAtNnpRN7k/S_DfBlu9Q7I/AAAAAAAAPTE/znoECHLIizM/s200/User+Accounts+in+Windows.jpg"
                   Width="30px" Height="30px" />
                
               Name:
               <asp:Label ID="Label1" runat="server" Text='<%# Eval("Certificates") %>'></asp:Label>
               
               <asp:Label ID="Label2" runat="server" Text='<%# Eval("Text") %>'></asp:Label>
             <br />
           </ItemTemplate>
           <RenderedFields>
               <NodeFields>
                   <telerik:OrgChartRenderedField DataField="TeamName" Label="Team" />
               </NodeFields>
                 <ItemFields>
                   <telerik:OrgChartRenderedField DataField="Certificates" Label="Certificates" />
                   <telerik:OrgChartRenderedField DataField="Text" Label="Text" />
               </ItemFields>
           </RenderedFields>
       </telerik:RadOrgChart>
protected void Page_Load(object sender, EventArgs e)
       {
 
            
 
           DataTable nodeTable = new DataTable();
           nodeTable.Columns.Add("ID");
           nodeTable.Columns.Add("ParentID");
           nodeTable.Columns.Add("TeamName");
 
           nodeTable.Rows.Add(new String[] { "1", null, "Management" });
           nodeTable.Rows.Add(new String[] { "2", "1", "Unit" });
           nodeTable.Rows.Add(new String[] { "3", "2", "Dev" });
           nodeTable.Rows.Add(new String[] { "4", "2", "Research" });
 
           DataTable itemsTable = new DataTable();
           itemsTable.Columns.Add("NodeID");
           itemsTable.Columns.Add("ID");
           itemsTable.Columns.Add("Text");
           itemsTable.Columns.Add("Certificates");
 
           itemsTable.Rows.Add(new String[] { "1", "1", "CEO", "MCAD" });
           itemsTable.Rows.Add(new String[] { "1", "2", "CTO", "MCP" });
           itemsTable.Rows.Add(new String[] { "2", "3", "UnitManager", "MCSD" });
           itemsTable.Rows.Add(new String[] { "3", "4", "TeamLead", "MCTS" });
           itemsTable.Rows.Add(new String[] { "4", "5", "TechnicalLead", "MCP" });
 
           RadOrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "ID";
           RadOrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "ParentID";
           RadOrgChart1.GroupEnabledBinding.NodeBindingSettings.DataSource = nodeTable;
 
           RadOrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "NodeID";
           RadOrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "ID";
           RadOrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataTextField = "Text";
           RadOrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataSource = itemsTable;
 
           RadOrgChart1.DataBind();
       }


Thanks,
Jayesh Goyani
Nikolay Tsenkov
Telerik team
 answered on 21 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?