Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to create and submit a form programatically

Reply
Thread Tools

How to create and submit a form programatically

 
 
spamfurnace
Guest
Posts: n/a
 
      05-12-2004
Hi there on this rainy old day,

I have some users logging into an asp.net website. The server the site sits
on allows users to webmail through a common service/component called Horde.
In order to log onto Horde webmail the users have to fill in 5 fields. I
wanted to simplify things for them so they only had to click a button once
logged into the aps.net site.

At the moment i do this by recreating the form on my webform making all the
fields hidden and then pumping values into each of the hidden fields
including a screen scraped session key from Horde via the page onload event.

It works fine but i dont like the implementation. I think its a poor hack.

Instead i want to programmatically create the form (not include hidden form
fields etc in the html) and attach the values for each of the fields to the
form object and then submit it programatically to the Horde service for
validation and logon. And if the logon was valid i also want to launch the
webmail window into a new window (programatically please, i know about html
_blank, etc) but if it fails i want to use my asp.net site to show the error
message.

This should be dead simple but i cant find the docs for it.

TIA

Richard




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert form to submit on load instead of clicking submit button? Network-Man HTML 5 07-07-2012 12:06 PM
submit 1 form to 2 servers or 2 forms to 2 server (1 form each) on 1 submit abansal.itp@gmail.com Javascript 3 06-23-2007 07:29 AM
Forms with multiple submit buttons vs 'form' objects with single 'submit' methods neil.fitzgerald@ic.ac.uk Python 4 04-14-2006 04:58 PM
How to programatically submit a form that uses document.forms[0].submit() Harry Ruby 3 01-12-2006 06:05 AM
submit the form data to the popup window without a submit button jrefactors@hotmail.com HTML 2 01-01-2005 06:07 AM



Advertisments