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

ASP.Net wants FORM everywhere!

in the old ASP I used FORMs only when relevant. In the .Net architecture
they seem to be unmissable because of the Postback functions eg
<a OnServerClick="_GoHere" runat="server">Click me</a>

Ok but isn't this quite a lot of waste of resources; to use a form for
simple navigation? I cannot see any other way though, using the old ASP
<a href="targetpage.asp?action=....">click me</a>

is very clumsy in .Net (reading the Request.Querystring("action") bla
bla...)?
Nov 18 '05 #1
8 1059
You can make an HTML-only page, with no server functionality. Then you don't
need to put <form> on the page.

Eliyahu

"Daves" <db****@simnet.is> wrote in message
news:e1**************@TK2MSFTNGP14.phx.gbl...
in the old ASP I used FORMs only when relevant. In the .Net architecture
they seem to be unmissable because of the Postback functions eg
<a OnServerClick="_GoHere" runat="server">Click me</a>

Ok but isn't this quite a lot of waste of resources; to use a form for
simple navigation? I cannot see any other way though, using the old ASP
<a href="targetpage.asp?action=....">click me</a>

is very clumsy in .Net (reading the Request.Querystring("action") bla
bla...)?

Nov 18 '05 #2
Eliyahu,
my question was not meant as an offence to .Net - it just boggles my mind
probably because of my 4 year old ASP3 background where the Form element was
only appropriate when asking for user input. To make my question more
specific I am actually just asking if this really is the case or am I
missing some important point
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:OT**************@TK2MSFTNGP12.phx.gbl...
You can make an HTML-only page, with no server functionality. Then you
don't
need to put <form> on the page.

Eliyahu

"Daves" <db****@simnet.is> wrote in message
news:e1**************@TK2MSFTNGP14.phx.gbl...
in the old ASP I used FORMs only when relevant. In the .Net architecture
they seem to be unmissable because of the Postback functions eg
<a OnServerClick="_GoHere" runat="server">Click me</a>

Ok but isn't this quite a lot of waste of resources; to use a form for
simple navigation? I cannot see any other way though, using the old ASP
<a href="targetpage.asp?action=....">click me</a>

is very clumsy in .Net (reading the Request.Querystring("action") bla
bla...)?


Nov 18 '05 #3
well try using hyperlink webcontrol... you can assign the navigation url to
the hyperlink.. on the linked page you can read you request vars

--

Regards,

Hermit Dave (D'way)
http://hdave.blogspot.com

"Daves" <db****@simnet.is> wrote in message
news:e1**************@TK2MSFTNGP14.phx.gbl...
in the old ASP I used FORMs only when relevant. In the .Net architecture
they seem to be unmissable because of the Postback functions eg
<a OnServerClick="_GoHere" runat="server">Click me</a>

Ok but isn't this quite a lot of waste of resources; to use a form for
simple navigation? I cannot see any other way though, using the old ASP
<a href="targetpage.asp?action=....">click me</a>

is very clumsy in .Net (reading the Request.Querystring("action") bla
bla...)?

Nov 18 '05 #4
Hi Daves:

It will take some time to adjust to the new paradigm. ASP.NET is
trying to abstract away the fact that we are programming web
applications. Instead we have controls to interact with and thier
events to respond to. Having a form on every page allows ASP.NET to
use some hidden input fields on every page to help the illusion along.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 21 Nov 2004 12:17:55 -0000, "Daves" <db****@simnet.is> wrote:
Eliyahu,
my question was not meant as an offence to .Net - it just boggles my mind
probably because of my 4 year old ASP3 background where the Form element was
only appropriate when asking for user input. To make my question more
specific I am actually just asking if this really is the case or am I
missing some important point


Nov 18 '05 #5
thx Scott so my understanding is correct, good to hear. I'll try to adapt!

What about then a situation, say- where there are two navigational areas,
eg. the classic left menu sidebar and a main page... Obivously the whole
page has to be inside a form element or else there'd have to be 2
forms....??

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:dl********************************@4ax.com...
Hi Daves:

It will take some time to adjust to the new paradigm. ASP.NET is
trying to abstract away the fact that we are programming web
applications. Instead we have controls to interact with and thier
events to respond to. Having a form on every page allows ASP.NET to
use some hidden input fields on every page to help the illusion along.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 21 Nov 2004 12:17:55 -0000, "Daves" <db****@simnet.is> wrote:
Eliyahu,
my question was not meant as an offence to .Net - it just boggles my mind
probably because of my 4 year old ASP3 background where the Form element
was
only appropriate when asking for user input. To make my question more
specific I am actually just asking if this really is the case or am I
missing some important point

Nov 18 '05 #6
It doesn't have to. If you prefer, you can make an html page with the left
menu made up out of links and an frame/iframe for the main page. Only the
main page will be a form. If you want the server to participate in menu
building, then the menu will have to be a form too.

Eliyahu

"Daves" <db****@simnet.is> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
thx Scott so my understanding is correct, good to hear. I'll try to adapt!

What about then a situation, say- where there are two navigational areas,
eg. the classic left menu sidebar and a main page... Obivously the whole
page has to be inside a form element or else there'd have to be 2
forms....??

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:dl********************************@4ax.com...
Hi Daves:

It will take some time to adjust to the new paradigm. ASP.NET is
trying to abstract away the fact that we are programming web
applications. Instead we have controls to interact with and thier
events to respond to. Having a form on every page allows ASP.NET to
use some hidden input fields on every page to help the illusion along.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 21 Nov 2004 12:17:55 -0000, "Daves" <db****@simnet.is> wrote:
Eliyahu,
my question was not meant as an offence to .Net - it just boggles my mindprobably because of my 4 year old ASP3 background where the Form element
was
only appropriate when asking for user input. To make my question more
specific I am actually just asking if this really is the case or am I
missing some important point


Nov 18 '05 #7
copy the form to your project and change extension to aspx
"Daves" wrote:
in the old ASP I used FORMs only when relevant. In the .Net architecture
they seem to be unmissable because of the Postback functions eg
<a OnServerClick="_GoHere" runat="server">Click me</a>

Ok but isn't this quite a lot of waste of resources; to use a form for
simple navigation? I cannot see any other way though, using the old ASP
<a href="targetpage.asp?action=....">click me</a>

is very clumsy in .Net (reading the Request.Querystring("action") bla
bla...)?

Nov 18 '05 #8
copy your form to your project and change it's extension to aspx
"Daves" wrote:
in the old ASP I used FORMs only when relevant. In the .Net architecture
they seem to be unmissable because of the Postback functions eg
<a OnServerClick="_GoHere" runat="server">Click me</a>

Ok but isn't this quite a lot of waste of resources; to use a form for
simple navigation? I cannot see any other way though, using the old ASP
<a href="targetpage.asp?action=....">click me</a>

is very clumsy in .Net (reading the Request.Querystring("action") bla
bla...)?

Nov 18 '05 #9

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

Similar topics

27
by: xeys_00 | last post by:
I'm a manager where I work(one of the cogs in a food service company). The boss needed one of us to become the "tech guy", and part of that is writing small windows programs for the office. He...
0
by: asj | last post by:
luke: BORRRRRRRRING......the most interesting initiatives are happening on the client side - in small wireless devices such as cellphones and smartphones, where J2ME has become the de facto...
0
by: Tony Pirkle | last post by:
I'm on a team converting a large VB6 enterprise solution into a VB.Net solution. We've started small. In other words, we're taking MS' advice and beginning with small pieces. I've created a...
20
by: parametriceq | last post by:
Hello, I just realized there's only a "g" separating me from....me? Old Coder or Old Codger? Anyway, I haven't programmed since the late 80's. My experience then was with DEC PDP-11's and...
3
by: MajorTom | last post by:
Hello everybody, I need help on how to use the same datase in two different form, this is the scenario: at the first form I load a big dataset (ds1) for short, but I not want to load it again...
11
by: Tarren | last post by:
Hi: How would I place a divider on the form where it looks chiseled and thin line - they are everywhere in Windows Apps, but cannot find the control to put on the form. Thanks
4
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
8
by: fperri | last post by:
I have a site where the default.aspx (or otherwise index page) works fine. But any of the links to the other aspx pages, don't open the page but instead display a pop up box asking if you want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...

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.