Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make a server side button

Status
Not open for further replies.

frogggg

Programmer
Jan 17, 2002
182
US
How do you make a server side button - in other words a button that will call a server side event handler - in vbscript?
I'm trying to create a form on the fly, and I need to make a button with an onClick that will be handled server side. There is a dtc that does this, but I need to create it myself.
I hope that was clear, does anyone know how to do this?
 
froggg,

I guess the fact that you hit a "Submit" button sends it to the server to your next ASP page that does a server side script. What do you want your form to do?


fengshui_1998
 
I'm using VI.
The page is an asp page that includes the object model, so there is automatically a form on the page called thisform and all processing of the form is done on the same page, so I cannot put my own forms on it. I initially created the page using dtc's for the fields. I had a button dtc which, in the onClick server side event handler, wrote the field values to the db on the same page, as is required by the object model.
Now I want to do some validation i.e. if a field is blank, redraw the field, and if not, redraw it with the already entered value in it. This means recreating the form on the fly. I am able to do all that in asp. The only thing left to recreate is the button that will call this sub again so I can write the newly, hopefully properly filled in form to the database.
Is that clearer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top