Class file
Hi
How can i use RegisterStartupScript in my class file?
Imports System
Imports System.Web.UI.Page
Imports System.Configuration
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web
Imports System.Text
Imports System.Web.UI
Namespace LGFG_email
Public Class LGFGNews
Public Sub OpenPopUp()
Dim sb As StringBuilder
sb = New StringBuilder
sb.Append("<script>")
sb.Append("window.open ('/default.aspx','mywindow','location=0,status=0,scro llbars=0,width=450,height=250')")
'sb.Append("window.open ('http://www.bounty.com','mywindow','location=0,status=0,sc rollbars=0,width=450,height=250')")
sb.Append("</script>")
RegisterStartupScript("b", sb.ToString())
End Sub
End Class
End Namespace
|