Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8163831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:09:03+00:00 2026-06-06T19:09:03+00:00

I am trying to play a video from video path that I have in

  • 0

I am trying to play a video from video path that I have in database. If I hardcode the value in the following method then I am able to play the video. But m not sure how to play it dynamically directly from the database.

    <object id="Object1" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
                               <param name="url" value="C:\Users\3embed\Documents\Visual Studio 2010\Projects\HeritageWeb\HeritageWeb\Videos\tum-ho.mp4" / >
                        <param name="http://" />
                        <param name="AutoStart" value="1" />
                        <param name="ShowControls" value="1" />
                        <param name="ShowStatusBar" value="1" />
                        <param name="ShowDisplay" value="1" />
                        <param name="stretchToFit" value="1" />
                        <embed autostart="0" filename="" height="379" 
                            pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" 
                            showcontrols="1" showdisplay="1" showstatusbar="1" 
                            src="C:\Users\3embed\Documents\Visual Studio 2010\Projects\HeritageWeb\HeritageWeb\Videos\tum-ho.mp4" type="application/x-mplayer2" width="424"></embed>

</embed>

How can we modify ” ” get values from database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:09:04+00:00Added an answer on June 6, 2026 at 7:09 pm

    Make these changes to your <embed> object add runat="server" to make it available to codebehind and give it an ID="Video". Now you can change its attributes as per need.

    <embed autostart="0" filename="" height="379" runat="server" ID="Video"
                                    pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" 
                                    showcontrols="1" showdisplay="1" showstatusbar="1" 
                                     type="application/x-mplayer2" width="424"></embed>
    

    Set the src in codebehind like this.

     Video.Attributes.Add("src","C:\Users\3embed\Documents\Visual Studio 2010\Projects\HeritageWeb\HeritageWeb\Videos\tum-ho.mp4");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to play video from youtube using this code but I get this
I'm trying to play a video and have a button that switches the video
I am trying to play video from streaming url. the code is as following
I'm working with PyQt and trying to get video from a webcam to play
So, I'm trying to get a video to play from an HTTP url. To
I am trying to play a video file using JMF but it gives me
I am trying to play a video when an image is clicked. I have
So I'm trying to play a video and the following code has worked for
I'm trying to play a youtube video on my Android app, but I can't
I am trying to play video files from iPhone media player in my iphone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.