Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > USER CONTROL PROBLEM

Thread Tools


Savas Ates
Posts: n/a
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 ?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Control to Control Other User Control Jonathan Wood ASP .Net 4 02-02-2010 03:41 PM
persisting changes to a control outside a user control from the user control? Mad Scientist Jr ASP .Net 0 03-22-2006 08:02 AM
Databinding in a user control that contains another user control ASP .Net 0 01-07-2005 04:55 PM
Event not firing for user control inside user control vatech1993 ASP .Net 4 12-11-2004 02:51 PM
Manipulating a User Control from another User Control Tom Rowton ASP .Net 2 08-01-2003 08:18 PM