Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,


I have a web page.It is having control "Name" and "City" label boxes and "txtName" and "TxtCity" textboxes and "BtnSubmit" button control.If we click button it will open an excel sheet and display all the possible columns for the entered name and city should be displayed from sql server table.Can anybody plz help me

Thanks in advance
Posted
Comments
Tejas Vaishnav 24-Dec-13 5:03am    
If your problem is solved by any of this listed 3 solutions then mark that solutions as your answer so it will help for others, to solve their same issue.
Or if you have solve your problem by your self then add your solution to this question it will also helps other to solve their problem

Can you please review this links, it will demon strait how to export data to Excel. for your solution, you need to do this steps.

1) on web page enter value in text boxes
2) as user click on button, fire select query over your sql sever database which filter your records based on your text boxes value and filled out data table or data set as per your resulted data
3) use export to excel functionality from given links (you need to modified code for export to excel as per your requirement)


reference links for export to excel

Export to Excel[^]

Export to Excel from Gridview and Data Table[^]
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
v2

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