USER CONTROL PROBLEM

S

Savas Ates

I have a user control codebehind Function

Imports System.Web

Function CreateXml(ByVal Sitename)

Response.write ("aa")

End Function



IN an aspx codebehind application

Dim EjoyaXml As New Functions

EjoyaXml.Siteadi = "Ejoya"

Call EjoyaXml.CreateXml(EjoyaXml.Siteadi)



It returns



Object reference not set to an instance of an object.
Response.Write("aa") line
I want to create a function page and i want to load it in some of my aspx
codebehind applications which can include some http implemantations
(Filesystemobject,response.redirect etc.)

I got an error in spite of using
Imports System.Web

What can i do ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top