Welcome Guest Search | Active Topics | Sign In | Register

Server Side Alert - Not Working Options
Brandon
Posted: Friday, April 18, 2008 2:25:21 AM
Rank: Member
Groups: Member

Joined: 10/11/2007
Posts: 12
I have been using the following vb code to show an alert from the server side

Code: Visual Basic.NET
Public Shared Sub NotifyUser(ByVal Message As String)
        System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE=""JavaScript"">" & vbCrLf)
        System.Web.HttpContext.Current.Response.Write("alert(""" & Message & """)" & vbCrLf)
        System.Web.HttpContext.Current.Response.Write("</SCRIPT>")
    End Sub


Since I've introduced a callbackpanel to my forms the code does not work.
Do you have a work-around for returning server messages using the callbackPanel

Thanks in advance
eo_support
Posted: Friday, April 18, 2008 6:12:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.