Upload file Excel

Thread is closed for posting
2 posts, 0 answers
  1. Caio
    Caio avatar
    11 posts
    Member since:
    Jul 2013

    Posted 17 Sep 2013 Link to this post

    I need help.
    I use RadAsyncUpload to upload file (.xls or .xlsx) and save in a directory.
    Now, I need read this file and populate a GridView with these rows. How I can make it? How I call this control as methot in my .cs?
    Other question... I use TargetFolder to save file, but this function works just in LocalHost, in webserver, I can't save file (IIS7).


    <div class="qsf-demo-canvas">
            <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic" TargetFolder="~/Uploads" OnFileUploaded="btnImportFile_OnClick" />
            <telerik:RadProgressArea runat="server" ID="RadProgressArea1" />

    below is my GridView with all columns in my Excel template.

    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="false" GridLines="None"
                    <asp:BoundField DataField="MainFolder" />
                    <asp:BoundField DataField="SecondLevel" />
                    <asp:BoundField DataField="ThirdLevel" />
                    <asp:BoundField DataField="FourthLevel" />
                    <asp:BoundField DataField="Classification" />
                    <asp:BoundField DataField="OWNER" />
                    <asp:BoundField DataField="OWNER2" />
                    <asp:BoundField DataField="OWNER3" />
                    <asp:BoundField DataField="OWNER4" />
                    <asp:BoundField DataField="GroupR" />


    Caio Vinicius.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Sep 2013 Link to this post

    Hi Caio,

    Please have a look into this article which deals with binding ASP GridView using Excel. Also have a look into this documentation which explains the Settings for IIS7.

    Hope this helps,
  3. DevCraft R3 2016 release webinar banner
Back to Top