Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ClientScript from the server side
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Using ClientScript from the server side
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01320626
Message ID:
01320626
Vues:
61
Hi everybody,

In the page I used as a prototype there is this code
string Script = string.Format("parent.DisplayMessage(\"{0}\");", Text);
            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "Mesage", Script, true);
This particular page is actually loaded into IFrame from the other page where the DisplayMessage JavaScript function is defined.

In my case I only use one page with the same DisplayMessage function. I put that function at the bottom of my page right before the end of the page:
</asp:MultiView>    
       
       <script type="text/javascript">    
    
    function DisplayMessage(Message)
    {   
	var dv = document.getElementById("spnStatFrame");
    	var Spn = document.getElementById("spnStat");         
        dv.style.display = "inline";        
        Spn.innerHTML = Message;
        setTimeout("dv.style.display = 'none'", 300000);
    }
</script>

    </form>
</body>
</html>
How should I adjust the above server side code to make it work?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform