473,800 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1186
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.publi c.dotnet.framew ork.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**********@go ogle.com
NNTP-Posting-Date: Mon, 24 Nov 2003 17:12:19 +0000 (UTC)
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!newsfeed00.s u
l.t-online.de!newsf eed01.sul.t-online.de!t-online.de!fu-berlin.de!postn ews1.
google.com!not-for-mailXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1924 10
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.tex t


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.publi c.dotnet.framew ork.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**********@go ogle.com
NNTP-Posting-Date: Tue, 25 Nov 2003 15:33:25 +0000 (UTC)
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!news-out.cwix
.com!newsfeed.c wix.com!news.ma xwell.syr.edu!p ostnews1.google .com!not-for-mai
lXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1926 42
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

I wrote

lstitem.tex t
listitem.te xt


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
2144
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. Reduced, the problem is that 'pass.asp' returns the respective XML in the browser (IE 6):
0
1384
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
3536
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 parameters for the sql string. When I click on the next page, it queries itself and loses all the query parameter information from the parameter page and brings back all the records.
2
4028
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 page working and it's working just fine, no problems with this page. However I then would like this data e-mailed using jmail (my host insists on this method) and that is the function of the sendEMail2.asp page. This is failing and only giving...
3
1306
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
2828
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 Session("UserType") = "Sales". Then based on the Session("UserType") I use response.redirect to take the user to a specific page. The logic and response.redirect works fine on a Win2k server but when I move the page to a server running Win2003 the...
1
1147
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 smaller datasets this works fine, but as the data count gets larger, a white page is displayed. Smartnavoigation is off. Page and WebConfig, and there is no code
1
2096
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 question here. The problem is with an email that gets sent from the system. In a nutshell, it's an HTML format email that is choking on the string that is returned form this function that is added to the email's body:
2
7791
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 code on my server
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10504
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10251
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.