Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How pass parameter of <object> tag from server control ?</object> [modified]

How pass parameter of <object> tag from server control ?</object> [modified]

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    piyush_patel1111
    wrote on last edited by
    #1

    I have used tag as below. Which is written in .aspx page I want to pass src parameter of object when i am clicking on Button (a server control) Means I want to play another media file e.g. abhijit2.aspx Then How i can pass this source file abhijit2.mpeg to src parameter or object tag. How i achieve this ? Some one help me... Thanks in advance. modified on Sunday, October 12, 2008 8:00 AM

    A S 2 Replies Last reply
    0
    • P piyush_patel1111

      I have used tag as below. Which is written in .aspx page I want to pass src parameter of object when i am clicking on Button (a server control) Means I want to play another media file e.g. abhijit2.aspx Then How i can pass this source file abhijit2.mpeg to src parameter or object tag. How i achieve this ? Some one help me... Thanks in advance. modified on Sunday, October 12, 2008 8:00 AM

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      piyush_patel1111 wrote:

      I want to pass src parameter of object when i am clicking on Button

      Let me clear one think, you want to give the source name by clicking a server side button? please confirm !!!

      cheers, Abhijit

      P 1 Reply Last reply
      0
      • P piyush_patel1111

        I have used tag as below. Which is written in .aspx page I want to pass src parameter of object when i am clicking on Button (a server control) Means I want to play another media file e.g. abhijit2.aspx Then How i can pass this source file abhijit2.mpeg to src parameter or object tag. How i achieve this ? Some one help me... Thanks in advance. modified on Sunday, October 12, 2008 8:00 AM

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        piyush_patel1111 wrote:

        Thanks in advance.

        Just remove one otherwise it will show an error.

        SSK. Anyone who says sunshine brings happiness has never danced in the rain.

        1 Reply Last reply
        0
        • A Abhijit Jana

          piyush_patel1111 wrote:

          I want to pass src parameter of object when i am clicking on Button

          Let me clear one think, you want to give the source name by clicking a server side button? please confirm !!!

          cheers, Abhijit

          P Offline
          P Offline
          piyush_patel1111
          wrote on last edited by
          #4

          Yes, I want to pass the source name which file i want to play. My Actual code is as below. This code is for .aspx file I want to play another song Abhijit2.mpeg when i click on button. Then How i can pass these value to src parameter of object tag. modified on Sunday, October 12, 2008 7:52 AM

          A 1 Reply Last reply
          0
          • P piyush_patel1111

            Yes, I want to pass the source name which file i want to play. My Actual code is as below. This code is for .aspx file I want to play another song Abhijit2.mpeg when i click on button. Then How i can pass these value to src parameter of object tag. modified on Sunday, October 12, 2008 7:52 AM

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            i have used similar thing for Flash Object. That i have load some flash object dynamicaly from server side . adn you have to do it using similar way

            <object  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="265" height="150">
                             <param name="movie" value="<%=hdnFld.Value%>"  />
                             <param name="quality" value="high" />
                             <param name="bgcolor" value="none" />
                             <param name="wmode" value="transparent" />
                             <embed src= "<%=hdnFld.Value%>" quality="high" wmode="transparent" bgcolor="none" width="265" height="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
                           </object>
            

            check the Bold Section. hdnFld is a asp.net server side hiden filed control. Now in server side you just chage the hidenfiled value. Now its smoot....for you .. God luck .!!! <blockquote class="FQ"><div class="FQA">piyush_patel1111 wrote:</div>abhijit.mpeg</blockquote> :-D :-D :-D

            cheers, Abhijit

            P 1 Reply Last reply
            0
            • A Abhijit Jana

              i have used similar thing for Flash Object. That i have load some flash object dynamicaly from server side . adn you have to do it using similar way

              <object  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="265" height="150">
                               <param name="movie" value="<%=hdnFld.Value%>"  />
                               <param name="quality" value="high" />
                               <param name="bgcolor" value="none" />
                               <param name="wmode" value="transparent" />
                               <embed src= "<%=hdnFld.Value%>" quality="high" wmode="transparent" bgcolor="none" width="265" height="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
                             </object>
              

              check the Bold Section. hdnFld is a asp.net server side hiden filed control. Now in server side you just chage the hidenfiled value. Now its smoot....for you .. God luck .!!! <blockquote class="FQ"><div class="FQA">piyush_patel1111 wrote:</div>abhijit.mpeg</blockquote> :-D :-D :-D

              cheers, Abhijit

              P Offline
              P Offline
              piyush_patel1111
              wrote on last edited by
              #6

              Thanks, I will try this suggetion.

              A 1 Reply Last reply
              0
              • P piyush_patel1111

                Thanks, I will try this suggetion.

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                Let me know if done :)

                cheers, Abhijit

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups