使用按钮保存文件,然后在gridview中单击(c#asp.net) [英] saving a file with a button click in gridview (c# asp.net)

查看:99
本文介绍了使用按钮保存文件,然后在gridview中单击(c#asp.net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我可能还有另一种方法来做自己需要的事情.请有人给我一个主意.

我需要的是:当我们进入gridview中的任何行时,最后一列必须是一个按钮,并且当我们单击它时,与该按钮相关的文件应该开始由用户下载.我具有相关列的url(//10.x.x.x/folder/file),因为我使用逻辑进行了计算.我唯一需要的是单击按钮时进入该URL.
我可以使用任何一种按钮.

非常感谢

Hello,

There may be another ways for me to do what I need. Please someone gives me an idea.

What I need is: When we come to any row in gridview, the last column must be a button and when we hit it, the file related with the button should start to be downloaded by the user. I have the url ( //10.x.x.x/folder/file) of the related column, because I calculated this with a logic. My only need is to go that url when the button is clicked.
I can use any kind of buttons.

Thanks a lot

推荐答案

您好,

是的,我仍然无法访问该文件.当我单击gridview中的按钮时,您可能会建议我下载文件的另一种方法.

非常感谢
Hello,

Yes I still cannot access to the file. You may suggest another way for me to download the file when I click to the button in gridview.

Thanks a lot


这篇关于使用按钮保存文件,然后在gridview中单击(c#asp.net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆