gridview数据以显示在表单文本框和其他控件中 [英] gridview data to display in form textboxes and different controls

查看:69
本文介绍了gridview数据以显示在表单文本框和其他控件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我在网格中有网格视图,我没有记录.但是我想更改或编辑grid.中的选定行,所以我想将所有数据显示到文本框和下拉列表中.更新文件名.


当我在没有文件上传的情况下编辑数据时,这是一件小事,它们会出现类似
的错误
拒绝访问路径``D:\ Venkat \ Venkat.s \ VENKAT \ Dmst \ documents''.

但是我没有在fileupload中选择任何文件.这就是为什么我会出错,然后我选择了文件,然后一切正常.

谢谢与问候
Venkat.S

Hi Friends,

I have Grid View inside grid i have no of records.but i want to change or edit selected row in grid.so i want to display all data in to text boxes and dropdownlist .I displayed those to but i need to display fileupload control to update file name.


Here small thing when i edit data without fileupload they get error like

Access to the path ''D:\Venkat\Venkat.s\VENKAT\Dmst\documents'' is denied.

But i don''t select any file in fileupload.thats why i get error, then i selected file then it ll be ok.

Thanks&Regards
Venkat.S

推荐答案

尝试使用下面的链接

http://www.aspnettutorials.com/tutorials/file/fileupload-csharp.aspx
try using below link

http://www.aspnettutorials.com/tutorials/file/fileupload-csharp.aspx


这篇关于gridview数据以显示在表单文本框和其他控件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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