how do I format an .asp page into a single page 
Author Message
 how do I format an .asp page into a single page

I am modifing some exsisting pages that I didn't create.  The pages are
using several forms that call data from the database.

We start with a search form that returns results into radiobuttons.  You
then select the button and it returns results from the sql.

My question.  I am a beginer, I normally create this using several
pages.  The pages however are done in a single .asp page with actions.

How do I accomplish this?  I am having trouble following the page
structure.  Can someone point me to the right place.

Thanks

--
David Anderson
Project sciLINKS
http://www.*-*-*.com/
1840 Wilson Blvd
Arlington, VA 22201
(703) 312-9297
(703) 526-9754 FAX



Tue, 23 Mar 2004 11:32:44 GMT  
 how do I format an .asp page into a single page
I think what you're asking is to be able to submit information from a form
to the same page.  If this is what you're looking for they way I do it and
have seen from other ASP programmers is to submit a hidden field from within
the FORM and then check for the value of that field from your ASP.

The code for a ASP file named FORM.ASP might look something like this.

<%
    If request.form("MESSAGE")="True" THEN
        Response.Write("You have pushed the Submit Button")
    Else
%>
    <FORM ACTION="FORM.ASP" METHOD="POST">
        <INPUT TYPE="SUBMIT" Value = "Submit">
        <INPUT TYPE="HIDDEN" NAME="Message" VALUE="True">
    </FORM>
<%
    End If
%>

Hope this helps you out.


Quote:
> I am modifing some exsisting pages that I didn't create.  The pages are
> using several forms that call data from the database.

> We start with a search form that returns results into radiobuttons.  You
> then select the button and it returns results from the sql.

> My question.  I am a beginer, I normally create this using several
> pages.  The pages however are done in a single .asp page with actions.

> How do I accomplish this?  I am having trouble following the page
> structure.  Can someone point me to the right place.

> Thanks

> --
> David Anderson
> Project sciLINKS
> http://www.scilinks.org
> 1840 Wilson Blvd
> Arlington, VA 22201
> (703) 312-9297
> (703) 526-9754 FAX



Sun, 28 Mar 2004 05:13:40 GMT  
 how do I format an .asp page into a single page
That seems rather useless.  The submit button is included in the
Request.Form collection, so, with your example in mind, you'd just have to
modify it like this:

<%
     If request.form("SUBMIT")="Submit" THEN
         Response.Write("You have pushed the Submit Button")
    Else
 %>
     <FORM ACTION="FORM.ASP" METHOD="POST">
         <INPUT TYPE="SUBMIT" Value = "Submit">
     </FORM>
 <%
     End If
 %>

No need for a hidden "MESSAGE" field.

Scott Schluer
Web/ASP Developer


Quote:
> I think what you're asking is to be able to submit information from a form
> to the same page.  If this is what you're looking for they way I do it and
> have seen from other ASP programmers is to submit a hidden field from
within
> the FORM and then check for the value of that field from your ASP.

> The code for a ASP file named FORM.ASP might look something like this.

> <%
>     If request.form("MESSAGE")="True" THEN
>         Response.Write("You have pushed the Submit Button")
>     Else
> %>
>     <FORM ACTION="FORM.ASP" METHOD="POST">
>         <INPUT TYPE="SUBMIT" Value = "Submit">
>         <INPUT TYPE="HIDDEN" NAME="Message" VALUE="True">
>     </FORM>
> <%
>     End If
> %>

> Hope this helps you out.



> > I am modifing some exsisting pages that I didn't create.  The pages are
> > using several forms that call data from the database.

> > We start with a search form that returns results into radiobuttons.  You
> > then select the button and it returns results from the sql.

> > My question.  I am a beginer, I normally create this using several
> > pages.  The pages however are done in a single .asp page with actions.

> > How do I accomplish this?  I am having trouble following the page
> > structure.  Can someone point me to the right place.

> > Thanks

> > --
> > David Anderson
> > Project sciLINKS
> > http://www.scilinks.org
> > 1840 Wilson Blvd
> > Arlington, VA 22201
> > (703) 312-9297
> > (703) 526-9754 FAX



Sun, 28 Mar 2004 11:37:47 GMT  
 how do I format an .asp page into a single page

That would be possible, enless you dont have a Submit button :)

I rarely use one, Mostly I have a button, but it's called 'Buttun', and not;
'submit'.
This one calls clientside validation script for the form, and the script
will submit the form. Thusly, the SUBMIT will not be present in the
Request.Form collection.

Jim


Quote:
> That seems rather useless.  The submit button is included in the
> Request.Form collection, so, with your example in mind, you'd just have to
> modify it like this:

> <%
>      If request.form("SUBMIT")="Submit" THEN
>          Response.Write("You have pushed the Submit Button")
>     Else
>  %>
>      <FORM ACTION="FORM.ASP" METHOD="POST">
>          <INPUT TYPE="SUBMIT" Value = "Submit">
>      </FORM>
>  <%
>      End If
>  %>

> No need for a hidden "MESSAGE" field.

> Scott Schluer
> Web/ASP Developer



> > I think what you're asking is to be able to submit information from a
form
> > to the same page.  If this is what you're looking for they way I do it
and
> > have seen from other ASP programmers is to submit a hidden field from
> within
> > the FORM and then check for the value of that field from your ASP.

> > The code for a ASP file named FORM.ASP might look something like this.

> > <%
> >     If request.form("MESSAGE")="True" THEN
> >         Response.Write("You have pushed the Submit Button")
> >     Else
> > %>
> >     <FORM ACTION="FORM.ASP" METHOD="POST">
> >         <INPUT TYPE="SUBMIT" Value = "Submit">
> >         <INPUT TYPE="HIDDEN" NAME="Message" VALUE="True">
> >     </FORM>
> > <%
> >     End If
> > %>

> > Hope this helps you out.



> > > I am modifing some exsisting pages that I didn't create.  The pages
are
> > > using several forms that call data from the database.

> > > We start with a search form that returns results into radiobuttons.
You
> > > then select the button and it returns results from the sql.

> > > My question.  I am a beginer, I normally create this using several
> > > pages.  The pages however are done in a single .asp page with actions.

> > > How do I accomplish this?  I am having trouble following the page
> > > structure.  Can someone point me to the right place.

> > > Thanks

> > > --
> > > David Anderson
> > > Project sciLINKS
> > > http://www.scilinks.org
> > > 1840 Wilson Blvd
> > > Arlington, VA 22201
> > > (703) 312-9297
> > > (703) 526-9754 FAX



Sun, 28 Mar 2004 14:00:41 GMT  
 how do I format an .asp page into a single page
Actually, that's very true and to be honest I don't know why I've never done
it this way.  I usually catch myself doing un-necessary coding but thanks, I
learned something new too!

Sean


Quote:
> That seems rather useless.  The submit button is included in the
> Request.Form collection, so, with your example in mind, you'd just have to
> modify it like this:

> <%
>      If request.form("SUBMIT")="Submit" THEN
>          Response.Write("You have pushed the Submit Button")
>     Else
>  %>
>      <FORM ACTION="FORM.ASP" METHOD="POST">
>          <INPUT TYPE="SUBMIT" Value = "Submit">
>      </FORM>
>  <%
>      End If
>  %>

> No need for a hidden "MESSAGE" field.

> Scott Schluer
> Web/ASP Developer



> > I think what you're asking is to be able to submit information from a
form
> > to the same page.  If this is what you're looking for they way I do it
and
> > have seen from other ASP programmers is to submit a hidden field from
> within
> > the FORM and then check for the value of that field from your ASP.

> > The code for a ASP file named FORM.ASP might look something like this.

> > <%
> >     If request.form("MESSAGE")="True" THEN
> >         Response.Write("You have pushed the Submit Button")
> >     Else
> > %>
> >     <FORM ACTION="FORM.ASP" METHOD="POST">
> >         <INPUT TYPE="SUBMIT" Value = "Submit">
> >         <INPUT TYPE="HIDDEN" NAME="Message" VALUE="True">
> >     </FORM>
> > <%
> >     End If
> > %>

> > Hope this helps you out.



> > > I am modifing some exsisting pages that I didn't create.  The pages
are
> > > using several forms that call data from the database.

> > > We start with a search form that returns results into radiobuttons.
You
> > > then select the button and it returns results from the sql.

> > > My question.  I am a beginer, I normally create this using several
> > > pages.  The pages however are done in a single .asp page with actions.

> > > How do I accomplish this?  I am having trouble following the page
> > > structure.  Can someone point me to the right place.

> > > Thanks

> > > --
> > > David Anderson
> > > Project sciLINKS
> > > http://www.scilinks.org
> > > 1840 Wilson Blvd
> > > Arlington, VA 22201
> > > (703) 312-9297
> > > (703) 526-9754 FAX



Sun, 28 Mar 2004 21:03:09 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Merge Two Single Page PS documents into one Single Page PS Document

2. Extract a single page from a multi-page TIFF to a file

3. Convert Multiple Page PS to Single Pages?

4. Multiple page copies on a single page?

5. Producing single-page tiffs from milti-page ps

6. Problem:Many compressed pages printing on a single page

7. Multiple pages to a single page?

8. web page that post from a single page

9. Scaling a single page onto multiple pages?

10. Question:getting four pages on a single page.

11. ASP.NET page formatting

12. How to PRINT All pages of HTML Report from ans ASP Page

 

 
Powered by phpBB® Forum Software