This is a migrated thread and some comments may be shown as answers.

radwindow and script manager

2 Answers 129 Views
Window
This is a migrated thread and some comments may be shown as answers.
Abdul Kadar
Top achievements
Rank 1
Abdul Kadar asked on 21 Jun 2009, 09:42 AM
Dear Telerik Team,

I placed a script manager on the master page.
In the content page, I used the radwindow manager.
On clicking the Save button, i need to call the alert window for displaying the message," Data Saved successfully.."
the code doesn't work on the content page .Please help me regarding this urgently.Below is the code I have used.
**** I used vb with code-behind


Protected

 

Sub LnkSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkSave.Click

 

 


Dim
MyQuery As String

 

 

Dim MyCommand As sqlcommand

 

Dim scriptstring As String = "radalert('Saved Successfully', 230,110);"

 

 

 

//------------------My insert Query------------------//

 

 

  ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "radalert", scriptstring, True)
End
Sub

 



Regards,
Abdul kadar


2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Jun 2009, 06:59 AM
Hello Abdul Kadar,

Try the following code for showing calling radalert from code behind.

VB:
 
Dim radalertscript As String = "function f(){radalert('Saved Successfully!', 230, 110); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);" 
ScriptManager.RegisterStartupScript(MeMe.[GetType](), "radalert", radalertscript, True

-Shinu
0
Georgi Tunev
Telerik team
answered on 22 Jun 2009, 01:25 PM
Hi Abdul,

I would also recommend checking this blog post - I believe it will be of help.

Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Abdul Kadar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or