Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2004, 12:33 AM
Authorized User
 
Join Date: Feb 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default Exexuting a function at submiting the form

can i execute the asp function or procedures at submiting
the form such that is it posible
<form action="<% = test()%>" method="post"

some help require


 
Old July 12th, 2004, 02:30 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Quote:
quote:Originally posted by knight
 can i execute the asp function or procedures at submiting
the form such that is it posible
<form action="<% = test()%>" method="post"

some help require
Dear knight
 suppose your page.asp is look like this


<form name = "new" action= "page.asp" methode = post>

contents of form

<input type = submit name = send>
</form>


amd at the beginnig of page

<%if request("send") <>"" then
test()

else
%>




Cheers (:_:)

Numan
--------------------------------------------------
Love is the most beautiful thing of this world. So do this !
 
Old July 12th, 2004, 08:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Knight,

What is that function about to do? Is that going to be Javascript/VBScript? Can you explain more on that?

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old July 13th, 2004, 12:14 PM
Authorized User
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by knight
 can i execute the asp function or procedures at submiting
the form such that is it posible
<form action="<% = test()%>" method="post"

some help require
U cannot run ASP function in that way.
In that way u can run javascript/vbscript functions.

If u realy want to run ASP function at submiting form, that u can use saperate page in iframe, and pass the argument to that page to run functions.

Burhan

Every thing is possible, if time constraint not included.

 
Old July 14th, 2004, 12:54 AM
Authorized User
 
Join Date: Feb 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default

i want to run add edit or delete function written in asp
at form submit

 
Old July 14th, 2004, 05:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

When you submit a form the FORM values are submitted to the server and unless you request them from server you won't be able to use them further. So OnSubmit one would always land in a page, where the submitted FORM values are requested from server using REQUEST object and used further for ADD/Edit/Delete.

I am not sure, if you are looking for running an SQL procedure or a function that interacts with database and does the add/delete/edit job without passing the control of flow to the submitting page.

Is that what you are looking for?


_________________________
- Vijay G
Strive for Perfection
 
Old July 29th, 2004, 04:55 AM
Authorized User
 
Join Date: Dec 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
No need to worry regarding that.
if u want to execute a ASP function on Submit, then obviously a page will be requested from the server.

I will tell u an alternative way to achieve this.
Just implement a general button on the form.
Onclick of this button u have to go to Remote Scripting where
the page remains as it is and the function that u want to execute is written in one more asp page that is called by the remote applet.

This button is going to call that add,delete,modify etc functions.

If u want to try remote script ( a bit Knowledge is needed )
then visit http://msdn.microsoft.com and give keywords as
Synchronous Remote script or ASynchronous Remote script

You will get a neat Biography of Remoting.

Cheers


Mn Karthik
 
Old August 4th, 2004, 11:54 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how can i call asp function on button click in the form containing different from objects. kindly send me the code.
faysal






Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum function in Access form ayazhoda Access VBA 2 July 26th, 2007 04:26 PM
problem with submiting and checkboxes Paula222 Classic ASP Basics 3 October 30th, 2006 02:39 PM
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
date comparison function for a form jackson_jl Access 2 March 9th, 2005 01:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.