GridView中的音频文件 [英] Audio files in GridView

查看:121
本文介绍了GridView中的音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


祝您新年快乐,参加codeproject论坛.
我有以下要求:

我需要在gridview中显示音频文件(.wav)(如果可能,在C#中),并在单击相应行时播放,如何将音频文件保存到sqlserver 2005数据库中.

提前谢谢.

问候
Satya

Hi,
Wish you happy new year to codeproject forum.
I have immediate requirement on:

I need to display audio files(.wav) in gridview(if possible in C#) and play while click on respected row and how can i save audio files into sqlserver 2005 database.

Thanks in advance.

Regards
Satya

推荐答案

我认为这不是Web应用程序,因为您没有这么说.

您可以将gridview配置为显示任意内容,简单的选项是Windows Media Player控件,该控件显示基本UI并加载文件.
I assume this is not a web application, as you don''t say it is.

You can configure your gridview to show whatever you like, the easy option is a windows media player control that shows the basic UI and loads the file.


关于问题#2.

如果您不是在讨论大型项目,则可以将音频文件保存到数据库中,但是仍然不建议这样做.但是有时候这更合乎逻辑.请参阅有关BLOBS和二进制数据/SQL数据类型的SQL Server联机丛书.
In relation to question #2.

Saving audio files into a database may be OK if you are not talking about large items but it''s still not a recommended practice. But then sometimes it''s more logical. Look at SQL Server Books Online referring to BLOBS and binary data/SQL datatypes.


:-D :):laugh:;); P :( >&<a href=""></a>
:-D :) :laugh: ;) ;P :( >&<a href=""></a>


这篇关于GridView中的音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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