Ask a Question related to ASP Components, Design and Development.
-
vals #1
Problem with the component created in VB for ASP
Hello friends!
I just created a component in VB which when a user enters username and
password when clicked will validate and redirect him to a page.
I am getting an error: This is my asp page "Object variable or with
block variable not set"
<%
dim obj
set obj=server.createObject("tproject.tclass")
obj.GetResponse()
%>
and below is my class file of the dll
Public Conn As clsDB
Public objContext As ObjectContext
Public objResponse As response
Public objRequest As request
Public Sub authuser()
Set objContext = GetObjectContext()
Set objResponse = objContext("Response")
Set objRequest = objContext("Request")
Dim loginrs As New ADODB.Recordset
sql = "select * from B_LMT where user_name='" &
objRequest("txtusername") & "' and user_pw='" & objRequest("txtpwd") &
"'"
Set loginrs = Conn.DBQuery(sql)
If Not loginrs.EOF Then
'If Startcomp(objRequest("txtusername"), "U_NAME") And
Startcomp(objRequest("txtpwd"), "U_PWD") Then
objResponse.Redirect "index.asp"
End If
End Sub
vals Guest
-
Problem using AddHandler for dynamically created WebControls
I am using the AddHandler statement to add a CheckedChanged event handler to a series of RadioButtons that I create in a loop. However, the handler... -
Dynamically created control in Datagrid problem
I created a datagrid with 4 bound columns and 1 template column. I am using the ITEMDATABOUND event to add a control to the template column, if... -
Updating to OS 10.2.8 created an AI 10.0.3 problem.
I just upgraded my Mac G4 (AGP Graphics) to OS 10.2.8 and I have a problem with AI 10.0.2. Everytime I start it up, I get a dialog box that states "... -
Problem with Eventhandlers dynamicly created MobileControls
Hellow, I have this peace of code from an ASP.NET page for a Mobile device, but i have a small problem. In this first SUB I dynmamicly create a... -
problem with name created when control is rendered.
Hello, I am creating a html server control that is in a datalist. I need to access this controls value on the client via javascript but the name... -
Egbert Nierop \(MVP for IIS\) #2
Re: Problem with the component created in VB for ASP
"vals" <vallury@vallury.com> wrote in message
news:4f02d8b5.0404190329.4e72c923@posting.google.c om...> Hello friends!
>
> I just created a component in VB which when a user enters username and
> password when clicked will validate and redirect him to a page.
>
> I am getting an error: This is my asp page "Object variable or with
> block variable not set"
does your GetObjectContext()
run within COM+ context? ie, did your register your VB class in the COM+
console?
--
compatible web farm Session replacement for Asp and Asp.Net
[url]http://www.nieropwebconsult.nl/asp_session_manager.htm[/url]
Egbert Nierop \(MVP for IIS\) Guest



Reply With Quote

