Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to make a grdview field value a link -Anchor link
Sbonga Mathobela
Mar 28 2017 4:33 AM
218
Reply
Hi all.
DateTime dd = Convert.ToDateTime(site.Collection_Date);
dr["Collection Date"] = dd.ToShortDateString();
dr["Collection Time"] = site.Collection_Time;
dr["Collection Proof"] = "<a href=test.aspx>" + site.AttachImageReport + "</a>";
var st = db.tb_Status.FirstOrDefault(x => x.Status_Id == site.Vehicle_Status);
dr["Vehicle Status"] = st.Status;
I am using a gridview to display items like above. Now I can't make the field dr["Collection Proof"] value to be a link.
Can you assist.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
how multiple file upload in jquery ajax submit?
varchar data type to a smalldatetime out-of-range exception