smaller problem, Response.write funnys

F

Fraggle

within my reading out of data from a repeater sub ...

If i put

response.write(lstitem.text)


it outputs the text from the listitem that is being looked at

if i put


dim str as string
str= listitem.text


I get a compiler error

BC30469: Reference to a non-shared member requires an object reference.

at this line

str = listitem.text

WHY!!?!

thanks!

fragg
 
J

Jim Cheshire [MSFT]

Fragg,

Debug that and look to see what listitem is by entering "? listitem"
(without quotes) in the command window. Post back.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
 
J

Jim Cheshire [MSFT]

Fragg,

VS.NET will underline such errors for you if you're using VB.NET. Glad you
found it.

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
(e-mail address removed)

This post is provided as-is with no warranties and confers no rights.

--------------------
 

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

Top