Results 1 to 4 of 4

Thread: Object from C# to ASP.NET with ajax?

  1. #1
    Join Date
    Jun 2008
    Posts
    144

    Object from C# to ASP.NET with ajax?

    Hi,
    Here is my problem I have an object

    Code:
    <object id="Player"
    height="64"
    classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
    <param name="AutoStart" value="true" />
    <param name="uiMode" value="full" />
    </object>
    IS it possible to pass an URL to an object with a C# code to ASP.NEt application on AJAX?
    I dont want to use Jscript event.

  2. #2
    Join Date
    May 2008
    Posts
    115

    Re: Object from C# to ASP.NET with ajax?

    Can you please have a look at this link?
    http://www.wimpyplayer.com/
    Hope this helps you!

  3. #3
    Join Date
    Jun 2008
    Posts
    97

    Re: Object from C# to ASP.NET with ajax?

    Code:
    ScriptManager.RegisterStartupScript(this,
    this.GetType(),
    "player",
    "document.getElementById('Player').URL=' + url + "'",
    true);
    
    OR
    
    <object id="Player"
    height="64"
    classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
    <param name="AutoStart" value="true" />
    <param name="uiMode" value="full" />
    <param name="URL" value="<%= PlayerURL%>" />
    </object>
    Now to render the object tag at runtime you can also use literal control.

  4. #4
    Join Date
    Jun 2008
    Posts
    144

    Re: Object from C# to ASP.NET with ajax?

    Well I have an AJAX based webside & ScriptManager.RegisterStartupScript
    works synchronous. I have a GridView with many lines & buttons in the Grid Now I want to control this with a C# code.
    How can i do this? I dont want to add onclick event A javascript line is acceptable.

    Please help.

Similar Threads

  1. Replies: 6
    Last Post: 06-06-2011, 01:34 AM
  2. Replies: 3
    Last Post: 08-01-2011, 06:20 AM
  3. jQuery AJAX vs. Adobe AIR AJAX Class
    By Agaev in forum Windows Software
    Replies: 5
    Last Post: 06-07-2010, 01:59 PM
  4. Differents between object and static object
    By Sarfaraj Khan in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 01:11 PM
  5. Object reference not set to an instance of an object
    By KAIRU26 in forum Software Development
    Replies: 3
    Last Post: 05-09-2009, 08:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,220,914.79221 seconds with 16 queries