Providing hyperlink to GridView Contents

if i have a to write programe such that the file location comes from database and i need to provide hyperlink to it in gridview

i will do like this

<asp:TemplateField HeaderText="Download">
                <a href="/GO notifications<%# DataBinder.Eval(Container.DataItem,"File_path")%>" target="_blank">Download</a>

here File_path is the column name from which i will get data


About kakani santosh kumar

Working as Software Engineer in Prithvi Information Solutions having 3 years of Experience in Dotnet Framework ranging from 1.1 to 3.5
This entry was posted in Articles, Programming, Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s