I want to show a radconfirm dialog which will be written via RegisterClientScriptBlock or RegisterStartupScript.
I dont know what is wrong but I am facing some javascript error.
Regards,
Divyesh Chapaneri
3 Answers, 1 is accepted
0
Georgi Tunev
Telerik team
answered on 27 Aug 2008, 02:47 PM
Hi Divyesh,
Basically, outputting a JavaScript code from the codebehind is a general task that is not related to the RadWindow control - there are numerous resources on the Net that show how to do that. You can also check the following KB article which describes possible approaches for calling radalert (the logic when using radconfirm() is the same):
http://www.telerik.com/support/kb/article/b454K-gtd-b454T-cec-b454c-cec.aspx
All the best,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I am facing same problem in your given example. I have tried below code and its throwing javascript error when showing radalert !
I am using RadControls for ASPNET AJAX Q1 2008 (for your reference).
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim radalertscript As String = "<script language='javascript'> window.onload = function(){radalert('Welcome to Rad<b>window</b>!', 330, 210);}</script>"
Page.ClientScript.RegisterStartupScript(Me.[GetType](), "radalert", radalertscript)
End Sub