C
CreativeMind
hi, I am facing problem in download hyperlink..plz give me the
solution.
in codebehind,
private void repDocuments_ItemDataBound(object sender,
System.Web.UI.WebControls.RepeaterItemEventArgs e)
System.Web.UI.WebControls.HyperLink myLink =
(System.Web.UI.WebControls.HyperLink)repDocuments.Items.FindControl("LnkDownLoad");
and in aspx page,
<TD align="left" valign="top" class="GridCell"><a id="LnkDownLoad"
href='../PropertyDocuments/<%#DataBinder.Eval(Container,
"DataItem.PhysicalFileName")%>' class="recordLink LnkAppear">
Download</a></TD>
....now when i click on hyperlink 'download', i see the the file in
browser window but i want the download dialog , how can i do that??
thx
solution.
in codebehind,
private void repDocuments_ItemDataBound(object sender,
System.Web.UI.WebControls.RepeaterItemEventArgs e)
System.Web.UI.WebControls.HyperLink myLink =
(System.Web.UI.WebControls.HyperLink)repDocuments.Items.FindControl("LnkDownLoad");
and in aspx page,
<TD align="left" valign="top" class="GridCell"><a id="LnkDownLoad"
href='../PropertyDocuments/<%#DataBinder.Eval(Container,
"DataItem.PhysicalFileName")%>' class="recordLink LnkAppear">
Download</a></TD>
....now when i click on hyperlink 'download', i see the the file in
browser window but i want the download dialog , how can i do that??
thx