Click here to Skip to main content
12,999,081 members (46,923 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 0:25am
Updated 17-Apr-13 0: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
Web02 | 2.8.170622.1 | Last Updated 17 Apr 2013
Copyright © CodeProject, 1999-2017
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