Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening/Viewing a file

Status
Not open for further replies.

malonep

Programmer
Jul 14, 2004
44
CA
Hi,

I am new to asp.net and I am trying to create an asp.net page that will display a list of files (currently in a datagrid). I would like have the name of a file as a link that would open and/or save the file. I can get the names to link to a real url but I am unable to get the link to work when it is a local file.

I am currently trying to set the link up by:
Code:
CType(oItem.FindControl("lnkHyper"), HyperLink).NavigateUrl = root + oItem.Cells(3).Text

CType(oItem.FindControl("lnkHyper"), HyperLink).Enabled = True

Any help would be appreciated

Thanks,
malonep
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top