Export Button Download it FREE
By AzamSharp
Views: 4599


What is Export Button:

Export Button is a custom control that let's you export your DataGrid or TextBox data to several different formats. The control is extremely easy to use and also exposes design time features. In this article I will discuss some of the features of the Export Button and how it benefits the developer.   

Referencing the Export Button:

The Export Button is a simple control which you can add in your toolbox. Simply download the .dll file and add it to your toolbox using the following steps.

1) Click on the toolbox so that you can see all the controls in the toolbox. Right click on the grey area of the toolbox and select "Add/Remove Items".

2) A new window will pop up and from that you can select browse. After selecting browse simply select the .dll file and this way the control will be added to your toolbox.

Using the Export Button:

Simply drag and drop the Export Button on the form. When you drag the button you will see the something like this:

Don't worry the control will render as a button. You can access all the properties of the control by simply right clicking and selecting the properties option.

Export Button Properties:

The Export Button exposes three new properties:

Export Mode: Export Mode property allows the user to select the mode in which he likes to export the data. The Export Mode can be Excel, Text, XML or Word.

FileName: FileName is the name given to the exported file. You can type any name that you want. You should not include the extension of the file when specifying the file name.

TargetControlID: TargetControlID represents the ID of the DataGrid or a TextBox control.

NOTE: The export to XML feature is mainly developed for the DataGrid control. However you can also use it with TextBox control. Simply enter the valid XML in the TextBox and export it to a xml file.

Online Demo: View the online demo.

Download the control

 

By AzamSharp


Enter Comment/Feedback
  •  
  •  
  •  
  •  
  •  

Comments/Feedbacks
Subject: The Online Demo is not workin and the control is not includeded in the download link
Name: Osman Hamad
Date: 1/29/2007 11:03:11 PM
Comment:
Hi Azamsharp ,
I wanted to try this control
The Online Demo is not working and the control is not includeded in the download link .I wonder if the source code will be available with it.
Regards,
Subject: Export Button
Name: Sultan
Date: 4/16/2007 3:06:33 AM
Comment:
i tried Export Button dll in asp.net application and when i clicked to it, nothing happened.
is it compatiple with asp.net 2.0?
Subject: Export
Name: arivu
Date: 11/21/2007 2:43:58 AM
Comment:
That link is not working and the source code is not satisfied please help me how gridview data export and save in a xml file
and send the source code
Subject: button
Name: den
Date: 6/10/2008 3:48:43 AM
Comment:
i need help with a export button
Subject: link url
Name: Chris
Date: 6/11/2008 11:05:01 AM
Comment:
just remove the 2nd gridviewguy.com from the url and it works...



Join WebHost4Life.com






Copyright GridViewGuy 2007-2008