Last post Feb 14, 2018 03:18 PM by wmoncure
Feb 05, 2018 05:23 PM|wmoncure|LINK
Because I am not using Visual Basics for Windows , but using Visual Basics MVC I am not able to display a video. The problem is , each member using Email as their primary login has the ability to upload a video file to display their video talent. so , within
Form view, I can successfully upload a video to a Video/FeaturedVideo/ folder. There are no video controls available for Visual Basics Web Applications, I have to use HTML code. In Item template, I want to be able to connect their video the member uploaded
to play. what I did was added a iframe or video control (preferably). I did an <frame> where the src=<%# Eval("FeaturedVideo") %> . I expected to play because I pointed to the the data column. My label controls and literal controls point exactly to the video
and file. for example ~/video/FeaturedVideo/54321_001video.mp4. where 54321 is a system made number assigned to the video. Then I read I have to assign the iframe to a literal control in order for the video to play. same thing for a video control. Reminder,
all of these thing are done in a FormView, not GridView control. any help or solid example would be appreciated.
Feb 06, 2018 08:48 AM|Eric Du|LINK
According to your description, as far as i know, you want to use iframe to load video, but this iframe need a URL to load video, but this URL is made up of label and literal's value, so you want to bind these value to URL. If my understanding is right,
please check the following code:
Note: iframe is a html tag, if you want to use it in code behind, need add runat="server" inside tag.
if my understanding is not, please correct me!
Feb 07, 2018 04:39 PM|wmoncure|LINK
Thank you for your response Eric.. I believe you know what im looking for . do you have an example for the front end code and the backend code. Im new to VB and the don't know how to code this. for now lets just say its iframe I choose. and keeping in mind
its in Formview. My upload works very well. Thanks for your time.
Feb 14, 2018 09:20 AM|Eric Du|LINK
According to your description and needs, I think you could check this tutorial about how to achieve it, although this tutorial retrieving image with file path, but the result is the same as video.
Retrieve images using a file path stored in database in ASP.Net:
Feb 14, 2018 03:18 PM|wmoncure|LINK
I will try this out. and let you know. Thank you very much.