473,386 Members | 1,864 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.

Pls some advice for Windows Forms old-hand but ASP noob

I've spent plenty of time building windows forms, but I'm working on a web
project now. I've scanned a few ASP NET books, checked out some tutorials,
but I am unable to figure out how to lay out complex groups of controls that
need to interact with each other on a web page properly.

My main page's design includes a number of different controls. On the left
I have three groups of controls: A textbox with a button for searching (the
first group), below that a treeview (its own group), and below that a listbox
to show results from manipulating the treeview and from searches. On the
right is a pane that shows pages/documents/etc selected in the results
listbox. These two columns of controls are then sandwitched between a header
and footer that stretch across the width of the page. My windows forms
background tells me to find an analogy to the panels-with-controls layout.
Frames seem to be the logical choice. However, since each frame contains a
different page, I can't handle events where one control's event is reflected
in another control's contents as I would in a windows form (all controls are
still on the same form, which makes it as easy as this.someothercontrol.text
= "result"). Having a control's event handler in one .aspx page manipulate a
control in another page, I'm sure, is possible, but its not easy. I'm not
even sure if I should be exposing events in one page's code and handling it
in another's, but if there is a better way to do it, I don't know what it is.
None of the ASP.NET books I've looked at go into depth about complex layouts
like the one I described. Could someone please give me some hints or point
the way to some tutorials? TIA.
Nov 19 '05 #1
1 1192
Hi William,

You're barking up the right tree here. Check out Custom Composite Controls.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"William Sullivan" <Wi*************@discussions.microsoft.com> wrote in
message news:45**********************************@microsof t.com...
I've spent plenty of time building windows forms, but I'm working on a web
project now. I've scanned a few ASP NET books, checked out some
tutorials,
but I am unable to figure out how to lay out complex groups of controls
that
need to interact with each other on a web page properly.

My main page's design includes a number of different controls. On the
left
I have three groups of controls: A textbox with a button for searching
(the
first group), below that a treeview (its own group), and below that a
listbox
to show results from manipulating the treeview and from searches. On the
right is a pane that shows pages/documents/etc selected in the results
listbox. These two columns of controls are then sandwitched between a
header
and footer that stretch across the width of the page. My windows forms
background tells me to find an analogy to the panels-with-controls layout.
Frames seem to be the logical choice. However, since each frame contains
a
different page, I can't handle events where one control's event is
reflected
in another control's contents as I would in a windows form (all controls
are
still on the same form, which makes it as easy as
this.someothercontrol.text
= "result"). Having a control's event handler in one .aspx page
manipulate a
control in another page, I'm sure, is possible, but its not easy. I'm not
even sure if I should be exposing events in one page's code and handling
it
in another's, but if there is a better way to do it, I don't know what it
is.
None of the ASP.NET books I've looked at go into depth about complex
layouts
like the one I described. Could someone please give me some hints or
point
the way to some tutorials? TIA.

Nov 19 '05 #2

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

Similar topics

47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
0
by: CodeMonkey | last post by:
Hi, I was wondering if anybody could give me some advice on how to structure an application that I am about to start work on. The vague requirements will be: 1) Always-On monitoring of data...
2
by: Pink | last post by:
Hi I am a Newbie to .Net can anyone let me know the diffrence between Windows.Forms and Winforms they are different version of totally different and are some methods different too Thanks
0
by: Willie Neal | last post by:
I'm new to vb.net and would like the advice of my peers. Here is my scenario: I have a user control which consists of three buttons, three listboxes and three labels. When the user selects a button...
5
by: Fredrik Melin | last post by:
2005 uses the Partial Class & <form>.Designer.vb for its "windows forms generated code" Anyone know if its faster/better then old 2003 way? Also, when upgrading a 2003 project it did not...
0
by: cbrown | last post by:
I looking to get advice on Interface design and coding. I typically develop ASP.NET pages with a graphic designer, so I don't do UI stuff much. I am rewriting an old app that has a tabbed UI...
2
by: mesut demir | last post by:
Dear collegeaus, I would like to learn Visual Basic.NET and working with DATABASES. My intention is making some Windows programs using Database & Internet programs using Databaseses.(SQL) ...
2
by: Peter Stojkovic | last post by:
I have old Windows from VS.2003 wit a lot of controls in the forms ( Standard und user-Controls ) I have now converted my Application to VS.2005 When I create now a new form the information is...
2
by: adodotnet20 | last post by:
Hi, I need to create an application in C# that will be fairly simple from a UI prospective and that will be able to retrieve some information from a db. The overall look and feel should be nice...
4
by: Mo | last post by:
Hi, I am writing a console application to send a key sequence to an old clunky application on a regular interval using the windows scheduler. I can get it to work if it is a windows form...
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: 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...
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:
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
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.