I have added uploader control inside a gridview and then browse the page, the control worked fine. But I am getting an error in design view.The error is "There was an error rendering the control.Object reference not set to an instance of an object".
Is there any problem in my .aspx code?
Here is the .aspx code.
<
asp:GridView ID="grdtext" runat="server" AutoGenerateColumns="False"
CellPadding="4" EnableTheming="False" GridLines="None" DataKeyNames="NodeID"
ShowHeader="False" Width="100%" OnRowDataBound="grdtext_RowDataBound" OnRowCommand="grdtext_OnRowCommand">
<RowStyle HorizontalAlign="Left" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table>
<tr>
<td colspan="2" align="center">
<table>
<tr>
<td align="right" style="width: 140px">
Local Asset
</td>
<td align="left">
<CuteWebUI:UploadAttachments runat="server" ManualStartUpload="true" ID="CuteUploader"
InsertButtonID='BrowseButtonCup' InsertText="Upload" ItemTextTemplate="" MaxFilesLimit="1"
OnFileUploaded="CuteUploader_FileUploaded" UploadType="IFrame" MultipleFilesUpload="False"
NumFilesShowCancelAll="1" ShowTableHeader="False">
<ValidateOption MaxSizeKB="2097150" AllowedFileExtensions="jpeg,jpg,gif,png" />
</CuteWebUI:UploadAttachments>
<input id="txtfileCup" type="text" runat="server" />
<asp:Button runat="server" ID="BrowseButtonCup" OnClientClick="return browsebutton_click(this.id)"
Text="Browse (zip,2GB)" Style="border: 1px solid #507CD1; background-color: #D3DEEF;
font-size: 9px; width: 100px; height: 22px; color: #284E98;" />
<asp:Button runat="server" ID="SubmitButtonCup" OnClientClick="return submitbutton_click(this.id)"
Text="Upload" Style="border: 1px solid #507CD1; background-color: #D3DEEF; font-size: 9px;
width: 100px; height: 22px; color: #284E98;" Height="20px" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle CssClass="editProjAttrNameCol" Wrap="False" HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="editProjGridHeader" HorizontalAlign="Left" />
</asp:GridView>