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

radalert reload with parameters

3 Answers 160 Views
Window
This is a migrated thread and some comments may be shown as answers.
george
Top achievements
Rank 1
george asked on 12 Nov 2008, 06:00 PM
Hello i'M using windows component in my proyect, but i dont know how can I use the radalert and reload the page, but when I realad page I need put querystring. The querystring is Able to use parameters.
For example:

reload:  default.aspx?id=1

I need use this because I update data and I need reload all data.

Thanks.

I found this javascript code:
href="javascript:void(0);" onclick="$find('{0}').close(); window.location.href = 'default.aspx';"

and from VB:
ScriptManager.RegisterStartupScript(MeMe.GetType(), "alert""<script type='text/javascript'>Sys.Application.add_load(function(){radalert('Message');})</script>"False

I need send parameters.


3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Nov 2008, 02:51 PM
Hello George,

I am not quite sure what exactly you want to achieve, could you please provide some more detailed information about your scenario?



All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
george
Top achievements
Rank 1
answered on 13 Nov 2008, 07:18 PM
With this code I reload the page:
href="javascript:void(0);" onclick="$find('{0}').close(); window.location.href = 'default.aspx';">  

but I need reload the page with parameters:

for example:
default.aspx=id"12".

How can I send parameteres to the function to reload the page??


0
george
Top achievements
Rank 1
answered on 13 Nov 2008, 09:32 PM
I found the solution:
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
        <AlertTemplate> 
            <div class="windowpopup radalert"
                <div class="dialogtext"
                    {1} 
                </div> 
                <div> 
                    <id="Cancelar" class="radwindowbutton" href="javascript:void(0);" onclick="$find('{0}').close(); window.location.href = 'wf_concept.aspx';"
                        <span class="outerspan"><span class="innerspan">##LOC[OK]##</span> </span></a
                </div> 
            </div> 
        </AlertTemplate> 
    </telerik:RadWindowManager> 


Dim strScript As String 
        Dim intID As String 
        intID = "2" 
        strScript = "<script type='text/javascript'>document.getElementById(""Cancel"").onclick = ""$find('{0}').close(); window.location.href = 'wf_concept.aspx?idmaster=" + intID + "';""</script>" 
        ScriptManager.RegisterStartupScript(MeMe.GetType(), "change onclick", strScript, False
        ScriptManager.RegisterStartupScript(MeMe.GetType(), "alert""<script type='text/javascript'>Sys.Application.add_load(function(){radalert('Dato insertado con exito');})</script>"False
 

Now you can show a alert message and reload the page with parameters.

Tags
Window
Asked by
george
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
george
Top achievements
Rank 1
Share this question
or