You must Sign In to post a response.
  • Category: ASP.NET

    How to copy gridview row(label,textbox) value using linkbutton(Click) in Asp.net C#

    hi Developers ,

    i have bind values in gridview from the database.
    i want to copy gridview row textbox,label value by clicking Linkbutton in asp.net.
    if i click copy link the clicked row textbox and label value will be copy.
    then if i paste my notepad my copied values must be paste on notepad.

    i have no idea to how to done this requirement. So anyone know please help me to i am done this task.

    thanks with
    Paul.S
  • #767477
    Hi,

    When you click copy button in your gridview use OnRowCommand event and copy the content into one datatable,

    and when you click on Paste option export datatable to text file.

    Refer below link this might be helpful to export datatable to text file "smart-arab.com/2011/10/export-import-datatable-to-from-file/"

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/


Sign In to post your comments