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

Basic 'What can ASP do' question

dgk
I'm trying to persuade my company to use ASP.NET for a development
effort but I'm pretty weak in both ASP.NET and web development. I've
explained that ASP.NET works by turning the controls on the page into
html and java script so we don't have to write html and javascript
ourselves but clearly we need to write some js anyway since I have to
do that just to set the focus to the first control on the webpage.

As an example, how can I do this in ASP.Net:
1) user enters some text in a textbox on part of a form
2) whole form is submitted? or just a service is called?
2) the server responds with a list of names matching the text
3) the user is given a list of matches (on a subform or listbox?) and
selects one which is inserted into a list, and the user returns to
enter more text for another lookup until done.

I can set autopostback and the whole form is submitted when the user
presses enter. Seems wasteful. How would I just call a webservice that
would update a listbox without a trip to the server each time?

In general, how much can actually be done directly using server-side
controls (including third-party ones) without having to write our own
code once we want to do more than "hello world"?
Nov 19 '05 #1
7 1005
"dgk" <so******************@hot-nospamp-mail.com> wrote in message
news:c1********************************@4ax.com...
I'm trying to persuade my company to use ASP.NET for a development
effort but I'm pretty weak in both ASP.NET and web development. I've
explained that ASP.NET works by turning the controls on the page into
html and java script so we don't have to write html and javascript


http://www.amazon.com/exec/obidos/tg...books&n=507846
Nov 19 '05 #2
dgk wrote:
I'm trying to persuade my company to use ASP.NET for a development
effort but I'm pretty weak in both ASP.NET and web development. I've
explained that ASP.NET works by turning the controls on the page into
html and java script so we don't have to write html and javascript
ourselves but clearly we need to write some js anyway since I have to
do that just to set the focus to the first control on the webpage.

As an example, how can I do this in ASP.Net:
1) user enters some text in a textbox on part of a form
2) whole form is submitted? or just a service is called?
2) the server responds with a list of names matching the text
3) the user is given a list of matches (on a subform or listbox?) and
selects one which is inserted into a list, and the user returns to
enter more text for another lookup until done.

I can set autopostback and the whole form is submitted when the user
presses enter. Seems wasteful. How would I just call a webservice that
would update a listbox without a trip to the server each time?

In general, how much can actually be done directly using server-side
controls (including third-party ones) without having to write our own
code once we want to do more than "hello world"?


You still need to write/know html. The main point (as I see it) is not
"not writing html", but having an object-model that you can work with
(random access) where design and code are separated, as opposed to the
asp (php, jsp, ..) method of builing an html-file as you progress
through the code.
Plus you have the whole .net framework full of classes to do all sorts
of things.

The output is designed to work with any browser (which is not the same
as "works identically on any browser"!) and uses only html and
javascript. So a fancy IE-only client-server interaction is not standard.

--
Hans Kesting
Nov 19 '05 #3
I don't think you really understand ASP.Net. First, if you think that you
don't need to write HTML any more, you're sadly mistaken. Second, if in fact
you think that ASP.Net is simpler to use in general than ASP, you're way off
track. The biggest advantage of ASP.Net over ASP is programming power, and
that is by an exponential factor. ASP.Net is powerful, as powerful as a
programming technology can be. It is also quite a learning curve, expecially
if your only experience is writing VBScript for ASP. So, if you're looking
at migrating to ASP.Net, expect to spend a long time learning the object
model, acquainting yourself with OOP practices and techniques, and retooling
your way of programming in general.

But is it worth it? Absolutely, if you plan to write a web application of
any size, extensibility, and/or complexity.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"dgk" <so******************@hot-nospamp-mail.com> wrote in message
news:c1********************************@4ax.com...
I'm trying to persuade my company to use ASP.NET for a development
effort but I'm pretty weak in both ASP.NET and web development. I've
explained that ASP.NET works by turning the controls on the page into
html and java script so we don't have to write html and javascript
ourselves but clearly we need to write some js anyway since I have to
do that just to set the focus to the first control on the webpage.

As an example, how can I do this in ASP.Net:
1) user enters some text in a textbox on part of a form
2) whole form is submitted? or just a service is called?
2) the server responds with a list of names matching the text
3) the user is given a list of matches (on a subform or listbox?) and
selects one which is inserted into a list, and the user returns to
enter more text for another lookup until done.

I can set autopostback and the whole form is submitted when the user
presses enter. Seems wasteful. How would I just call a webservice that
would update a listbox without a trip to the server each time?

In general, how much can actually be done directly using server-side
controls (including third-party ones) without having to write our own
code once we want to do more than "hello world"?

Nov 19 '05 #4
dgk
On Wed, 16 Mar 2005 11:09:09 -0500, "Kevin Spencer"
<ke***@DIESPAMMERSDIEtakempis.com> wrote:
I don't think you really understand ASP.Net. First, if you think that you
don't need to write HTML any more, you're sadly mistaken. Second, if in fact
you think that ASP.Net is simpler to use in general than ASP, you're way off
track. The biggest advantage of ASP.Net over ASP is programming power, and
that is by an exponential factor. ASP.Net is powerful, as powerful as a
programming technology can be. It is also quite a learning curve, expecially
if your only experience is writing VBScript for ASP. So, if you're looking
at migrating to ASP.Net, expect to spend a long time learning the object
model, acquainting yourself with OOP practices and techniques, and retooling
your way of programming in general.

But is it worth it? Absolutely, if you plan to write a web application of
any size, extensibility, and/or complexity.


I'll second the learning curve phase. I'm an app developer (VB6,
Fortan, Cobol, Vax Basic) and any Web stuff is quite different. I
certainly expect to need Javascript but I'm not sure why I need to
write HTML. Unless I'm writing controls. Well, I know enough HTML to
get by at the moment and I'll be learning more. I know a lot of the
Net framework and VB.Net. So far the big problem is just figuring out
how to do simple things, like determining what control caused submit
in the PageLoad event. That fires before the click event of the
control it seems. Oh well, time to dive into some books.

Luckily my newserver has about a two year retention on this group so
many questions have already been asked and answered.
Nov 19 '05 #5
> Luckily my newserver has about a two year retention on this group so
many questions have already been asked and answered.
Bravo, dgk! It encourages me tremendously to meet someone who can feed
themselves!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"dgk" <so******************@hot-nospamp-mail.com> wrote in message
news:u2********************************@4ax.com... On Wed, 16 Mar 2005 11:09:09 -0500, "Kevin Spencer"
<ke***@DIESPAMMERSDIEtakempis.com> wrote:
I don't think you really understand ASP.Net. First, if you think that you
don't need to write HTML any more, you're sadly mistaken. Second, if in
fact
you think that ASP.Net is simpler to use in general than ASP, you're way
off
track. The biggest advantage of ASP.Net over ASP is programming power, and
that is by an exponential factor. ASP.Net is powerful, as powerful as a
programming technology can be. It is also quite a learning curve,
expecially
if your only experience is writing VBScript for ASP. So, if you're looking
at migrating to ASP.Net, expect to spend a long time learning the object
model, acquainting yourself with OOP practices and techniques, and
retooling
your way of programming in general.

But is it worth it? Absolutely, if you plan to write a web application of
any size, extensibility, and/or complexity.


I'll second the learning curve phase. I'm an app developer (VB6,
Fortan, Cobol, Vax Basic) and any Web stuff is quite different. I
certainly expect to need Javascript but I'm not sure why I need to
write HTML. Unless I'm writing controls. Well, I know enough HTML to
get by at the moment and I'll be learning more. I know a lot of the
Net framework and VB.Net. So far the big problem is just figuring out
how to do simple things, like determining what control caused submit
in the PageLoad event. That fires before the click event of the
control it seems. Oh well, time to dive into some books.

Luckily my newserver has about a two year retention on this group so
many questions have already been asked and answered.

Nov 19 '05 #6
dgk wrote:
So far the big problem is just figuring out
how to do simple things, like determining what control caused submit
in the PageLoad event. That fires before the click event of the
control it seems. Oh well, time to dive into some books.


Page_Load does indeed fire before click, but you can assign
a click-event handler to handle the click. No need to write logic
into Page_Load for this.
In the designer, just double-click on the button and the (empty)
handler is created and hooked up.
--
Hans Kesting
Nov 19 '05 #7
dgk
On Thu, 17 Mar 2005 14:54:48 +0100, Hans Kesting
<ne***********@spamgourmet.com> wrote:
dgk wrote:
So far the big problem is just figuring out
how to do simple things, like determining what control caused submit
in the PageLoad event. That fires before the click event of the
control it seems. Oh well, time to dive into some books.


Page_Load does indeed fire before click, but you can assign
a click-event handler to handle the click. No need to write logic
into Page_Load for this.
In the designer, just double-click on the button and the (empty)
handler is created and hooked up.


Right, I found that out. But since the page_load fires first I would
like to know at that point what triggered it. I checked the Sender
argument but that is just the aspx page. Maybe it's in Session
somewhere.
Nov 19 '05 #8

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

Similar topics

8
by: Cherrish Vaidiyan | last post by:
hello googles, I have a small sqlplus problem. i have created a table with date field along with other varchar2,number etc. But unfortunately i made a mistake in entering the date. for some date...
6
by: DH | last post by:
I have a VERY basic question about figuring database size. I've inherited a database which is generally similar to this basic one: Item, Red, Blue, Green, Yellow (text), (int),(int),(int),(int)...
9
by: Malcolm | last post by:
After some days' hard work I am now the proud possessor of an ANSI C BASIC interpreter. The question is, how is it most useful? At the moment I have a function int basic(const char *script,...
4
by: Ramesh | last post by:
hi, Let me ask some basic questions. Can anybody explain me about the following questions: 1. When we have to create sn key? Whenever we compiled Component we have to create or it is a one time...
4
by: Mark Fox | last post by:
Hello, I've noticed in some sample code that sometimes people use the @ before a string when concatenating them. Example: string filePath = Appl.Request.PhysicalApplicationPath + @"bin\" +...
13
by: Pete | last post by:
I'm cross posting from mscom.webservices.general as I have received no answer there: There has been a number of recent posts requesting how to satisfactorily enable BASIC authorization at the...
5
by: Aussie Rules | last post by:
Hi, Having a mental block on this one. Have done it before but can't rack my brain on how... I have an object, with a bunch on property, and I add that object to a combo box. I want the...
4
by: MikeB | last post by:
I've been all over the net with this question, I hope I've finally found a group where I can ask about Visual Basic 2005. I'm at uni and we're working with Visual Basic 2005. I have some books, ...
4
by: Chris Asaipillai | last post by:
Hi there My compay has a number of Visual Basic 6 applications which are front endeed onto either SQL Server or Microsoft Access databases. Now we are in process of planning to re-write these...
3
by: Scott Stark | last post by:
Hello, I'm trying to get a better handle on OOP programming principles in VB.NET. Forgive me if this question is sort of basic, but here's what I want to do. I have a collection of Employee...
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
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...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.