Click here to Skip to main content
11,646,838 members (72,833 online)
Rate this: bad
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
Edited 17-Apr-13 0:29am
sri senthil kumar at 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 at 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
0 510
1 Sergey Alexandrovich Kryukov 478
2 OriginalGriff 428
3 CPallini 334
4 F-ES Sitecore 309
0 OriginalGriff 1,253
1 994
2 DamithSL 896
3 Sergey Alexandrovich Kryukov 833
4 CPallini 720

Advertise | Privacy | Mobile
Web01 | 2.8.150731.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