Click here to Skip to main content
11,927,190 members (46,857 online)
Rate this:
Please Sign up or sign in to vote.
I implemeted the multiple file upload using jquery from this site.. It works correctly when individually implement in Default.aspx without the server form tag.. but when implemented inside multiview control its getting error "Error: SyntaxError: JSON.parse: unexpected character".. I tried all possible ways but I could not achieve the proper result.
<form id="form1"  runat="server"> 
           runat="server" OnMenuItemClick="menuTabs_MenuItemClick">
              <asp:MenuItem Text="Home" Value="0" Selected="true"></asp:MenuItem>
              <asp:MenuItem Text="My Uploads" Value="1"></asp:MenuItem>
      <asp:MultiView ID="multiTabs" ActiveViewIndex="0" runat="server">
              <asp:View ID="view1" runat="server">
                 <form id="fileUploaderForm" method="post" action="FileTransferHandler.ashx">
                   <div class="fileupload-buttonbar">
                       <label class="fileinput-button"><span>Add files...</span>
                            <input type="file" name="files[]" multiple="multiple" />
              <asp:View ID="view2" runat="server"> 
                      <!-- Grid view of uploaded files (implemented successfully)-->

Please suggest other possible solutions to get the output like core asp-c# without flash. Else please help to fix this bug..
Posted 17-Apr-13 1:25am
Edited 17-Apr-13 1:29am
sri senthil kumar 18-Apr-13 1:40am
I think we cannot have nested form but am not sure. If you move the html form out of asp form, i hope it will work...
Janani Muthaiyan 18-Apr-13 2:08am
Yes.. It will I know.. But I need this form inside mutiview control.. so what to do

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 17 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100