Re: PLEASE HELP.... ALERT PostBack
From: Alvin Bruney [MVP] (vapor)
Date: 04/22/04
- Next message: RajSurisetti: "Re: Custom control help"
- Previous message: Alvin Bruney [MVP]: "Re: HTML mode in IDE: newline after closing tag?"
- In reply to: walterd: "PLEASE HELP.... ALERT PostBack"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Apr 2004 17:24:42 -0500
just go ahead and pull your hair out...it aint worth it
...now that you are bald, let's take a look. if you want the message box to
appear ontop of the page, either use registerstartupscript or replace the
response.write portion to Page.Controls.Add(new LiteralControl("<script...
use attributes to post on condition. modify this code to post
Button1.Attributes.Add("onClick", "event.returnValue=confirm('Are you sure
you wish to delete the selected rate
deck?');document.body.style.cursor='wait';document.all.WaitState.style.display
= '';");
-- Regards, Alvin Bruney [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx] Got tidbits? Get it here... http://tinyurl.com/27cok "walterd" <walterd@ananzi.co.za> wrote in message news:e92lEvJKEHA.3924@tk2msftngp13.phx.gbl... > Hi All > > Can someone please help me before I pull out all my hair? All my pages > inherit from PageBase class and I have the following code: > > Public Shared Function CreateMessageAlert(ByRef aspxPage As > System.Web.UI.Page, ByVal strMessage As String, ByVal strKey As String) > > Dim strScript As String = "<script language=JavaScript>alert('" & > strMessage > & "')</script>" > > If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then > > aspxPage.RegisterStartupScript(strKey, strScript) > > End If > > End Function > > My problems is: > > 1. When I call the following function from an, say exception or > notification, the MessageBox appears on a BLANK Page, after clicking OK, > the > page where the MessageBox was invoked from is displayed. It never displays > on the current page :({ > > 2. If I want to display a message and upon clicking OK, redirect the page > to > another, the MessageBox never appears. Page redirect will happen and no > message will appear :(( > > PLEASE HELP!!!! > > > >
- Next message: RajSurisetti: "Re: Custom control help"
- Previous message: Alvin Bruney [MVP]: "Re: HTML mode in IDE: newline after closing tag?"
- In reply to: walterd: "PLEASE HELP.... ALERT PostBack"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|