Re: Alert box doesn't appear

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thnaks Mark, i knew that.

What i don't know is why it doesn't work with response.redirect? Is there a
specific reason for that?
As i said, it works also with Server.transfer ...Why?
Thanks


"Mark Rae" <mark@xxxxxxxxxxxxxxxxx> schreef in bericht
news:uZ7Mn3VYHHA.3256@xxxxxxxxxxxxxxxxxxxxxxx
"Jan" <cbcbc@xcvx> wrote in message
news:uBMbDkQYHHA.4396@xxxxxxxxxxxxxxxxxxxxxxx

Why not with the Response.redirect?

Apologies - I didn't read your post properly...

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');window.location='next.aspx';" _
& "</script>"
Response.Write(jv)
End If
End Sub




.



Relevant Pages

  • Re: selectedvalue postback problem
    ... Protected Sub Page_Load ... return the good value and the ddl items are stil present. ... have to recreate the dropdown list first, and they it'll take care of ... Dim row As DataRow = CType ...
    (microsoft.public.dotnet.framework.aspnet)
  • executing stored procs
    ... Dim oDataComponent As New ... Protected Sub ddlPlurality_SelectedIndexChanged(ByVal sender As ... lblPlurality.Text = "Verify Plurality" ...
    (microsoft.public.dotnet.languages.vb)
  • Re: **Pop-up message prompting for user information**
    ... Only reason I want this is because our userID's are weird numbers and people ... "Susan" wrote: ... Dim sUser As String ...
    (microsoft.public.excel.programming)
  • Re: GridView disapears after entering edit mode.
    ... Protected Sub Page_Load ... Dim mCommand As SqlCommand ... Dim cnSQL as SqlConnection ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: GridView disapears after entering edit mode.
    ... Protected Sub Page_Load ... Dim mCommand As SqlCommand ... Dim cnSQL as SqlConnection ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)