Upload File not working (unhandled errors)

8 posts, 0 answers
  1. Gavin
    Gavin avatar
    3 posts
    Member since:
    Nov 2010

    Posted 06 Jul 2011 Link to this post

    I am trying to use the RadAsyncUpload control. The control displays successfully. When I click on the Select button  and then Open, the file I selected shows as being uploaded. On Internet Explorer and Firefox, I get the following errors (pasted from Firebug)

    uncaught exception: Error while uploading, [HttpWebRequest_WebException_RemoteServer] Arguments: NotFound Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60310.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer

    Unhandled Error in Silverlight Application [HttpWebRequest_WebException_RemoteServer] Arguments: NotFound Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60310.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at UploadPrototype.MainPage.ProcessResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassd.<InvokeGetResponseCallback>b__b(Object state2) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

    Unhandled Error in Silverlight Application [ScriptObject_InvokeFailed] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=8.0.60310.0&File=System.Windows.Browser.dll&Key=ScriptObject_InvokeFailed at System.Windows.Browser.ScriptObject.Invoke(String name, Object[] args) at UploadPrototype.EventManager.SilverlightError(String message, Int32 index) at UploadPrototype.MainPage.<>c__DisplayClass1f.<ProcessResponse>b__18()


    Please find below my aspx page:

    <%@ Page Title="Console View" Language="C#" MasterPageFile="~/Themes/Default.master"
        AutoEventWireup="true" CodeBehind="Console.aspx.cs" Inherits="CC.GRP.ITSM.WebLogging.Console" meta:resourcekey="PageResource1"  EnableViewState="true"%>
     
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <asp:Content ID="PageHeader" ContentPlaceHolderID="MasterHtmlHeader" runat="server">
     
        <script type="text/javascript" src="<%=ResolveUrl("~/Scripts/jquery-1.4.2.min.js")%>"></script>
     
        <script type="text/javascript" src="<%=ResolveUrl("~/Scripts/jquery-ui-1.8.5.custom.min.js")%>"></script>
     
        <script type="text/javascript">
            //<![CDATA[
     
            $(function() {
            // Attach event handlers
                $('#<%=IncidentStatusRbtn.ClientID%>').click(IncidentStatusRbtn_Click);
                //InitialiseDialog('<%= Dialog_EnterWorkLog.ClientID%>');
    //                        $('.medium-button').click(function(event) {
    //                            event.stopPropagation();
    //                            event.preventDefault();
                                //$('#<%= Dialog_EnterWorkLog.ClientID%>').dialog('open');
                                // Disabled the below code as if enabled, it causes the whole form to become Read Only
                                //$('#<%= Dialog_EnterWorkLog.ClientID%>').parent().appendTo($("form:first"))
    //                            return true;
    //                        });
            });
     
            // Initialises a dialog window with the standard options
            function InitialiseDialog(dialogId) {
                //alert("here");
    //            $('#' + dialogId).dialog({
    //                autoOpen: false,
    //                resizable: false,
    //                height: 320,
    //                width: 526,
    //                modal: true,
    //                open: function(event, ui) {
    //                    var obj = document.getElementById('#<%=Dialog_EnterWorkLog.ClientID%>');
    //                    if (obj != null) obj.focus();
    //                }
     
    //            });
     
            }
     
     
            function IncidentStatusRbtn_Click() {
                //alert($('#<%=IncidentStatusRbtn.ClientID%>').find('input:checked').val());
                if ($('#<%=IncidentStatusRbtn.ClientID%>').find('input:checked').val() == "OpenIncidents") {
                    theForm.submit();
     
                }
     
            }
     
            function CloseDialog() {
                $('#<%= Dialog_EnterWorkLog.ClientID%>').dialog('close');
                //theForm.submit();
                return;
            }
     
            function OpenDialog() {
    //            InitialiseDialog('<%= Dialog_EnterWorkLog.ClientID%>');
     
    //            $('#<%= SelectErrorMessageLabel.ClientID%>').hide();
    //            $('#<%= ErrorMessageLabel.ClientID%>').hide();
    //            $('#<%= WorkLogTypeDd.ClientID%>').val('');
    //            $('#<%= WorklogDetails.ClientID%>').val('');
    //            $('#<%= Dialog_EnterWorkLog.ClientID%>').dialog('open');
    //            alert("dialog");
                // Disabled the below code as if enabled, it causes the whole form to become Read Only 
                //$('#<%= Dialog_EnterWorkLog.ClientID%>').parent().appendTo($("form:first"))
                return;
            }
     
            function ValidateDialog() {
                //alert("validate");
                if ($('#<%= WorkLogTypeDd.ClientID%>').val() == '') {
                    $('#<%= SelectErrorMessageLabel.ClientID%>').show();
                    return false;
                }
                else {
                    $('#<%= SelectErrorMessageLabel.ClientID%>').hide();
                }
                if ((($('#<%= WorkLogTypeDd.ClientID%>').attr('selectedIndex') == '1') || ($('#<%= WorkLogTypeDd.ClientID%>').attr('selectedIndex') == '3')) && ($('#<%= WorklogDetails.ClientID%>').val() == '')) {
                    $('#<%= ErrorMessageLabel.ClientID%>').show();
                    return false;
                }
                else {
                    $('#<%= ErrorMessageLabel.ClientID%>').hide();
                    $('#<%= UpdateLogValid.ClientID%>').val('Yes');
                    theForm.submit();
                }
            }
             
            function isDate(txtDate) {
                var objDate,  // date object initialized from the txtDate string  
                      mSeconds, // txtDate in milliseconds  
                      day,      // day
                        month,    // month
                        year;     // year
                // date length should be 10 characters (no more no less)
                if (txtDate.length !== 10) {
                    return false;
                }
                // third and sixth character should be '/'
                if (txtDate.substring(2, 3) !== '-' || txtDate.substring(5, 6) !== '-') {
                    return false;
                }
                // extract month, day and year from the txtDate (expected format is dd-mm-yyyy)
                // subtraction will cast variables to integer implicitly
                day = txtDate.substring(0, 2) - 0;
                month = txtDate.substring(3, 5) - 1; // because months in JS start from 0
                year = txtDate.substring(6, 10) - 0;
                // test year range
                if (year < 1000 || year > 3000) {
                    return false;
                }
                // convert txtDate to milliseconds
                mSeconds = (new Date(year, month, day)).getTime();
                // initialize Date() object from calculated milliseconds
                objDate = new Date();
                objDate.setTime(mSeconds);
                // compare input date and parts from Date() object
                // if difference exists then date isn't valid
                if (objDate.getFullYear() !== year ||
            objDate.getMonth() !== month ||
            objDate.getDate() !== day) {
                    return false;
                }
                // otherwise return true
                return true;
            }
            function validateDate(dateString) {
                if (!isDate(dateString))
                    alert("Please enter date in dd-mm-yyy format");
            }
     
     
            //]]>
        </script>
     
    </asp:Content>
    <asp:Content ID="PageContent" ContentPlaceHolderID="MasterPageContent" runat="server">
     
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="IncidentStatusRbtn">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
         
        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
     
            <script type="text/javascript">
            function FilterDropdownChanged(sender, args) {
                    var filterItem = sender.get_element();
                    var filterData = args._item._properties._data.value;
                    switch (filterItem.id) {
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_HoldFilterBox":
                            $('#<%= Hold.ClientID %>').val(filterData);
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_FlagsFilterBox":
                            $('#<%= Flag.ClientID %>').val(filterData);
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_StatusFilterBox":
                            $('#<%= Status.ClientID %>').val(filterData);
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_ServiceFilterBox":
                            $('#<%= Service.ClientID %>').val(filterData);
                            break;       
                    }
                }
                function FilterBoxChanged(sender, args) {
                    //Store filter criteria in hidden fields
                    //args.set_cancel(true); //cancel the default command to prevent postback/ajax request
                    var filterItem = sender.get_element();
                    //alert("ee" + filterItem.id);
                    var filterData = args.get_newValue();
                    switch (filterItem.id) {
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_IncNumFilterBox":
                            $('#<%= Reference.ClientID %>').val(filterData);
                            //alert($('#<%= Reference.ClientID %>').val());
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_CompanyFilterBox":
                            $('#<%= Company.ClientID %>').val(filterData);
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_EquipmentFilterBox":
                            $('#<%= Equipment.ClientID %>').val(filterData);
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_CustomerFilterBox":
                            $('#<%= Customer.ClientID %>').val(filterData);
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_ContactFilterBox":
                            $('#<%= Contact.ClientID %>').val(filterData);
                            break;
     
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_ReportedFromFilterBox":
                            if (!isDate(filterData)) {
                                alert("Please enter ReportedFrom date in dd-mm-yyy format.");
                                filterItem.IsValid = false; // make page invalid
                            }
                            else
                            { $('#<%= DateReportedFrom.ClientID %>').val(filterData); }
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_ReportedToFilterBox":
                            if (!isDate(filterData)) {
                                alert("Please enter ReportedTo date in dd-mm-yyy format.");
                                filterItem.IsValid = false; // make page invalid
                            }
                            else {
                                $('#<%= DateReportedTo.ClientID %>').val(filterData);
                            }
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_ProductFilterBox":
                            $('#<%= Product.ClientID %>').val(filterData);
                            break;
                        case "ctl00_MasterPageContent_RadGrid2_ctl00_ctl02_ctl02_CCPostCodeFilterBox":
                            $('#<%= Postcode.ClientID %>').val(filterData);
                            break;
                        
                    }
                }
            </script>
     
        </telerik:RadScriptBlock>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
            SelectMethod="PopulateDropdownDatasets"
            TypeName="CC.GRP.ITSM.DataAccess.DropdownData" >
            <SelectParameters>
                <asp:ControlParameter ControlID="OnHoldQuery" DefaultValue="" Name="sQuery"
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="PopulateDropdownDatasets"
            TypeName="CC.GRP.ITSM.DataAccess.DropdownData" >
            <SelectParameters>
                <asp:ControlParameter ControlID="FlagQuery" DefaultValue="" Name="sQuery"
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" SelectMethod="PopulateDropdownDatasets"
            TypeName="CC.GRP.ITSM.DataAccess.DropdownData" >
            <SelectParameters>
                <asp:ControlParameter ControlID="StatusQuery" DefaultValue="" Name="sQuery"
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource4" runat="server" SelectMethod="PopulateDropdownDatasets"
            TypeName="CC.GRP.ITSM.DataAccess.DropdownData" >
            <SelectParameters>
                <asp:ControlParameter ControlID="ServiceQuery" DefaultValue="" Name="sQuery"
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <div class="GridOptions">
            <div class="ImageButtonPanel">
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Themes/Default/Images/1283868775_view-refresh.png"
                    OnClick="RefreshCommand" ToolTip="Refresh with Filter selection"
                    meta:resourcekey="ImageButton1Resource1" />
                  
                <asp:ImageButton ID="ImageButton2" runat="server" OnClick="ExportToExcel" ImageUrl="~/Themes/Default/Images/page_white_excel.png"
                    ToolTip="Export to Excel" meta:resourcekey="ImageButton2Resource1" />
            </div>
            <asp:Label ID="DisplayLabel" runat="server" Text="Display"
                meta:resourcekey="DisplayLabelResource1"></asp:Label>
            <asp:RadioButtonList ID="IncidentStatusRbtn" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                RepeatLayout="Flow" RepeatColumns="4"
                OnSelectedIndexChanged="IncidentStatusRbtn_SelectedIndexChanged"
                meta:resourcekey="IncidentStatusRbtnResource1">
                <asp:ListItem Value="OpenIncidents" meta:resourcekey="ListItemResource1">Open Incidents</asp:ListItem>
                <asp:ListItem Value="ClosedIncidents" meta:resourcekey="ListItemResource2">Closed Incidents</asp:ListItem>
                <asp:ListItem Value="AllIncidents" meta:resourcekey="ListItemResource3">All Incidents</asp:ListItem>
            </asp:RadioButtonList>
        </div>
        <asp:HiddenField ID="Reference" runat="server" />
        <asp:HiddenField ID="Company" runat="server" />
        <asp:HiddenField ID="Equipment" runat="server" />
        <asp:HiddenField ID="Postcode" runat="server" />
        <asp:HiddenField ID="DateReportedFrom" runat="server" />
        <asp:HiddenField ID="DateReportedTo" runat="server" />
        <asp:HiddenField ID="Customer" runat="server" />
        <asp:HiddenField ID="Contact" runat="server" />
        <asp:HiddenField ID="Hold" runat="server" />
        <asp:HiddenField ID="Product" runat="server" />
        <asp:HiddenField ID="Service" runat="server" />
        <asp:HiddenField ID="Status" runat="server" />
        <asp:HiddenField ID="Flag" runat="server" />
        <asp:HiddenField ID="UpdateLogValid" runat="server" />
        <asp:HiddenField ID="OnHoldQuery" runat="server" EnableViewState="true" />
        <asp:HiddenField ID="FlagQuery" runat="server" EnableViewState="true" />
        <asp:HiddenField ID="StatusQuery" runat="server" EnableViewState="true" />
        <asp:HiddenField ID="ServiceQuery" runat="server" EnableViewState="true" />
        <asp:HiddenField ID="FlagDefault" runat="server" />
        <asp:HiddenField ID="HoldDefault" runat="server" />
        <asp:HiddenField ID="ServiceDefault" runat="server" />
        <asp:HiddenField ID="StatusDefault" runat="server" />
        <br />
        <br />
        <telerik:RadGrid ID="RadGrid2" runat="server" AllowSorting="True" OnNeedDataSource="IncidentList_NeedDataSource"
            AllowFilteringByColumn="True" AllowPaging="True" GridLines="Both" OnItemCommand="RadGrid2_ItemCommand"
            OnItemEvent="RadGrid2_ItemEvent" FilterDelay="4000" ClientSettings-Resizing-AllowColumnResize="true"
            Width="100%" CellPadding="1" CellSpacing="1" BorderWidth="1"
            BorderColor="Gray"
            onitemdatabound="RadGrid2_ItemDataBound"   PageSize="5" >
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="IncidentNumber" AllowFilteringByColumn="true"
                AllowSorting="true" GridLines="Both" CellPadding="1" CellSpacing="1" BorderWidth="1"
                BorderColor="Gray"
                ExpandCollapseColumn-ButtonType="ImageButton"
                ExpandCollapseColumn-CollapseImageUrl="~/Themes/Images/minus.png"   
                ExpandCollapseColumn-ExpandImageUrl="~/Themes/Images/plus.png"  >
                <NestedViewSettings>
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="IncidentNumber" MasterKeyField="IncidentNumber" />
                    </ParentTableRelation>
                </NestedViewSettings>
                <NestedViewTemplate>
                    <asp:Panel ID="NestedViewPanel" runat="server">
                        <div>
                            <fieldset>
                                <legend><b>Detail info for Customer:</b> </legend>
                                <table style="border: 1px solid black;">
                                    <tr>
                                        <td >
                                            <table width="100%">
                                                <tr>
                                                    <td >
                                                        <b><asp:Label ID="SummaryLabel" runat="server" Text="Summary" ></asp:Label></b>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td >
                                                        <asp:TextBox ID="Summary" runat="server"  Width="100%" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table width="100%" style="border-top:1px solid black;">
                                                <tr>
                                                    <td style="width: 50%;">
                                                        <table width="100%">
                                                            <tr>
                                                                <td valign="top"  align="center">
                                                                    <b><asp:Label ID="WorkLogLabel" runat="server" Text="Work Log" ></asp:Label></b>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="top"  align="center">
                                                                    <table>
                                                                        <colgroup>
                                                                            <col width="25%" />
                                                                            <col width="25%" />
                                                                            <col width="25%" />
                                                                            <col width="25%" />
                                                                         </colgroup>
                                                                        <tr>
                                                                            <td class="title" align="left">
                                                                                <asp:Label ID="TypeLabel" runat="server" Text="Type"></asp:Label>
                                                                            </td>
                                                                            <td class="title" align="left">
                                                                                <asp:Label ID="SourceLabel" runat="server" Text="Source"></asp:Label>
                                                                            </td>
                                                                            <td colspan="2" class="title" align="left">
                                                                                <asp:Label ID="WLSummaryLabel" runat="server" Text="Work Log Summary"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td  align="left">
                                                                                <asp:TextBox ID="WLType" runat="server"  Width="120px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="WLSource" runat="server" Width="80px"  ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                            <td colspan="2"  align="left">
                                                                                <asp:TextBox ID="WLSummary" runat="server" Width="180px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="title" align="left" >
                                                                                <asp:Label ID="WLDateLabel" runat="server" Text="Work log date"></asp:Label>
                                                                            </td>
                                                                            <td class="title" align="left" >
                                                                                <asp:Label ID="WLSubmitDateLabel" runat="server" Text="Submit date"></asp:Label>
                                                                            </td>
                                                                            <td class="title" align="left">
                                                                                <asp:Label ID="WLAcknowlOnLabel" runat="server" Text="Acknowledged on"></asp:Label>
                                                                            </td>
                                                                            <td class="title" align="left">
                                                                                <asp:Label ID="WLAcknowlByLabel" runat="server" Text="Acknowledged by"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="style3"  align="left">
                                                                                <asp:TextBox ID="WLDate" runat="server" Width="100px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                            <td  align="left">
                                                                                <asp:TextBox ID="WLSubmitDate" runat="server" Width="100px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                            <td  align="left">
                                                                                <asp:TextBox ID="WLAcknowlOn" runat="server" Width="100px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                            <td  align="left">
                                                                                <asp:TextBox ID="WLAcknowlBy" runat="server" Width="100px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="4" align="left">
                                                                                <asp:Label ID="DetailsLabel" runat="server" Text="Details"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="4"  align="left">
                                                                                <asp:TextBox ID="WLDetails" runat="server" Rows="5" Width="100%" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td style="width: 50%; border-left: 1px solid black;">
                                                            <table width="100%">
                                                                <tr>
                                                                    <td valign="top" align="center">
                                                                        <b><asp:Label ID="EngTaskLabel" runat="server" Text="Engineer Task"></asp:Label></b>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="top"  align="left">
                                                                        <table width="100%" >
                                                                        <colgroup>
                                                                            <col width="25%" />
                                                                            <col width="75%" />
                                                                        </colgroup>
                                                                            <tr>
                                                                                <td class="title" align="left">
                                                                                    <asp:Label ID="SSDateLabel" runat="server" Text="Scheduled start date"></asp:Label>
                                                                                </td>
                                                                                <td class="title" align="left">
                                                                                    <asp:Label ID="NotesLabel" runat="server" Text="Notes"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td valign="top">
                                                                                    <asp:TextBox ID="SSDate" runat="server" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                                </td>
                                                                                <td valign="top" rowspan="6"  >
                                                                                    <asp:TextBox ID="Notes" runat="server"  Width="100%" Height="100%" CssClass="detailViewFont"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="title" align="left">
                                                                                    <asp:Label ID="StatusReasonLabel" runat="server" Text="Status reason"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td valign="top">
                                                                                    <asp:TextBox ID="StatusReason" runat="server" Width="100px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>                                                    </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="title" align="left">
                                                                                    <asp:Label ID="SignedOffByLabel" runat="server" Text="Signed off by"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td valign="top">
                                                                                    <asp:TextBox ID="SignedOffBy" runat="server" Width="100px" ReadOnly="true" CssClass="detailViewFont"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                         
                                         
                                         
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                </table
                            </fieldset>
                        </div>
                    </asp:Panel>
                </NestedViewTemplate>
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                <RowIndicatorColumn>
                  <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn >
                   <HeaderStyle Width="1%"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                <telerik:GridTemplateColumn HeaderStyle-Width="5.0%"  AllowFiltering="false" ColumnEditorID="IncidentNumber" >
                <ItemTemplate  >
                  <asp:Button  ToolTip="Add Work log"  runat="server"  ID="OpenWorklogDialogBtn"   CommandName="LogUpdate"  UseSubmitBehavior="false" Text="Update" OnClick="OpenWorklogDialogBtn_Click" />
                </ItemTemplate  >
               <ItemStyle CssClass="medium-button" Width="150px"   />
                </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn DataField="Flag" HeaderText="Flag" SortExpression="Flag"
                        UniqueName="Flag" AllowFiltering="true" AutoPostBackOnFilter="false"
                        ShowFilterIcon="false" ShowSortIcon="true" HeaderStyle-Width="8%">
                        <FilterTemplate>
                          <telerik:RadComboBox ID="FlagsFilterBox" runat="server" Width="100px" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Flag").CurrentFilterValue %>'
                                OnClientSelectedIndexChanged="FilterDropdownChanged" DataSourceID="ObjectDataSource2" DataTextField="FlagsText" DataValueField="FlagsValue"  OnDataBound="Flags_DataBound">
                       </telerik:RadComboBox
                        </FilterTemplate>
                        <ItemTemplate>
                            <%#Eval("Flag")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridHyperLinkColumn DataTextField="IncidentNumber" HeaderText="IncidentNumber"
                        DataTextFormatString="{0}" DataNavigateUrlFields="IncidentNumber" DataNavigateUrlFormatString="~/ViewIncidentDetails.aspx?inc={0}"
                        SortExpression="IncidentNumber" UniqueName="IncidentNumber" ShowSortIcon="true"
                        AutoPostBackOnFilter="false" CurrentFilterFunction="StartsWith" ShowFilterIcon="false"
                        HeaderStyle-Width="9%" Target="_Blank" >
                        <FilterTemplate>
                            <telerik:RadTextBox ID="IncNumFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="80px">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                    </telerik:GridHyperLinkColumn>
                    <telerik:GridTemplateColumn DataField="Company" HeaderText="Company" SortExpression="Company"
                        UniqueName="Company" AllowFiltering="true" AutoPostBackOnFilter="false" CurrentFilterFunction="StartsWith"
                        ShowFilterIcon="false" ShowSortIcon="true" HeaderStyle-Width="10%">
                        <FilterTemplate>
                            <telerik:RadTextBox ID="CompanyFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="80px">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                        <ItemTemplate>
                            <%#Eval("Company")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Customer" SortExpression="CustomerLastName"
                        UniqueName="CustomerFullName" AutoPostBackOnFilter="false" CurrentFilterFunction="StartsWith"
                        ShowFilterIcon="false" ShowSortIcon="true" HeaderStyle-Width="10%">
                        <FilterTemplate>
                            <telerik:RadTextBox ID="CustomerFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="80px">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                        <ItemTemplate>
                            <%#Eval("CustomerFirstName")%>
                            <%#Eval("CustomerLastName")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Contact" SortExpression="ContactLastName"
                        UniqueName="ContactFullName" AutoPostBackOnFilter="false" CurrentFilterFunction="StartsWith"
                        ShowFilterIcon="false" ShowSortIcon="true" HeaderStyle-Width="8%">
                        <FilterTemplate>
                            <telerik:RadTextBox ID="ContactFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="80px">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                        <ItemTemplate>
                            <%#Eval("ContactFirstName")%>
                            <%#Eval("ContactLastName")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Equipment" UniqueName="Equipment" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="StartsWith" ShowFilterIcon="false" ShowSortIcon="true"
                        SortExpression="HPD_CI" HeaderStyle-Width="8%">
                        <FilterTemplate>
                            <telerik:RadTextBox ID="EquipmentFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="80px">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                        <ItemTemplate>
                            <%#Eval("HPD_CI")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Status" UniqueName="Status" ShowSortIcon="true" AutoPostBackOnFilter="false" ShowFilterIcon="false" SortExpression="Status"
                        HeaderStyle-Width="8%">
                        <FilterTemplate>
                        <telerik:RadComboBox ID="StatusFilterBox" runat="server" Width="80px" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Status").CurrentFilterValue %>'
                                OnClientSelectedIndexChanged="FilterDropdownChanged" DataSourceID="ObjectDataSource3" DataTextField="StatusText" DataValueField="StatusValue"  OnDataBound="Status_DataBound">
                       </telerik:RadComboBox
                        </FilterTemplate>
                        <ItemTemplate>
                            <%#Eval("Status")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Hold" UniqueName="Hold" AutoPostBackOnFilter="false" ShowFilterIcon="false" HeaderStyle-Width="5%"
                        ShowSortIcon="true" SortExpression="SLA_Hold">
                        <FilterTemplate>
                            <telerik:RadComboBox ID="HoldFilterBox" runat="server" Width="40px" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Hold").CurrentFilterValue %>'
                                OnClientSelectedIndexChanged="FilterDropdownChanged" DataSourceID="ObjectDataSource1" DataTextField="OnHoldText" DataValueField="OnHoldValue"  OnDataBound="OnHold_DataBound">
                       </telerik:RadComboBox>
                        </FilterTemplate>
                        <ItemStyle Width="25px" />
                        <ItemTemplate>
                            <%#Eval("SLA_Hold")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Date Reported" UniqueName="Reported" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="StartsWith" ShowFilterIcon="false" ShowSortIcon="true"
                        HeaderStyle-Width="10%" SortExpression="ReportedDate">
                        <FilterTemplate>
                            <telerik:RadTextBox ID="ReportedFromFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="45px" ToolTip="FromDate-dd-mm-yyyy">
                            </telerik:RadTextBox>
                            <telerik:RadTextBox ID="ReportedToFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="45px" ToolTip="ToDate-dd-mm-yyyy">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                        <ItemTemplate>
                            <%#Eval("ReportedDate")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Product" UniqueName="Product" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="StartsWith" ShowFilterIcon="false" ShowSortIcon="true"
                        HeaderStyle-Width="6%" SortExpression="Product">
                        <FilterTemplate>
                            <telerik:RadTextBox ID="ProductFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="50px">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                        <ItemStyle Width="50px" />
                        <ItemTemplate>
                         <%#Eval("ProductName")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Service" UniqueName="Service" AutoPostBackOnFilter="false"
                        ShowFilterIcon="false" ShowSortIcon="true"
                        HeaderStyle-Width="8%" SortExpression="Service">
                        <FilterTemplate>
                        <telerik:RadComboBox ID="ServiceFilterBox" runat="server" Width="80px" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Service").CurrentFilterValue %>'
                                OnClientSelectedIndexChanged="FilterDropdownChanged" DataSourceID="ObjectDataSource4" DataTextField="ServiceText" DataValueField="ServiceValue"  OnDataBound="Service_DataBound">
                       </telerik:RadComboBox>
                       </FilterTemplate>
                        <ItemStyle Width="50px" />
                        <ItemTemplate>
                           <%#Eval("ServiceType")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn DataField="CCPostCode" HeaderText="CCPostCode" SortExpression="CCPostCode"
                        UniqueName="CCPostCode" AutoPostBackOnFilter="false" CurrentFilterFunction="StartsWith"
                        ShowFilterIcon="false" HeaderStyle-Width="7%" ShowSortIcon="true">
                        <FilterTemplate>
                            <telerik:RadTextBox ID="CCPostCodeFilterBox" runat="server" ClientEvents-OnValueChanged="FilterBoxChanged"
                                Width="50px">
                            </telerik:RadTextBox>
                        </FilterTemplate>
                        <ItemStyle Width="50px" />
                        <ItemTemplate>
                            <%#Eval("CCPostCode")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
                <Resizing AllowColumnResize="True"></Resizing>
             </ClientSettings>
        </telerik:RadGrid>
        <br />
    <asp:Button ID="clrFilters" runat="server" Text="Clear filters"
    OnClick="clrFilters_Click"></asp:Button>
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="DummyButton2" PopupControlID="UpdateWorkLogPanel" PopupDragHandleControlID="UpdateWorkLogPanel" CancelControlID="CancelButton" BackgroundCssClass="modalBackground" />
    <asp:Button runat="server" ID="DummyButton2" style="display:none" />
    <asp:Panel runat="server" ID="UpdateWorkLogPanel" CssClass="form-grid modalPopup" style="display:none">
     <asp:UpdatePanel runat="server" ID="UpdateWorkLogUpdatePanel" UpdateMode="Conditional">
     <Triggers>
     
     </Triggers>
     <ContentTemplate>
      
        <div id="Dialog_EnterWorkLog" runat="server" >
     
            <table width="500">
                <colgroup>
                    <col width="10%" />
                    <col width="80%" />
                    <col width="10%" />
                </colgroup>
                <tbody>
                    <tr>
                        <td>
                        </td>
                        <td align="left">
                            <asp:Label ID="WorkLogTypeLabel" runat="server" Text="Type of update:"
                                meta:resourcekey="WorkLogTypeLabelResource1"></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="WorkLogTypeDd" runat="server" Width="480"
                                meta:resourcekey="WorkLogTypeDdResource1" OnSelectedIndexChanged="WorkLogTypeDd_SelectedIndexChanged" AutoPostBack="True">
                                <asp:ListItem Text="Select..." Value=""></asp:ListItem>
                                <asp:ListItem Text="Additional Text" Value="0"></asp:ListItem>
                                <asp:ListItem Text="Request Cancellation" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Update availability information" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Chase for incident update" Value="3"></asp:ListItem>
                                <asp:ListItem Text="Attachments" Value="4"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td align="center">
                            <asp:Label ID="SelectErrorMessageLabel" runat="server" Text="Must select Type of update."
                                meta:resourcekey="SelectErrorMessageLabelResource1" ForeColor="Red" Visible="false"></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td align="left">
                            <asp:Label ID="WorklogDetailsLabel" runat="server" Text="Enter Worklog Details:" meta:resourcekey="WorklogDetailsLabelResource1"></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td align="center">
                            <asp:TextBox ID="WorklogDetails" runat="server" Height="100px" Rows="5"
                                Width="480" meta:resourcekey="WorklogDetailsResource1" ></asp:TextBox>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                    <td>
                        </td>
                        <td align="center">
                            <asp:Label ID="ErrorMessageLabel" runat="server" Text="Must enter WorkLog details." ForeColor="Red" Visible="false"></asp:Label>
                            </td>
                            <td></td>
                    </tr>
                                    <tr>
                        <td>
                        </td>
                        <td align="left">
                            <asp:Label ID="WorkLogAttachments" runat="server" Text="Current Attachments" Visible="false"/>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td align="left" >
                            <asp:AsyncFileUpload ID="WorkLogAttachmentsFileUpload" runat="server" OnUploadedComplete="WorkLogAttachmentsFileUpload_UploadedComplete" Visible="false"/>
                            <telerik:RadAsyncUpload ID="WorkLogAttachmentsFileUpload1" runat="server" MaxFileInputsCount="1" InitialFileInputsCount="1" />
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td align="left">
                             
                            <asp:TextBox runat="server" ID="UploadConfirmationLabel" CssClass="single-line-text-box read-only" BorderStyle="None" />
                        </td>
                        <td>
                        </td>
                    </tr
                    <tr>
                        <td>
                        </td>
                        <td align="center">
                            <asp:Button ID="UpdateBtn" runat="server" Text="Update Incident"
                            meta:resourcekey="UpdateBtnResource1"
                            onclientclick="ValidateDialog(); return false;" CausesValidation="False" OnClick="UpdateBtn_Click"/>
                            <asp:Button runat="server" ID="CancelButton" Text="Cancel" CausesValidation="false" OnClick="CancelButton_Click"/>
                        </td>
                        <td>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        </ContentTemplate>
        </asp:UpdatePanel
        </asp:Panel>
        
    </asp:Content>

    The RadAsyncUpload control exists in a Panel which is being displayed by a ModalPopUpExtender and server side code.

    I have created the Temp directory under App_Data, but no files are displayed here. There is one more problem, when I click on the red cross to remove the "uploaded" file, the Select button disappears.

    According to my reference properties for Telerik.Web.UI, the Runtime Version is 2.0.50727 and the Version is 2011.1.519.35

    Can anybody help me please?
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 11 Jul 2011 Link to this post

    Hi Gavin,

    Please consult with the following blog post whether the WebResource handler registration into the web config is correct.
    If it doesn't help, please send us a fiddlercap log to examine it locally.

    Regards,
    Peter Filipov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sachin
    Sachin avatar
    3 posts
    Member since:
    Nov 2010

    Posted 28 Sep 2011 Link to this post

    Hi

    We have already followed as mentioned 
    But still getting same problem. please help me
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 30 Sep 2011 Link to this post

    Hello Sachin,

    A solution for your case is to disable Silverlight module in RadAsyncUpload control. Please add the following javascript code to your application(right before the declaration of RadAsyncUpload control):
    Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };

    Also you can send me a working sample project to investigate it locally(please clarify which version of our controls and browser you are using).

    Kind regards,
    Peter Filipov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  6. Keith @ Aztek
    Keith @ Aztek avatar
    1 posts
    Member since:
    Jul 2009

    Posted 14 Dec 2011 Link to this post

    I came accross this post, with the same problem, and I thought that I would post a solution (in case you are like me who encountered the same problem)
    If you verify that your web.config is setup correctly with all of the correct registrations, and you have made the necessary adjustments if you are running under forms authentication, you MUST enable write permission for the "App_Data" folder, for your applicaiton context Identity.
  7. Tu
    Tu avatar
    1 posts
    Member since:
    Feb 2012

    Posted 08 Feb 2012 Link to this post

    @Keith @ Aztek: Exactly :)
  8. Alex
    Alex avatar
    23 posts
    Member since:
    Dec 2012

    Posted 13 Mar 2013 Link to this post

    How do you enable it? I have right-clicked the folder but do not see any menu (or sub-menu) option to enable write permissions. Can you please elaborate and possibly provide a screenshot or more detailed step-by-step?

    I went into my Visual Studio project and found an "App_Data" folder which was empty, although in Visual Studio it shows I have an Access database living there. I already had write permissions so I added write permissions for all users thinking this may be the issue. Unfortunately not, since I still cannot upload a file to my extermal thumbdrive (or anywhere else for that matter).

    Thanks.
    Alex
  9. Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 18 Mar 2013 Link to this post

    Hi Alex,

     
    May be this thread will be helpful in understanding how different permissions of folders work.

    Hope this will be helpful.

    All the best,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017