473,327 Members | 2,081 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,327 software developers and data experts.

question for professsional asp developer

hi,

i am a professional asp developer, and when i used to code in normal ASP
code i didn't use the design view in interdev. instead i just used code to
draw any tables/forms, etc that i needed.

my question is that is this still the best way to develop for professional
coders (instead of dragging control onto a web form in design view)?

the reason i am asking is because i'm new to asp.net and don't understand
how to draw tables/hyperlinks etc dynamically.

until now, if i require a control on a page (eg: a table), i draw it onto a
page using design view, and then alter the properties accordingly. and to
be honest i dont like this way at all.

can anyone offer any tips for a professional developer - is the design view
meant to be for beginners?
Nov 17 '05 #1
3 1328
Is the design view meant for beginners? Heavens no! It's a productivity
tool, just like any other productivity tool. If you make the best use of it
possible, you can develop your ASP.Net applications in much less time than
hand-coding alone. However, it does have its strengths and weaknesses, and
personally, I try to augment it with other tools. For example, I use
Microsoft FrontPage to lay out my basic HTML, including any form fields
which will become HtmlControls. I leave placeholder HTML (such as empty
table cells, for example) for WebControls and custom Server Controls. Then,
when I've got the basic HTML looking good, I copy and paste it into the
Visual Studio designer, because the designer is not good at doing HTML. In
the Design view, I can then right-click the HTML form fields to make them
HtmlControls, drag and drop the necessary WebControls and Custom Server
Controls into their respective places, maybe do a little hand-tweaking of
the HTML Template, and then go straight to the CodeBehind to plug in all the
server-side functionality required.

It's all just a matter of identifying the best productivity tools in the
best possible combination, by identifying the strengths and weaknesses of
available tools. I'm sure there are other great combinations of tools being
used out there as well.

--
HTH,

Kevin Spencer
..Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"suzy" <me@nospam.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
hi,

i am a professional asp developer, and when i used to code in normal ASP
code i didn't use the design view in interdev. instead i just used code to
draw any tables/forms, etc that i needed.

my question is that is this still the best way to develop for professional
coders (instead of dragging control onto a web form in design view)?

the reason i am asking is because i'm new to asp.net and don't understand
how to draw tables/hyperlinks etc dynamically.

until now, if i require a control on a page (eg: a table), i draw it onto a page using design view, and then alter the properties accordingly. and to
be honest i dont like this way at all.

can anyone offer any tips for a professional developer - is the design view meant to be for beginners?

Nov 17 '05 #2
I agree with Kevin for the most part, although I have generally found
the designer to be of little use for most complex projects. Once you
expand on the built in framework of ASP.NET (ie: by creating a new
page class, or trying to use some sort of page templates) the designer
tends to get a little flaky...

That said though, if you are able to use it to get the basic structure
of your pages together then it can save hours...

Dynamic controls in asp.net take some getting used to, and in
generally do not get along very with ASP.NET postback/viewstate/event
framework. You can do almost exactly what you would have done in ASP
using by overriding the Render method of the Page object and using
writer.Write("") statements, but you will lose all the benefits of
ASP.NET mentioned above.

Creating dynamic controls that can participate in postback etc have to
be created in the OnCreateChildControls method or OnInit method. the
problem is that they also have to be the same on every postback, so in
the end they are not really all that dynamic.

If possible you can create a bunch of controls and change the Visible
property to draw the relevent ones, but this does nto work for all
situations.

"Kevin Spencer" <ke*****************@takempis.com> wrote in message news:<eH**************@TK2MSFTNGP10.phx.gbl>...
Is the design view meant for beginners? Heavens no! It's a productivity
tool, just like any other productivity tool. If you make the best use of it
possible, you can develop your ASP.Net applications in much less time than
hand-coding alone. However, it does have its strengths and weaknesses, and
personally, I try to augment it with other tools. For example, I use
Microsoft FrontPage to lay out my basic HTML, including any form fields
which will become HtmlControls. I leave placeholder HTML (such as empty
table cells, for example) for WebControls and custom Server Controls. Then,
when I've got the basic HTML looking good, I copy and paste it into the
Visual Studio designer, because the designer is not good at doing HTML. In
the Design view, I can then right-click the HTML form fields to make them
HtmlControls, drag and drop the necessary WebControls and Custom Server
Controls into their respective places, maybe do a little hand-tweaking of
the HTML Template, and then go straight to the CodeBehind to plug in all the
server-side functionality required.

It's all just a matter of identifying the best productivity tools in the
best possible combination, by identifying the strengths and weaknesses of
available tools. I'm sure there are other great combinations of tools being
used out there as well.

--
HTH,

Kevin Spencer
.Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"suzy" <me@nospam.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
hi,

i am a professional asp developer, and when i used to code in normal ASP
code i didn't use the design view in interdev. instead i just used code to
draw any tables/forms, etc that i needed.

my question is that is this still the best way to develop for professional
coders (instead of dragging control onto a web form in design view)?

the reason i am asking is because i'm new to asp.net and don't understand
how to draw tables/hyperlinks etc dynamically.

until now, if i require a control on a page (eg: a table), i draw it onto

a
page using design view, and then alter the properties accordingly. and to
be honest i dont like this way at all.

can anyone offer any tips for a professional developer - is the design

view
meant to be for beginners?

Nov 17 '05 #3
I agree with Kevin for the most part, although I have generally found
the designer to be of little use for most complex projects. Once you
expand on the built in framework of ASP.NET (ie: by creating a new
page class, or trying to use some sort of page templates) the designer
tends to get a little flaky...

That said though, if you are able to use it to get the basic structure
of your pages together then it can save hours...

Dynamic controls in asp.net take some getting used to, and in
generally do not get along very with ASP.NET postback/viewstate/event
framework. You can do almost exactly what you would have done in ASP
using by overriding the Render method of the Page object and using
writer.Write("") statements, but you will lose all the benefits of
ASP.NET mentioned above.

Creating dynamic controls that can participate in postback etc have to
be created in the OnCreateChildControls method or OnInit method. the
problem is that they also have to be the same on every postback, so in
the end they are not really all that dynamic.

If possible you can create a bunch of controls and change the Visible
property to draw the relevent ones, but this does nto work for all
situations.

"Kevin Spencer" <ke*****************@takempis.com> wrote in message news:<eH**************@TK2MSFTNGP10.phx.gbl>...
Is the design view meant for beginners? Heavens no! It's a productivity
tool, just like any other productivity tool. If you make the best use of it
possible, you can develop your ASP.Net applications in much less time than
hand-coding alone. However, it does have its strengths and weaknesses, and
personally, I try to augment it with other tools. For example, I use
Microsoft FrontPage to lay out my basic HTML, including any form fields
which will become HtmlControls. I leave placeholder HTML (such as empty
table cells, for example) for WebControls and custom Server Controls. Then,
when I've got the basic HTML looking good, I copy and paste it into the
Visual Studio designer, because the designer is not good at doing HTML. In
the Design view, I can then right-click the HTML form fields to make them
HtmlControls, drag and drop the necessary WebControls and Custom Server
Controls into their respective places, maybe do a little hand-tweaking of
the HTML Template, and then go straight to the CodeBehind to plug in all the
server-side functionality required.

It's all just a matter of identifying the best productivity tools in the
best possible combination, by identifying the strengths and weaknesses of
available tools. I'm sure there are other great combinations of tools being
used out there as well.

--
HTH,

Kevin Spencer
.Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"suzy" <me@nospam.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
hi,

i am a professional asp developer, and when i used to code in normal ASP
code i didn't use the design view in interdev. instead i just used code to
draw any tables/forms, etc that i needed.

my question is that is this still the best way to develop for professional
coders (instead of dragging control onto a web form in design view)?

the reason i am asking is because i'm new to asp.net and don't understand
how to draw tables/hyperlinks etc dynamically.

until now, if i require a control on a page (eg: a table), i draw it onto

a
page using design view, and then alter the properties accordingly. and to
be honest i dont like this way at all.

can anyone offer any tips for a professional developer - is the design

view
meant to be for beginners?

Nov 17 '05 #4

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

Similar topics

3
by: Akeel Ahmed | last post by:
Hi I feel real silly asking this, I have been posed with a simple design question which goes as follows (I am from a procedural background and not oop which may help explain my stupidity) I...
6
by: ronwer | last post by:
Hello, The title doesn't completely cover the question I have, but it's a bit more complicated problem we have. We are using a database, based on Acces, but developed by a third party...
8
by: Smkmdb1 | last post by:
Hi everyone, I'm a student of ASP.net. Being an ex Perl/CGI programmer who made extra cash making scripts and selling them on the web, I was wondering if one typically uses this format with...
8
by: Hardy Wang | last post by:
Hi: Is it possible for me to create/open web application from remote machine other than port 80? And create application directly under virtual web site instead of creating a virtual directory?...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
6
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
7
by: Bob Morvay | last post by:
I am trying to determine how far I should go in encapsulating data. As I understand it, OO practices state to create private member variables and use these variables in your publicly accessible...
14
by: Frank Rizzo | last post by:
I realize that this maybe the wrong forum, but maybe someone has run into this situation before. I sell an app and I want to offer my customers a migration path from a competing product. However,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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

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.