473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

smaller problem, Response.write funnys

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
Nov 18 '05 #1
3 1150
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
ja******@online.microsoft.com

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

--------------------
From: Fr************@yahoo.com (Fraggle)
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: smaller problem, Response.write funnys
Date: 24 Nov 2003 09:12:19 -0800
Organization: http://groups.google.com
Lines: 29
Message-ID: <ce**************************@posting.google.com >
NNTP-Posting-Host: 128.240.229.66
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1069693939 32734 127.0.0.1 (24 Nov 2003 17:12:19 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Mon, 24 Nov 2003 17:12:19 +0000 (UTC)
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!newsfeed00.su
l.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!postnews1.
google.com!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:192410
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

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


Nov 18 '05 #2
I wrote

lstitem.text
listitem.text


blinkin missing i ! who chose these variable names!

/me makes noobi programing error no 25

fragg
Nov 18 '05 #3
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
ja******@online.microsoft.com

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

--------------------
From: Fr************@yahoo.com (Fraggle)
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: Re: smaller problem, Response.write funnys
Date: 25 Nov 2003 07:33:25 -0800
Organization: http://groups.google.com
Lines: 11
Message-ID: <ce**************************@posting.google.com >
References: <ce**************************@posting.google.com >
NNTP-Posting-Host: 128.240.229.65
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1069774405 26311 127.0.0.1 (25 Nov 2003 15:33:25 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Tue, 25 Nov 2003 15:33:25 +0000 (UTC)
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!news-out.cwix
.com!newsfeed.cwix.com!news.maxwell.syr.edu!postne ws1.google.com!not-for-mai
lXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:192642
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I wrote

lstitem.text
listitem.text


blinkin missing i ! who chose these variable names!

/me makes noobi programing error no 25

fragg


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: holgeradelmann | last post by:
Can anyone help please: I found a nice article on the web how to write my dynamice information into an RSS-XML. But I cannot get the code to work. The problem is so simple but weird....
0
by: holgeradelmann | last post by:
Evertjan, this is a real problem at least to me. Is this the way you communicate in the Netherlands ? Holger, Deutschland "Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
3
by: wk6pack | last post by:
Hi, I have an asp page that I would like to do paging. The problem I'm running into is that the same page that prints to the output is also recieving data from the previous page for query...
2
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this...
3
by: Miguel Orrego | last post by:
Hi, Can somebody tell me why when I run this code i get this result? <% If Available < Requested then Response.Write "Available = "&Available&"<BR>" Response.Write "Requested = "&Requested
3
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like...
1
by: Andreas | last post by:
Hi: I am writing an ASP webpage that is supposed to export data from a DataGrid to Excel. I have a link Button on the page that is supposed to Redirect to the page that load the data. Now on...
1
by: bidllc | last post by:
I'm working on a minor bug from an open source bug tracking system (bugtracket.net). It's a great app, but I don't want to bother the creator any more than I have to, so I thought I'd pose the...
2
by: Just4U | last post by:
Hello, I take an old post because, nobody seem to answer my problem. Config: Windows 2003 x64 (US) + sp2 Regional settings : French (for all & default users) Basically I have the following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.