You must Sign In to post a response.
  • Category: Silverlight

    How to get system ip address in silverlight

    hi guys,
    how to get system ip address in silverlight?
    Is there any way to get the IP address of a system in Silverlight?

    i tried in Normal Asp.net application,thats working fine but Silverlight i cant get ip address.give some ideas
  • #583999
    Hi,

    I hope this code work for you It worked for me.



    < SCRIPT LANGUAGE="JavaScript" RC="hostname/scriptname">< /SCRIPT>.


    Function loadContent(file){
    var head = document.getElementsByTagName('head').item(0)
    var scriptTag = document.getElementById('loadScript');
    if(scriptTag) head.removeChild(scriptTag);
    script = document.createElement('script');
    script.src = file;
    script.type = 'text/javascript';
    script.id = 'loadScript';
    head.appendChild(script)
    }

    param name="initParams" value="myVariable=theIP" />

    e.InitParams["myVariable"]



    Regards,
    Angad Yadav.

  • #584005
    hai Angad Yadav

    this javascript d'nt work,give some idea


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.