smaller problem, Response.write funnys

  • Thread starter Thread starter Fraggle
  • Start date Start date
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
 
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.

--------------------
 
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.

--------------------
 
Back
Top