Hi,
This is Mariyappan.I want export to Excel in asp.net v3.5.My problem is export textbox vale.
<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Panel ID="Panel1" Width="1500px" runat="server">
<table id="table1" >
<tr>
<td align="left" style="width:750px">
Liability</td>
<td align="center" style="width:750px">
Amount</td>
<td style="width:750px">
Assets</td>
<td style="width:750px">
Amount</td>
<td style="width:750px">
Assets</td>
<td style="width:750px">
Amount</td>
</tr>
<tr>
<td style="width:750px">
SCHEDULE 1 - SHARE CAPITAL</td>
<td style="width:750px">
</td>
<td style="width:750px">
SCHEDULE 5 - FIXED ASSETS</td>
<td style="width:750px">
</td>
<td style="width:750px">
SCHEDULE 6 - INVESTMENTS</td>
<td>
</td>
</tr>
<tr>
<td >
Issued,Subsribed and Paid up Capital</td>
<td id="td1" > <asp:TextBox ID="TextBox1"
runat="server">ASG</asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server">hht</asp:TextBox>
</td>
<td >
Gross Block</td>
<td >
</td>
<td >
Investments</td>
<td >
</td>
</tr>
</table>
</asp:Panel>
</div>
<p>
<input id="Submit1" type="submit" value="submit" onclick="return Submit1_onclick()" /><asp:Button
ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</p>
</form>
</body>
</html>