Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ClientScript from the server side
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Using ClientScript from the server side
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01320626
Message ID:
01320626
Views:
59
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
Reply
Map
View

Click here to load this message in the networking platform