Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
2.59/5 (3 votes)
This is my cod of .aspx page

HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Tabs - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$( "#tabs" ).tabs();
});
</script>
</head>
<body>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Nunc tincidunt</a></li>
<li><a href="#tabs-2">Proin dolor</a></li>
<li><a href="#tabs-3">Aenean lacinia</a></li>
</ul>
<div id="tabs-1">
<table border="1" style="width:300px">
<tr>
  <td>Jill</td>
  <td>Smith</td>		
  <td>50</td>
</tr>
<tr>
  <td>Eve</td>
  <td>Jackson</td>		
  <td>94</td>
</tr>
<tr>
  <td>John</td>
  <td>Doe</td>		
  <td>80</td>
</tr>
</table>
</div>
<div id="tabs-2">
<table border="1" style="width:300px">
<tr>
  <td>Suman</td>
  <td>Milon</td>		
  <td>50</td>
</tr>
<tr>
  <td>Eve</td>
  <td>Jackson</td>		
  <td>94</td>
</tr>
<tr>
  <td>Jamal</td>
  <td>Karim</td>		
  <td>80</td>
</tr>
</table>

</div>
<div id="tabs-3">
<table border="1" style="width:300px">
<tr>
  <td>Hena</td>
  <td>Mena</td>		
  <td>58</td>
</tr>
<tr>
  <td>Jamila</td>
  <td>Munira</td>		
  <td>94</td>
</tr>
<tr>
  <td>Habib</td>
  <td>Sourav</td>		
  <td>80</td>
</tr>
</table>

</div>
</div>
</body>
</html>


Now I want add a export button. If i click the export button I will get a excel file where content of different tab will save in different sheet of this excel file.

Can anyone provide the code for this issue using C#.Net?
Posted
Comments
SRS(The Coder) 25-Jun-14 6:31am    
Do you populate the tabs on click itself of its tab button or on first load only you are populating all the tab sections ?
sachi Dash 25-Jun-14 6:42am    
on first loading all the tabs and its content will load. I need to export the content of each tab in different sheet in a excel file

1 solution

you can use epplus serverside.

create a generic method that gives the datasource and split the usage between rendering and exporting.
 
Share this answer
 

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