Hi,
I wanted to open a radwindow after my button is clicked based on certain condition from server side.
For that I have written
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
'Me.ClientScript.RegisterStartupScript(Me.GetType, "startup", "radopen('google.com');", True)
Me.ClientScript.RegisterClientScriptBlock(Me.GetType, "startup", "radopen('google.com');", True)
End Sub
It is throwing me a javascript error undefined !
Neither RegisterStartupScript nor RegisterClientScriptBlock is working !
after that I have opened my radwindow after 1000 milisecond and it is working fine
means I have written
<script type="text/javascript">
function showMatrixWindow()
{
radopen('http://google.com');
}
</script>
on my aspx page and written
Me.ClientScript.RegisterStartupScript(Me.GetType, "startup", "setTimeout(showMatrixWindow,1000);"
, True)
Things working fine now but why should I wait my client for even 1second.
I have even tried to bind radopen function when my document is in ready state but there it is also throwing error !
Help me out !
Thanks
Divyesh Chapaneri
I wanted to open a radwindow after my button is clicked based on certain condition from server side.
For that I have written
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
'Me.ClientScript.RegisterStartupScript(Me.GetType, "startup", "radopen('google.com');", True)
Me.ClientScript.RegisterClientScriptBlock(Me.GetType, "startup", "radopen('google.com');", True)
End Sub
It is throwing me a javascript error undefined !
Neither RegisterStartupScript nor RegisterClientScriptBlock is working !
after that I have opened my radwindow after 1000 milisecond and it is working fine
means I have written
<script type="text/javascript">
function showMatrixWindow()
{
radopen('http://google.com');
}
</script>
on my aspx page and written
Me.ClientScript.RegisterStartupScript(Me.GetType, "startup", "setTimeout(showMatrixWindow,1000);"
, True)
Things working fine now but why should I wait my client for even 1second.
I have even tried to bind radopen function when my document is in ready state but there it is also throwing error !
Help me out !
Thanks
Divyesh Chapaneri