|
Dear All,
I am working in an accounts project using Rainbow portal version RC 4 in Asp.Net 1.1 C#.
Every thing was working fine till now but now I want to run a java script function in DesktopDefault.aspx page or in any page inherited by Rainbow.UI.Page
e.g. for Main.aspx
public class Main : Rainbow.UI.Page
java script example may be as
[ Page.RegisterStartupScript("OnLoad","<script language=javascript>" +" alert('hello'); " +"</script>");]
It shows following error.
Object Expected
In other .aspx inherited from System.Web.UI.Page pages same java script works fine.
I have searched a-lot on net. and tried running java scripts function to run in many ways like in Html mode
<script language="javascript"> function shwAlert() {
alert('This is what an alert message looks like.');
}
</script>
and then calling shwAlert()"
< INPUT type="button" onclick= "BLOCKED SCRIPTshwAlert()" value="check me" id="btnCheck">
function shwAlert() {
alert('This is what an alert message looks like.');
}
May be any one can give me any solution or tip.
I am really in need of it.
Thanks in advance.
|