Search:
Namespaces
Discussions
.NET v1.1
Feedback
Controls and Framesets
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngcontrolscs' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Julian Voelcker
I'm creating a messaging/bulletin board system that primarily consists
of two frames - a listing of messages at the top and a message
viewer/editor at the bottom.
I have already created a working model using code behind and now want
to convert it over to being a control and would be interested to know
the views of the panel here.
1. Firstly, can a single control being used on both the pages pass
variables behind the scenes other than using session variables? (I
suspect it can't, but it's worth asking.)
2. If the answer to 1 above is no, would it be best to create a single
control or two different controls for the top and bottom pages?
I would appreciate you views.
Cheers,
Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom
Reply to this message...
Alex Dresko
You're correct in assuming that it's not possible to pass information
directly between pages/frames. You have to use one of the state objects
or pass variables through the querystring. I personally find the
querystring method to be most useful.
As for creating one or two controls... There's no sense in creating two
different controls if they both have the exact same functionality and in
such a case you would benefit more from creating only one. If they both
contain SOME similar functionality, you might do best to create two
controls and derive them both from a base class that you should also
create. And, of course, if both controls are completely different, two
controls is definitely the way to go.
Alex Dresko
Three Point Oh!
-----Original Message-----
From: Julian Voelcker [mailto:
Click here to reveal e-mail address
]
Sent: Friday, April 19, 2002 9:24 AM
To: aspngcontrolscs
Subject: [aspngcontrolscs] Controls and Framesets
I'm creating a messaging/bulletin board system that primarily consists
of two frames - a listing of messages at the top and a message
viewer/editor at the bottom.
I have already created a working model using code behind and now want
to convert it over to being a control and would be interested to know
the views of the panel here.
1. Firstly, can a single control being used on both the pages pass
variables behind the scenes other than using session variables? (I
suspect it can't, but it's worth asking.)
2. If the answer to 1 above is no, would it be best to create a single
control or two different controls for the top and bottom pages?
I would appreciate you views.
Cheers,
Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom
| [aspngcontrolscs] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngcontrolscs.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Steve Sharrock (VIP)
My $.02...
I've removed all of my framesets in my consulting home site with
top/bottom user controls (
http://www.sharkcode.com
).
1. The issues associated with passing variables between pages are the
same regardless of the controls. You still need to use things like
Session variables or, in some cases the Viewstate. There is one thing to
remember with the controls that is very handy -- you can pass values
into them from the HTML attributes as long as you define public
properties in the control.
2. I would guess that two controls (top/bottom) would be more flexible,
and make the coding of each page clearer.
Steve Sharrock
programmer / designer
www.sharkcode.com
-----Original Message-----
From: Julian Voelcker [mailto:
Click here to reveal e-mail address
]
Sent: Friday, April 19, 2002 6:24 AM
To: aspngcontrolscs
Subject: [aspngcontrolscs] Controls and Framesets
I'm creating a messaging/bulletin board system that primarily consists
of two frames - a listing of messages at the top and a message
viewer/editor at the bottom.
I have already created a working model using code behind and now want
to convert it over to being a control and would be interested to know
the views of the panel here.
1. Firstly, can a single control being used on both the pages pass
variables behind the scenes other than using session variables? (I
suspect it can't, but it's worth asking.)
2. If the answer to 1 above is no, would it be best to create a single
control or two different controls for the top and bottom pages?
I would appreciate you views.
Cheers,
Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom
| [aspngcontrolscs] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngcontrolscs.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com