Nobody forces you to specify runat server for any form or control.
"Eric Newton" <eric@ensoft-software.com> wrote in message
news:ev9VDeM8DHA.1804@TK2MSFTNGP12.phx.gbl...
> Personally, I agree with you.
>
> There are times where I designed asp forms that posted back to themselves,
> just like Asp.net where they'd detect IsPostBack and process form
variables
> accordingly.
>
> However, there is always the OTHER way, whereas you collect information
and
> pass that info on to ANOTHER form for processing... SEARCHING comes to
> mind...
>
> For example, when you want to search based on Mfr Part Number, you'd
submit
> search parameters to a form that specialized in displaying and sorting via
> MANUFACTURERS, another scenario would be to search by Stocks, stock symbol
> vs company name... the form "posted" to would specialize on helping you
find
> either the stock SYMBOL you're looking for, or a company name, and THEN
the
> stock symbol, which probably would post back to an original "quote
display"
> form that specialized only in displaying quotes.
>
> the asp.net postback mentality has been both nice AND problematic
>
> so I agree with "anon" in that it was a screwup only to force EVERYBODY to
> run through a "new" model, and ONLY that "new" model
>
>
> --
> Eric Newton
> eric.at.ensoft-software.com
>
www.ensoft-software.com > C#/ASP.net Solutions developer
>
> "anon" <anon@hotmail.com> wrote in message
> news:%2394R5ZJ6DHA.2480@TK2MSFTNGP12.phx.gbl...
> > Yes, but setting the form action attribute is the BEST way to pass
> > information page to page.
> >
> > <asp:Button runat="server" PostTargetUrl="page2.aspx" />
> > The Attribute: PostTargetUrl="page2.aspx"
> >
> > It's fastest way and most simpliest way for form data next to like the
> > querystring.
> > It's definately K.I.S.S. type of architecture.
> > It's got the best performance on an enterprise level or any level for
that
> > matter
> > And it works, plain and simple.
> >
> > All of those other ways are messy hacks that have drawbacks one way or
> > another and can makes your code far far more complicated than what it
> should
> > be.
> >
> > All the other languages can do it this way, except .NET and because of
> that,
> > it's a pain in the a** to get real life questionairre form data into a
> > database.
> >
> > The fact that MS is addressing this issue head on is a testament to this
> > major major screwup
> >
> > Now, let's get back to the ORIGINAL question... is PostTargetUrl going
to
> be
> > in the other HTML controls? That's what's important here and let's not
> SCREW
> > it up like MS did with 1.0 and 1.1
> >
> >
> >
> >
> > "Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
> > news:ugeKxCF6DHA.504@TK2MSFTNGP11.phx.gbl...
> > > Setting the form action attribute just isn't the ASP.NET way.
> > >
> > > Of course there are a number of ways to pass values from one page to
> > > another, such as using the querystring, cookies, session,
> > > context, saving to a temporary table in the database between each
page,
> > etc.
> > > You'll have to decide which technique is best for your application.
> > > Here are several good articles on the subject to help you decide.
> > >
> >
>
http://msdn.microsoft.com/msdnmag/issues/03/04/ASPNETUserState/default.aspx > > >
> > >
http://www.aspalliance.com/kenc/passval.aspx > > >
> > >
http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=600 > > >
> > >
http://www.dotnetbips.com/displayarticle.aspx?id=79 > > >
> > > Here's one nice, simple way to pass values from one page to another:
> > >
> > > 'Add data to the context object before transferring
> > > Context.Items("myParameter") = x
> > > Server.Transfer("WebForm2.aspx")
> > >
> > > Then, in WebForm2.aspx:
> > >
> > > 'Grab data from the context property
> > > Dim x as Integer = CType(Context.Items("myParameter"),Integer)
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD, MVP
> > >
http://Steve.Orr.net > > > Hire top-notch developers at
http://www.able-consulting.com > > >
> > >
> > >
> > > "anon" <anon@hotmail.com> wrote in message
> > > news:u2oi0$E6DHA.3664@tk2msftngp13.phx.gbl...
> > > > Post Forwarding question......
> > > >
> > > > For this control below,
> > > >
> > > > <asp:Button runat="server" PostTargetUrl="page2.aspx" />
> > > >
> > > > The Attribute: PostTargetUrl="page2.aspx"
> > > >
> > > > Is this PostTargetUrl Attribute going to be available in the <a> and
> > Html
> > > > Controls as well as opposed to just the <asp:Button> control?
> > > >
> > > > Lots of other controls, HTML controls, <a>, <img>, etc, would like
to
> > used
> > > > to post forward....
> > > >
> > > >
> > >
> > >
> >
> >
>
>