Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Error while declaring codebehind page in aspx


Message #1 by Avnish Soni <Avnish.Soni@p...> on Thu, 25 Jul 2002 11:37:49 -0400
Hi All,

I am having probs while spcifying codebind in my aspx page.

It's giving error stated "Could not load load type 
=3D"pgLogin1.pgLogin".

Do i need to put this codebehind file at some specific folder?

Codesnippet of aspx page
-----------------------
<%@ Page Aspcompat=3D"true" Language=3D"vb" AutoEventWireup=3D"false"
Codebehind=3D"pgLogin1.aspx.vb" Inherits=3D"pgLogin1.pgLogin" %>

Codesnippent of aspx.vb page
----------------------------

Imports System
Imports System.Data
Imports System.Data.SqlClient



Namespace pgLogin1
    Public Class pgLogin
      
    public sub OpenDB()

        dim strDBConnect as string
        Dim myConnection as SqlConnection
       
        'Database connection string
        
strDBConnect=3D"server=3DVCC-DEV-001\VCC;uid=3Dsa;pwd=3D;database=3Dvcc"


        'Opening database connection
        myConnection =3D New SqlConnection(strDBConnect)
        myConnection.Open()
       
    end sub

    End Class

End Namespace

Thanks

avnish


http://www.patni.com 
World-Wide Partnerships. World-Class Solutions.
=AD__________________________________________________________________   

 
The information transmitted is intended only for the person or entity 
to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or 

taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited.If 
you
received this in error, please contact the sender and delete the 
material
from any computer.
=AD__________________________________________________________________

  Return to Index