Posted on: 6/7/2014 1:52:23 PM | Views : 425

I have a page where I have place attachment1 and attachment2 box.
attachment1 file goes in attachment1 table and attachment2 file should go on attachment2 table.
When I upload anything on attachment1 box it works fine.
But when I don't upload anything on attachment1 and upload anything on attachment2 and try to view the image in the gridview it's give me error Parameter is not valid
Here is the code for attachment page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sendquote1.aspx.cs" Inherits="sendquote1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .style4 { ...

Go to the complete details ...