Many thank to anyone who has the time to read an reply to this.
Am a lone gun developer, I do not develop in team so this question
comes from a place where I just don't really KNOW what others are
doing, I just read, and what I read is ALL about Web Forms ONLY.
I have been developing web sites since 1995, then it was all PERL/CGI,
HTML on UNIX Now I am making the transition from ASP to ASP.NET. I am
developing in C# now.
My question is based around the concept of True "Web Forms"
Development, using Post Backs etc. As a developer I want to develop in
this manner because it is the Correct way to develop today. But in
some cases for example, in an online catalog, you want to use Query
string, Not only are catalog pages bookmarkable that way but the
navigation (back ,forward function)
The problem is this, as a responsible developer making a transition to
the new ways ... every time I develop something with a QueryString
(?printable=1 ... ?productid=5465 4) I feel as though I am breaking the
rules, reverting to old ways, not accepting the transition as it should
be. - I think. "what have I missed"
While I do use and enjoy true Web Forms development, custom controls,
and user controls...
....Is it also common to use GET requests in lots of your design? Should
I just think of ASP.NET web forms as a new and powerful "option"
available to me or should I think of it as the new must method of
design if you are going to use ASP.NET
Is it a case of:
Web forms are just a tool, use 'em when you can don't feel guilty
when you don't -- mix it up as you see fit you got the experience,
stop overthinking it! Nothing wrong with a querystring as long as your
code is good.
I think I need mentoring here, assurance, something like that. -
Strange that is.
Thank you very much for any replies 3 1423
Hi,
DaBrain wrote:
Many thank to anyone who has the time to read an reply to this.
Am a lone gun developer, I do not develop in team so this question
comes from a place where I just don't really KNOW what others are
doing, I just read, and what I read is ALL about Web Forms ONLY.
ASP.NET gives you a high level of comfort, by wiring the events,
automating a lot of tasks, making the web react more like windows.
However, I don't really agree with you when you say that postbacks are
the Correct way. I think that POST has a lot of issues, for example when
your end user refreshes the page and gets asked if he wants to resubmit.
Also, don't forget that POST requests cannot be saved, when GET requests
can get stored in a bookmark.
As you say, my strong opinion is that there is nothing wrong in doing
GETs, and you really shouldn't get inhibited. The art of engineering is
knowing when to choose which technology. On the web, we have POST and
GET, and both have advantages and inconveniences. You have a huge
advantage on new developers who only worked with .NET, and this is that
you understand the depths of the HTTP protocol, because you come a long
way. Make sure to use this advantage when you work on a project.
Nothing wrong with a querystring :-)
Feeling better?
HTH
Laurent
PS: some will argue that the Correct way to go nowadays is to use AJAX ;-)
PS2: And guess what, it comes with GET and POST too
I have been developing web sites since 1995, then it was all PERL/CGI,
HTML on UNIX Now I am making the transition from ASP to ASP.NET. I am
developing in C# now.
My question is based around the concept of True "Web Forms"
Development, using Post Backs etc. As a developer I want to develop in
this manner because it is the Correct way to develop today. But in
some cases for example, in an online catalog, you want to use Query
string, Not only are catalog pages bookmarkable that way but the
navigation (back ,forward function)
The problem is this, as a responsible developer making a transition to
the new ways ... every time I develop something with a QueryString
(?printable=1 ... ?productid=5465 4) I feel as though I am breaking the
rules, reverting to old ways, not accepting the transition as it should
be. - I think. "what have I missed"
While I do use and enjoy true Web Forms development, custom controls,
and user controls...
...Is it also common to use GET requests in lots of your design? Should
I just think of ASP.NET web forms as a new and powerful "option"
available to me or should I think of it as the new must method of
design if you are going to use ASP.NET
Is it a case of:
Web forms are just a tool, use 'em when you can don't feel guilty
when you don't -- mix it up as you see fit you got the experience,
stop overthinking it! Nothing wrong with a querystring as long as your
code is good.
I think I need mentoring here, assurance, something like that. -
Strange that is.
Thank you very much for any replies
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Well said, and I agree.
I'll take it a step further, and say that I'll sometimes use postback, but
peek inside Form["__EVENTTAR GET"] and such to shortcircuit a bunch of code.
This is a hack, and I only do it when I feel the ends justify the means
(namely when I have heavy code that can't be moved to prerender and I might
want to skip it depending on which button was clicked).
The querystring example is a good one. I might recommend that you consider
using url rewriting and cleaner URLs instead, but the difference is small. I
use it plenty of times. There are A LOT of times where I'll use plain old <a
href="xxx"></atags instead of LinkButtons. It just makes more sense and
it's better for the user (bookmarks). Sometimes a linkbutton makes more
sense.
To me, the real purity of ASP.NET comes in the form of custom web controls
(even very simple ones), httphandlers, httpmodules and good OO design.
Karl
-- http://www.openmymind.net/ http://www.fuelindustries.com/
"Laurent Bugnion" <ga*********@bl uewin.chwrote in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Hi,
DaBrain wrote:
>Many thank to anyone who has the time to read an reply to this.
Am a lone gun developer, I do not develop in team so this question comes from a place where I just don't really KNOW what others are doing, I just read, and what I read is ALL about Web Forms ONLY.
ASP.NET gives you a high level of comfort, by wiring the events,
automating a lot of tasks, making the web react more like windows.
However, I don't really agree with you when you say that postbacks are the
Correct way. I think that POST has a lot of issues, for example when your
end user refreshes the page and gets asked if he wants to resubmit. Also,
don't forget that POST requests cannot be saved, when GET requests can get
stored in a bookmark.
As you say, my strong opinion is that there is nothing wrong in doing
GETs, and you really shouldn't get inhibited. The art of engineering is
knowing when to choose which technology. On the web, we have POST and GET,
and both have advantages and inconveniences. You have a huge advantage on
new developers who only worked with .NET, and this is that you understand
the depths of the HTTP protocol, because you come a long
way. Make sure to use this advantage when you work on a project.
Nothing wrong with a querystring :-)
Feeling better?
HTH
Laurent
PS: some will argue that the Correct way to go nowadays is to use AJAX ;-)
PS2: And guess what, it comes with GET and POST too
>I have been developing web sites since 1995, then it was all PERL/CGI, HTML on UNIX Now I am making the transition from ASP to ASP.NET. I am developing in C# now.
My question is based around the concept of True "Web Forms" Development, using Post Backs etc. As a developer I want to develop in this manner because it is the Correct way to develop today. But in some cases for example, in an online catalog, you want to use Query string, Not only are catalog pages bookmarkable that way but the navigation (back ,forward function)
The problem is this, as a responsible developer making a transition to the new ways ... every time I develop something with a QueryString (?printable= 1 ... ?productid=5465 4) I feel as though I am breaking the rules, reverting to old ways, not accepting the transition as it should be. - I think. "what have I missed"
While I do use and enjoy true Web Forms development, custom controls, and user controls...
...Is it also common to use GET requests in lots of your design? Should I just think of ASP.NET web forms as a new and powerful "option" available to me or should I think of it as the new must method of design if you are going to use ASP.NET
Is it a case of: Web forms are just a tool, use 'em when you can don't feel guilty when you don't -- mix it up as you see fit you got the experience, stop overthinking it! Nothing wrong with a querystring as long as your code is good.
I think I need mentoring here, assurance, something like that. - Strange that is.
Thank you very much for any replies
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
I think GETs are common enough in ASP.NET that you don't have to worry about
using them. It it is a fairly standard practice. There is nothing wrong
with GETS or POSTS and just to confuse things further there are plenty of
other good options for passing data around too, such as Application State,
Session State, ViewState, Cache, Cookies, Databases, etc.
Which one is best depends on your situation and is largely a matter of
opinion after weighing various factors such as the amount of data,
usability, efficiency, available resources, etc.
--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM http://SteveOrr.net
"DaBrain" <Ta**********@g mail.comwrote in message
news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Many thank to anyone who has the time to read an reply to this.
Am a lone gun developer, I do not develop in team so this question
comes from a place where I just don't really KNOW what others are
doing, I just read, and what I read is ALL about Web Forms ONLY.
I have been developing web sites since 1995, then it was all PERL/CGI,
HTML on UNIX Now I am making the transition from ASP to ASP.NET. I am
developing in C# now.
My question is based around the concept of True "Web Forms"
Development, using Post Backs etc. As a developer I want to develop in
this manner because it is the Correct way to develop today. But in
some cases for example, in an online catalog, you want to use Query
string, Not only are catalog pages bookmarkable that way but the
navigation (back ,forward function)
The problem is this, as a responsible developer making a transition to
the new ways ... every time I develop something with a QueryString
(?printable=1 ... ?productid=5465 4) I feel as though I am breaking the
rules, reverting to old ways, not accepting the transition as it should
be. - I think. "what have I missed"
While I do use and enjoy true Web Forms development, custom controls,
and user controls...
...Is it also common to use GET requests in lots of your design? Should
I just think of ASP.NET web forms as a new and powerful "option"
available to me or should I think of it as the new must method of
design if you are going to use ASP.NET
Is it a case of:
Web forms are just a tool, use 'em when you can don't feel guilty
when you don't -- mix it up as you see fit you got the experience,
stop overthinking it! Nothing wrong with a querystring as long as your
code is good.
I think I need mentoring here, assurance, something like that. -
Strange that is.
Thank you very much for any replies This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JohnnyCJohnny |
last post by:
Is it pretty safe to say that almost all web surfers now use browsers
that are Frames compatible? What are most people using these days?
IE?
Thanks
|
by: Stefan Arentz |
last post by:
I was just reading through some old articles in the 'Why not develop new
language' thread and came across the finally debate.
Everytime I mention 'finally' to C++ programmers I get almost emotional
responses about why it is not needed in C++. I don't get that.
For example, consider the following code. Please note, I can only use
heap allocated objects in my current project (new/delete).
//
|
by: Don Wash |
last post by:
Hi All!
I'm developing ASP.NET pages using VB.NET language. My background is VB6 and
ASP3. Right now, I'm evaluating strategies on creating reusable and common
functions and methods for ASP.NET. In ASP 3, it was nothing more than
functions and methods coded in #Include Files. Now ASP.NET offers features
such as Page Inheritance and full software development support.
So I'm just wondering, what should I do if I have 5 functions, that...
|
by: Christophe Lohr |
last post by:
Hi,
Inside a program, I need to get some statistics about memory usage.
I actually need figures given by the "ps -o vsr,rss" command.
For the moment, I make a popen("ps...") followed of a scanf on what it
displays. It is a little complicated, and that distorts measurements.
Is there a better way?
I have tried "getrusage()". However values returned are not really
|
by: berns |
last post by:
Hi All,
A coworker and I have been debating the 'correct' expectation of
evaluation for the phrase a = b = c. Two different versions of GCC
ended up compiling this as b = c; a = b and the other ended up
compiling it as a = c; b = c. (Both with no optimizations enabled).
How did we notice you may ask? Well, in our case 'b' was a memory
mapped register that only has a select number of writable bits. He
claims it has been a 'C...
| |
by: Wells |
last post by:
Debate Simmering in US Over Regulation of Internet
A heated debate is shaping up in Washington about a concept some
activists are calling Internet network neutrality, known more popularly
as net neutrality. At issue are calls for the U.S. government to
regulate the Internet, and, in effect, opponents say, determine which
companies get bigger shares of the profits.
To read the full text, please go to:...
|
by: Juha Nieminen |
last post by:
I'm sure this is not a new idea, but I have never heard about it
before. I'm wondering if this could work:
Assume that you have a common base class and a bunch of classes
derived from it, and you want to make a deque which can contain any
objects of any of those types. Normally what you would have to do is to
make a deque or vector of pointers of the base class type and then
allocate each object dynamically with 'new' and store the...
|
by: deerchao |
last post by:
I'm developing a WinForms application. It slowly eats up memory, one
client reported that it took 200MB or more, and finnaly crashed. I
myself noticed it's common to use up 30MB memory, but if I minimize it
(all the Forms will Hide, only a NotifyIcon is shown at the System
Notification Area), the memory usage comes down to 8MB immediately.
After that, even if I show the Forms again, it uses only 8MB memory.
Do I have another way to...
|
by: rao |
last post by:
On some of the compilers integer size is 2 and on some other it is 4
bytes.
My doubt is who decides the size of the integer?
is it plainly the compiler?
Does OS or Processor also has any control in deciding the size of such
data types?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |