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

Accessing collection data from aspx page - how?

I have an .net aspx page MyPage.aspx (client side), with code behind
MyPage.aspx.vb (server side)

I use the pages server On_Load event (.aspx.vb) to create a collection using
classes.

Public Class CollectionPage
Inherits Web.UI.Page


Nov 19 '05 #1
2 1290
I don't know where to start, kermit. More importantly, I don't know where to
tell YOU to start.

First, you begin by saying that you have a client-side ASPX Page, and a
server-side CodeBehind. This is incorrect. You have ONE server-side ASPX
Page class. Period. Until it receives a Request, there IS no client-side.
The MyPage.aspx file contains a class definition that is derived via
inheritance from the class definition in the MyPage.aspx.vb file. When they
are compiled, you have 2 classes. Only one is used. The "CodeBehind" is the
base class from which the ASPX class is inherited.

So, in conclusion, you need to learn how object-oriented programming works
before you can start programming. Think of it as a pyramid. If the bottom
level is missing pieces, the entire pyramid is going to fall over.

This is evidenced by the second thing you state, which is that you "create a
collection using classes," and show that you have created a class that
inherits NOT a Collection class, but System.Web.UI.Page." And your question
is how to access the "Collection" data from the ASPX page.

IOW, your question doesn't make sense because you don't understand the
programming technology you're working with.

Another way to look at it is, you're trying to do Trigonometry without any
understanding of Algebra. The only solution is to learn algebra first, or
you'll be swimming in circles until the cows come home.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"kermit" <ke****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I have an .net aspx page MyPage.aspx (client side), with code behind
MyPage.aspx.vb (server side)

I use the pages server On_Load event (.aspx.vb) to create a collection
using
classes.

Public Class CollectionPage
Inherits Web.UI.Page

Nov 19 '05 #2
"kermit" <ke****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I have an .net aspx page MyPage.aspx (client side), with code behind
MyPage.aspx.vb (server side)

I use the pages server On_Load event (.aspx.vb) to create a collection
using
classes.

Public Class CollectionPage
Inherits Web.UI.Page


?????
Nov 19 '05 #3

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

Similar topics

6
by: Chris Styles | last post by:
Dear All, I've been using some code to verify form data quite happily, but i've recently changed the way my form is structured, and I can't get it to work now. Originally : The form is...
6
by: omyek | last post by:
I'm trying to mimic the browsing of a webpage using an HttpWebRequest. I've had a lot of luck with it so far, including logging into pages, posting form data, and even collecting and using cookies....
2
by: James Zhuo | last post by:
Accessing Items in a Collection works with the as suggested by Kevin and Chris (thx) But when i tried to use the same technic with databinding within the aspx file, it doesn't seem to work. This...
5
by: Peter | last post by:
I have 3 ASP.NET forms written in C#, I also have 3 frames (left, top and bottom) one for each form. My question is if I have data on one form in the bottom frame how do I access this data when I...
4
by: John Holmes | last post by:
I'm using data to rename some web controls on a form that uses a repeater contol and so it can have mulitple instances of the same control set. The controls get renamed (thanks to Steven Cheng's...
2
by: kermit | last post by:
I have a .net aspx page MyPage.aspx (client side) with code behind MyPage.aspx.vb (server side). I use the Page_Load event in MyPage.aspx.vb to load data into a multiteir class based...
6
by: Joe | last post by:
Hello All: I have a webform (WebForm1.aspx) that retrieves a value from a database (_formSessionId) the first time that it is posted. After the user filles in the form, he/she clicks a Button...
7
by: =?Utf-8?B?Li46OiBLZXZpbiA6Oi4u?= | last post by:
I have a problem with accessing controls that I have loaded dynamically and added to a web page. The scenario: I have a webpage that displays multiple instances of a user control on the page. ...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.