Board index » delphi » Re: Will ISAPI continue?

Re: Will ISAPI continue?


2003-10-22 03:43:58 AM
delphi25
"Shawn Pfaff" <XXXX@XXXXX.COM>writes
Quote
<to the ASP.NET folks>
Does .NET provide this granular access as well?
Yes... you have complete control over the output as well as complete access
to the request and response.
Quote
I have grown acustomed to
this in WebBroker - in the same breath, I have inumerable battle scars
from
it as well.

Yes, I want my cake and [to] eat it too. And a tall glass of milk if you
don't mind.
--
-Jimmy
 
 

Re: Will ISAPI continue?

On Tue, 21 Oct 2003 15:41:57 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:
Quote
Yes... but in addition to that, it shows documentation for the current
parameter.
Sounds cool -- how does it do that?
Nick Hodges - TeamB
Lemanix Corporation
Please always follow the newsgroup guidelines --
www.borland.com/newsgroups
 

Re: Will ISAPI continue?

On Tue, 21 Oct 2003 15:43:58 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:
Quote
you have complete control over the output
Only if you don't use ServerControls.
Nick Hodges - TeamB
Lemanix Corporation
Please always follow the newsgroup guidelines --
www.borland.com/newsgroups
 

Re: Will ISAPI continue?

Quote
>Does .NET provide this granular access as well?

Shawn --

They will say yes, and to a certain degree they are right.
Ultimately, however, I say they aren't. When you drop controls on a
webform, you get those

<aspx: blah, blah, blah />
WebSnap has a similar concept in Adapters. Except there you have less
control in the HTML because the Adapters don't put *anything* in the HTML.
At least in ASP.NET you can assign properties, for example:
<aspx:button text="Click Me" onclick="ClickTheButton"/>
WebBroker has the <#...>tags which are more flexible than WebSnap in terms
of generated HTML because they can take parameters. However, the HTML
generated is generated from compiled code - just as in ASP.NET. However,
ASP.NET allows you to nest tags and easily create much more complex controls
than in WebBroker. Also, since both technologies require compiled code to
process the special tags, there's no added flexability in one or the other.
In ASP.NET you may use a nice self-contained component - no such concept
exists in WebBroker. Of course, you could write webbroker
components/page-producers to handle tags, but then you'd only be to where
ASP.NET is out of the box.
Quote
Tags, and you don't really have a lot of control over the HTML that
they are replaced with. You can set properties, etc, but you don't
have the ability to actually control the HTML. (Well, technically, I
suppose that you do, but it is sure not easy like it is in WebBroker).
How is it not as easy?
--
-Jimmy
 

Re: Will ISAPI continue?

Quote
>Yes... but in addition to that, it shows documentation for the current
>parameter.

Sounds cool -- how does it do that?
Here's a quick example (not compiled/tested):
public class Foo{
/// <summary>
/// This method does nothing useful.
/// </summary>
/// <param name="Arg1">This is the first argument</param>
/// <param name="Arg2">This is the second argument</param>
public void IPityDaFoo(string Arg1, string Arg2){
// Do nothing....
}
}
Now when you go to use it in the IDE:
{
Foo MyFoo = new Foo();
MyFoo.|
}
After the | you will see code insight pop-up, select the IPityDaFoo method
and a description will pop up. It will look something like this:
------------
| void IPityDaFoo(string Arg1, string Arg2)
| This method does nothing useful.
------------
Hit the l-paren key and you will get a hint for Arg1, which will look
something like this (bold tags substituted for actual bold text):
------------
| void IPityDaFoo(<b>string Arg1</b>, string Arg2)
| Arg1:
| This is the first argument
------------
It comes in handy quite often, to have documentation immediatly at your
finger tips. I hit the F1 key a lot less than I used to :-).
--
-Jimmy
 

Re: Will ISAPI continue?

Quote
>you have complete control over the output

Only if you don't use ServerControls.
Yeah, and WebBroker gives you complete control if you don't use <#these
tags>.
So, how's WebBroker give you more control?
--
-Jimmy
 

Re: Will ISAPI continue?

On Tue, 21 Oct 2003 16:02:18 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:
Quote
It comes in handy quite often, to have documentation immediatly at your
finger tips. I hit the F1 key a lot less than I used to :-).
Sounds cool.
Nick Hodges - TeamB
Lemanix Corporation
Please always follow the newsgroup guidelines --
www.borland.com/newsgroups
 

Re: Will ISAPI continue?

On Tue, 21 Oct 2003 16:03:21 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:
Quote
So, how's WebBroker give you more control?
You can do whatever you want in a <#xx>tag. You can not control the
HTML output of an <asp:xxx>tag.
Nick Hodges - TeamB
Lemanix Corporation
Please always follow the newsgroup guidelines --
www.borland.com/newsgroups
 

Re: Will ISAPI continue?

Quote
>So, how's WebBroker give you more control?

You can do whatever you want in a <#xx>tag. You can not control the
HTML output of an <asp:xxx>tag.
You've lost me... how can you do "whatever you want" in a <#xx>tag but not
in a <aspx:xx>tag?
--
-Jimmy
 

Re: Will ISAPI continue?

On Tue, 21 Oct 2003 16:34:53 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:
Quote
You've lost me... how can you do "whatever you want" in a <#xx>tag but not
in a <aspx:xx>tag?
Drop a Calendar control on a form. Now, how do I control at the
character/text level what this control does? I can't.
Nick Hodges - TeamB
Lemanix Corporation
Please always follow the newsgroup guidelines --
www.borland.com/newsgroups
 

Re: Will ISAPI continue?

Quote
>You've lost me... how can you do "whatever you want" in a <#xx>tag but
not
>in a <aspx:xx>tag?

Drop a Calendar control on a form. Now, how do I control at the
character/text level what this control does? I can't.
Uh... drop a calendar on a WebBroker HTML page... oh wait, you can't. If you
want to do in ASP.NET what you do in WebBroker, put a tag in the page like
this:
<%#GenerateCalendarHTML()%>
Or this:
<%=GenerateCalendarHTML()%>
(There's an important difference in these lines of code, but both'll do what
you want)
Then in the GenerateCalendarHTML method of your page, spit out any HTML you
want, character by character. You can even add arguments.
I'm still failing to see where WebBroker gives you control and ASP.NET
doesn't...
--
-Jimmy
 

Re: Will ISAPI continue?

On Tue, 21 Oct 2003 17:36:35 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:
Quote
Uh... drop a calendar on a WebBroker HTML page... oh wait, you can't.
True enough. Here's another thing you can not do -- drop a calendar
control in ASP.NET and then control the exact output of the HTML that
this control renders.
Quote
I'm still failing to see where WebBroker gives you control and ASP.NET
doesn't...
You didn't concede my point -- which is that you can not control the
HTML that the calendar control generates -- a point that can not be
argued, because it is a fact. ;-)
You are shifting the argument each time to the advantage of ASP.NET.
Are we discussing ASP.NET vs. WebBroker? Or ASP.NET vs WebSnap?
You can use ASP.NET just like web broker, and then then they both do
pretty much the same thing -- if you don't use
WebControls/ServerControls, then there is nothing that ASP.NET can't
do that WebBroker/WebSnap can not do equally well.
If you do use Server/WebControls, then you can not provide total control
over the HTML that gets generated.
Quote
I'm still failing to see where WebBroker gives you control and ASP.NET
doesn't...
I didn't say ASP.NET doesn't -- I said the use of ServerContols
doesn't provide the control one might want.
Nick Hodges - TeamB
Lemanix Corporation
Please always follow the newsgroup guidelines --
www.borland.com/newsgroups
 

Re: Will ISAPI continue?

"Nick Hodges (TeamB)" <XXXX@XXXXX.COM>writes
Quote
On Tue, 21 Oct 2003 17:36:35 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:

>Uh... drop a calendar on a WebBroker HTML page... oh wait, you can't.

True enough. Here's another thing you can not do -- drop a calendar
control in ASP.NET and then control the exact output of the HTML that
this control renders.
That's nice... but you can not do it in WebBroker either.
Quote
>I'm still failing to see where WebBroker gives you control and ASP.NET
>doesn't...

You didn't concede my point -- which is that you can not control the
HTML that the calendar control generates -- a point that can not be
argued, because it is a fact. ;-)
It's funny you should mention a calendar control... I happen to have written
one and it gives you an extreme amount of control over the end result. The
only thing you can not control is that it is rendered as a <table>but it
wouldn't be very difficult to expose that as well.
Quote
You are shifting the argument each time to the advantage of ASP.NET.
Are we discussing ASP.NET vs. WebBroker? Or ASP.NET vs WebSnap?
I'm just addressing what's written.
Quote
You can use ASP.NET just like web broker, and then then they both do
pretty much the same thing -- if you don't use
WebControls/ServerControls, then there is nothing that ASP.NET can't
do that WebBroker/WebSnap can not do equally well.
Ok... let's tie the proverbial arm behind ASP.NET's back and ignore server
controls, which are a huge benefit. What about the concept of ViewState? The
global Application object? Session management in server farms? Web User
Controls? DataBinding? 100% Compiled code (even the ASPX Pages are compiled
in ASP.NET).
Quote
If you do use Server/WebControls, then you can not provide total control
over the HTML that gets generated.
Unless you write your own. I have been very frustrated with some ASP.NET
controls - so I wrote my own. It didn't take any more effort than the
equivalent code would have in WebBroker/WebSnap, plus I was able to expose
all the properties I needed (even on a character-by-character level, when
necessary) for complete control.
Quote
>I'm still failing to see where WebBroker gives you control and ASP.NET
>doesn't...

I didn't say ASP.NET doesn't -- I said the use of ServerContols
doesn't provide the control one might want.
I don't see that, but I could be missing a post. Aside from that - server
controls allow *more* flexibility than WebBroker/WebSnap. How? You can write
your own.
--
-Jimmy
 

Re: Will ISAPI continue?

On Tue, 21 Oct 2003 20:55:15 -0400, "Jimmy [Used-Disks]"
<XXXX@XXXXX.COM>writes:
Quote
That's nice... but you can not do it in WebBroker either.
Correct -- I never said otherwise. ;-)
Quote
It's funny you should mention a calendar control... I happen to have written
one and it gives you an extreme amount of control over the end result. The
only thing you can not control is that it is rendered as a <table>but it
wouldn't be very difficult to expose that as well.
No reason you couldn't write a WebSnap control to do that as well.
Quote
Ok... let's tie the proverbial arm behind ASP.NET's back and ignore server
controls, which are a huge benefit. What about the concept of ViewState? The
global Application object? Session management in server farms? Web User
Controls? DataBinding? 100% Compiled code (even the ASPX Pages are compiled
in ASP.NET).
You have all that in WebSnap.
But you are missing my point -- ASP.NET has advantages, I agree. But
all I am saying is that there are reasons -- valid reasons -- why you
might not want to use it.
Quote
Unless you write your own. I have been very frustrated with some ASP.NET
controls - so I wrote my own. It didn't take any more effort than the
equivalent code would have in WebBroker/WebSnap, plus I was able to expose
all the properties I needed (even on a character-by-character level, when
necessary) for complete control.
Just like I do with WebSnap. See what I mean?
Quote
I don't see that, but I could be missing a post. Aside from that - server
controls allow *more* flexibility than WebBroker/WebSnap. How? You can write
your own.
My point: WebSnap/WebBroker is a powerful, capable technology that has
advantages and disadvantages over ASP.NET.
Nick Hodges - TeamB
Lemanix Corporation
Please always follow the newsgroup guidelines --
www.borland.com/newsgroups
 

Re: Will ISAPI continue?

Quote
>Ok... let's tie the proverbial arm behind ASP.NET's back and ignore
server
>controls, which are a huge benefit. What about the concept of ViewState?
The
>global Application object? Session management in server farms? Web User
>Controls? DataBinding? 100% Compiled code (even the ASPX Pages are
compiled
>in ASP.NET).

You have all that in WebSnap.
WebSnap has ViewState? An Application object for storing globals? I know
with Rich Bako's component you can do session handling in server farms, so
I'll give WebSnap that. Also, I don't think WebSnap has Web User Controls...
it has SSI, but that is no where near what a Web User Control does. WebSnap
doesn't have anything like databinding, and the pages in WebSnap are *not*
compiled - they are interpreted.
I also forgot content caching. ASP.NET has that too, WebSnap doesn't.
Quote
But you are missing my point -- ASP.NET has advantages, I agree. But
all I am saying is that there are reasons -- valid reasons -- why you
might not want to use it.
If you cannot use the .NET framework, then ASP.NET is out of the question.
Other than that, I don't see any good reason to use WebBroker/WebSnap over
ASP.NET (oh wait - legacy code would be good. Any others?). We had a
discussion a while back about WebSnap actions vs. classic events (like
OnClick). I do see benefits there, but have yet come across a practical
real-world example of how this single benefit outweighs all the benefits of
ASP.NET.
Quote
>Unless you write your own. I have been very frustrated with some ASP.NET
>controls - so I wrote my own. It didn't take any more effort than the
>equivalent code would have in WebBroker/WebSnap, plus I was able to
expose
>all the properties I needed (even on a character-by-character level, when
>necessary) for complete control.

Just like I do with WebSnap. See what I mean?
Yes.
Quote
>I don't see that, but I could be missing a post. Aside from that - server
>controls allow *more* flexibility than WebBroker/WebSnap. How? You can
write
>your own.

My point: WebSnap/WebBroker is a powerful, capable technology that has
advantages and disadvantages over ASP.NET.
What a great way to say absolutly nothing <g>.
Let me make a similar point:
My left foot has advantages and disadvantages over my right foot. :-p
--
-Jimmy