Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai friends,

I have gridview control having title,incidentnumber,calendarcontrol with autogenerateselectbutton to true.If i click select link i am populating the selected rows values in a session and it is displaying in the "incident.aspx" page.It is having fields title,incidentnumber,calendarcontrol and button control.If i click submit button i want to show the excel report for the selected incident number from the sql table.Can anybody help me.
Below is the code.

 <table border="3" cellpadding="3" cellspacing="3" style="width:60%" align="center">
  <tr>
  <td align="right">
     <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label>
  </td>
  <td>
  <asp:TextBox ID="txtTitle" runat="Server"  ></asp:TextBox>
  </td>
  </tr>
<tr>
                <td align="right">
                  
                    <asp:Label ID="lblIncidentNumber" runat="server" Text=" Incident Number :"></asp:Label>
                   
                </td>
                <td>
                    <asp:TextBox ID="txtIncidentNumber" runat="Server" onkeypress="return isNumberKey(event)" ></asp:TextBox>

                </td>
             
            </tr>
<tr>

<td  align="right">
                  
                  <asp:Label ID="lblStarttime" runat="server" Text=" Start time"></asp:Label>
</td>
<td>

                    
   
    
                     <asp:Calendar ID="StartCalendar" runat="server" 
                         ></asp:Calendar>
                     
                   
                     
                    
</td>
</tr>
  <asp:Button ID="Button2" runat="server" Text="Submit" 
        />


Thanks in advance
Posted
Updated 26-Dec-13 19:28pm
v2
Comments
Maciej Los 27-Dec-13 1:58am    
What have you done? Where are you stuck?
Member 10234093 27-Dec-13 2:00am    
It is not showing excel report based on entered incident number
gettgotcha 27-Dec-13 12:08pm    
What's the code logic you have in the button click

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900