Wrox Programmer Forums
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2008, 08:17 AM
Authorized User
 
Join Date: Jan 2008
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old February 4th, 2008, 11:30 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Is what you have posted not working?
Have you looked at any of the documentation for this method?

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Class within ASPX file kingroon ASP.NET 2.0 Basics 3 July 9th, 2008 07:43 AM
Class File Asp_Developer Visual Basic 2005 Basics 1 April 30th, 2008 10:56 PM
class file thas123 ASP.NET 2.0 Basics 0 December 13th, 2006 03:45 AM
Regarding Class Library (.dll) from class file manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 3rd, 2006 07:32 AM
class file server sivapmk J2EE 3 December 14th, 2003 08:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.