•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 401,485 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,217 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1396 | Replies: 24
![]() |
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,218
Reputation:
Rep Power: 10
Solved Threads: 270
- Retrive name and video location from database
- Prefix video file location string with rest of the path
- Pass this new generated string path to media player
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,218
Reputation:
Rep Power: 10
Solved Threads: 270
Here is nice tutorial how to do it in ASP.NET with C# or this one in regards of Silverlight
However with Silverlight you getting in trouble as not everyone has it, I'm one of them as I believe that is useless, just attempt to bit Adobe and the Flash (but that is just me)
However with Silverlight you getting in trouble as not everyone has it, I'm one of them as I believe that is useless, just attempt to bit Adobe and the Flash (but that is just me)
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
•
•
Join Date: May 2008
Posts: 33
Reputation:
Rep Power: 1
Solved Threads: 1
Firstly upload the video file to a folder in the server by :
where
And save the name of the File in database.
Then u can view the video by :
asp Syntax (Toggle Plain Text)
if (flUpload.PostedFile.ContentLength > 0) { String strPath = Server.MapPath("../") + "UploadedFiles/Folder"; flUpload.PostedFile.SaveAs(strPath + "/" + this.flUploadBrief.FileName.ToString()); }
where
<asp:FileUpload runat="server" ID="flUploadBrief" /> is the FileUpload Control. And save the name of the File in database.
Then u can view the video by :
<embed src="video.avi" /> Last edited by peter_budo : May 15th, 2008 at 4:56 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: May 2008
Posts: 33
Reputation:
Rep Power: 1
Solved Threads: 1
This is the Object tag.
You have to fill the value from server side code.
<OBJECT id=mPlayer height=250 width=320 classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 VIEWASTEXT>
<PARAM NAME="filename" VALUE="moviepreview/<%Response.Write(Request.QueryString.Get("id"));%>">You have to fill the value from server side code.
•
•
Join Date: Dec 2007
Posts: 84
Reputation:
Rep Power: 1
Solved Threads: 4
<param name='fileName' value="../videos/<%#(Request.QueryString["VID"])%>">
.I have 2 pages X and Y. I click the gridview hyperlink in X page it goes to Y page.In X page datanavigateurl field are specified.query string is empty for all other link.thats the problem.
Last edited by nandhinijp : May 21st, 2008 at 3:18 am.
•
•
Join Date: Dec 2007
Posts: 84
Reputation:
Rep Power: 1
Solved Threads: 4
I have one more problem regarding this.
I have 2 pages X and Y. I click the gridview hyperlink in X page it goes to Y page.In X page datanavigateurl field are specified.I want to pass only id of the video.In that Y page i want to do some server side code in source code(html) .coz there is some conditions to retrieve videoname.So i want to process and result will be assign to one variable that variable will be assign to media player.Help me!
I have 2 pages X and Y. I click the gridview hyperlink in X page it goes to Y page.In X page datanavigateurl field are specified.I want to pass only id of the video.In that Y page i want to do some server side code in source code(html) .coz there is some conditions to retrieve videoname.So i want to process and result will be assign to one variable that variable will be assign to media player.Help me!
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the ASP.NET Forum
- Previous Thread: how to Read a page in aspx page
- Next Thread: Setting a default value in a formview



Linear Mode