Alert box doesn't appear



Hi,

Why don't i see the Alert box? The page is redirected without showing it. I
also tried with parameter 'False' and 'True'.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim a As Integer
a = 5
If a = 5 Then
Dim jv As String
jv = "<script language='javascript'>" _
& " alert(this is ok);" _
& "</script>"
Response.Write(jv)
Response.Redirect(next.aspx")
'Response.Redirect(next.aspx", False)
'Response.Redirect(next.aspx", True)
End If
End Sub

Thanks
Jan


.



Relevant Pages

  • executing stored procs
    ... Dim oDataComponent As New ... Protected Sub ddlPlurality_SelectedIndexChanged(ByVal sender As ... lblPlurality.Text = "Verify Plurality" ...
    (microsoft.public.dotnet.languages.vb)
  • Re: What if the Query String is empty?
    ... Protected Sub Page_Load(ByVal sender As Object, ... Dim intProductID As Integer = Trim) ... Dim intProductID As Integer = Trim) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DropDownList1 has a SelectedValue which is invalid
    ... Dim HF As HiddenField = GridView1.FindControl ... Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dynamicaly AddHandler from Database
    ... What's the meaning of the brackets on the delegate declaration??? ... Dim btn As New ImageButton ... Protected Sub Novo(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Repeater and Checkboxs
    ... Dim myCheckBox As CheckBox = ... Dim checkBoxValuesAs Boolean ... Protected Sub Page_Load(ByVal sender As Object, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)

Loading