View Single Post
Old 12-11-2005, 08:19 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,720
redhead is on a distinguished road
Code:
Dim Message as string = "Alert Box from Code Behind." 
Dim strScript As String = "<script language=JavaScript>" 
strScript += "alert(""" & Message & """);" 
strScript += "</script>" 
If (Not Page.IsStartupScriptRegistered("clientScript")) Then 
    Page.RegisterStartupScript("clientScript", strScript) 
End If
Else take a look at this example
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote