473,322 Members | 1,714 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,322 software developers and data experts.

Late night beginners question

I'm reviewing the 70-305 course and I'm trying to do the Chapter 5 lab.

I've created the Calls.aspx page and the dsCalls xsd. I've set the
DataSource of dlstcalls to 'dsCalls.Tables(“Calls”).DefaultView' as
instructed. (Page 296)

When I run the project and try to access the Calls page I get the error
message: BC30390: 'Chap5Lab.Calls.dsCalls' is not accessible in this context
because it is 'Private'.

What am I forgetting?
Nov 19 '05 #1
4 949
simply change its modifier at least protected. Becuase ASPX page should
inherit your code and must able to access datasource....

--
HTH

Thanks,
Yunus Emre ALPZEN
BSc, MCSD.NET

"B. Chernick" <BC*******@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
I'm reviewing the 70-305 course and I'm trying to do the Chapter 5 lab.

I've created the Calls.aspx page and the dsCalls xsd. I've set the
DataSource of dlstcalls to 'dsCalls.Tables("Calls").DefaultView' as
instructed. (Page 296)

When I run the project and try to access the Calls page I get the error
message: BC30390: 'Chap5Lab.Calls.dsCalls' is not accessible in this
context
because it is 'Private'.

What am I forgetting?

Nov 19 '05 #2
Excuse me, but what modifier are you refering to? I'm talking about a
problem accessing a a dataset, an XSD, not a web page. There is no modifier
that I can find.

"Yunus Emre ALPÖZEN [MCSD.NET]" wrote:
simply change its modifier at least protected. Becuase ASPX page should
inherit your code and must able to access datasource....

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET

"B. Chernick" <BC*******@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
I'm reviewing the 70-305 course and I'm trying to do the Chapter 5 lab.

I've created the Calls.aspx page and the dsCalls xsd. I've set the
DataSource of dlstcalls to 'dsCalls.Tables("Calls").DefaultView' as
instructed. (Page 296)

When I run the project and try to access the Calls page I get the error
message: BC30390: 'Chap5Lab.Calls.dsCalls' is not accessible in this
context
because it is 'Private'.

What am I forgetting?


Nov 19 '05 #3
how is dsCalls defined in your class?

try (or something similar)

protected Dataset dsCalls;

instead

"B. Chernick" <BC*******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
Excuse me, but what modifier are you refering to? I'm talking about a
problem accessing a a dataset, an XSD, not a web page. There is no modifier that I can find.

"Yunus Emre ALPZEN [MCSD.NET]" wrote:
simply change its modifier at least protected. Becuase ASPX page should
inherit your code and must able to access datasource....

--
HTH

Thanks,
Yunus Emre ALPZEN
BSc, MCSD.NET

"B. Chernick" <BC*******@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
I'm reviewing the 70-305 course and I'm trying to do the Chapter 5 lab.
I've created the Calls.aspx page and the dsCalls xsd. I've set the
DataSource of dlstcalls to 'dsCalls.Tables("Calls").DefaultView' as
instructed. (Page 296)

When I run the project and try to access the Calls page I get the error message: BC30390: 'Chap5Lab.Calls.dsCalls' is not accessible in this
context
because it is 'Private'.

What am I forgetting?


Nov 19 '05 #4
Ok, that's what I forgot. dsCalls is declared at the start of the class
Calls with 'Dim dsCalls as dsCalls'. (Come to think of it, that alone sounds
a little funny.) When I change Dim to Public or Protected, the example works
fine.

On the other hand, I am still not sure I understand the theory behind this.
If you have the time, could you elaborate a bit on this?

Thanks.

"Shaun Wilde" wrote:
how is dsCalls defined in your class?

try (or something similar)

protected Dataset dsCalls;

instead

"B. Chernick" <BC*******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
Excuse me, but what modifier are you refering to? I'm talking about a
problem accessing a a dataset, an XSD, not a web page. There is no

modifier
that I can find.

"Yunus Emre ALPÖZEN [MCSD.NET]" wrote:
simply change its modifier at least protected. Becuase ASPX page should
inherit your code and must able to access datasource....

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET

"B. Chernick" <BC*******@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
> I'm reviewing the 70-305 course and I'm trying to do the Chapter 5 lab. >
> I've created the Calls.aspx page and the dsCalls xsd. I've set the
> DataSource of dlstcalls to 'dsCalls.Tables("Calls").DefaultView' as
> instructed. (Page 296)
>
> When I run the project and try to access the Calls page I get the error > message: BC30390: 'Chap5Lab.Calls.dsCalls' is not accessible in this
> context
> because it is 'Private'.
>
> What am I forgetting?


Nov 19 '05 #5

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

Similar topics

5
by: Nick Stansbury | last post by:
Hi, Sorry for the obscure title but I'm afraid I can't think of a better way to describe what happened to one of my clerks last night. The guy was working late, made a series of changes (accross a...
1
by: JD Kronicz | last post by:
Hi .. I have an issue I have been beating my head against the wall on for some time. I am trying to use late binding for MS graph so that my end users don't have to worry about having the right...
13
by: Mike MacSween | last post by:
I'm doing this: strAccessPath = SysCmd(acSysCmdAccessDir) & "msaccess.exe" in a vb executable to do what it looks like. If I remove the reference to the access object library this seems to...
9
by: Zlatko Mati | last post by:
I was reading about late binding, but I'm not completely sure what is to be done in order to adjust code to late binding... For example, I'm not sure if this is correct: early binding: Dim ws...
4
by: Eggnog | last post by:
Hi, Is there a newsgroups for beginners questions? Cheers, Nawg
8
by: scorpion53061 | last post by:
I am sorry for this but I am not getting an answer elsewhere so I thought I would try here. It seems the safer way to go prior to deployment is to change my early binding to late binding to...
30
by: lgbjr | last post by:
hi All, I've decided to use Options Strict ON in one of my apps and now I'm trying to fix a late binding issue. I have 5 integer arrays: dim IA1(500), IA2(500), IA3(500), IA4(500), IA5(500) as...
6
by: Tim Roberts | last post by:
I've been doing COM a long time, but I've just come across a behavior with late binding that surprises me. VB and VBS are not my normal milieux, so I'm hoping someone can point me to a document...
13
by: Wayne | last post by:
I have just experienced my first late paying client. By "late" I mean that the invoice is now almost 2 months overdue. I don't think that the client is maliciously withholding payment - rather...
14
by: Siv | last post by:
hi, I am converting an application that writes to an Excel spreadsheet and the code trips the "option Strict" that I would like on because the parser says "option Strict On disallows late...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.