473,748 Members | 4,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create and submit a form programatically

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 programmaticall y 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 (programaticall y 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


Nov 18 '05 #1
0 1824

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2126
by: dawnunder | last post by:
eg. Someone fills out 3 fields. (There will be more but this is just to give you an idea) 1. Country? 2. State? 3. City I want this script to generate a web page and list the people by
2
4082
by: Nick | last post by:
Loop to create an array from a dynamic form. I'm having trouble with an application, and I'll try to explain it as clearly as possible: 1. I have a form with two fields, say Apples and Oranges. The user selects from a drop down menu, between 1-10 of each and clicks submit. The resulting page will display a NEW form, with rows and a list of fields for the amount of each items selected.
2
2259
by: S Wickes | last post by:
I've become suspicious that the submit button does not count as an onChange event in some browsers. Here's why. I have a form with many textareas. After you click submit, I only update the database with those textareas which were changed. Thus, each textarea has an onChange event which marks that box as changed. BUT! Some users report that, if they don't take their cursor out of
2
1690
by: jw56578 | last post by:
if i have an Input type Image how am i suppose to programatically submit it through JS. code: <INPUT type="text" onkeyup="javascript:if(event.keyCode==13){btnClick.click();}"> <INPUT name="btnClick" type="Image" value="Button" onclick="javascript:alert('button was clicked');">
7
3276
by: sea | last post by:
Is it a good idea to programatically create a primary key? For example in a table called names, I have the following fields, (1) firstname (2)lastname (3) ID - will it be ok to create a primary key using for example the first 2 letters of the first name and the last 2 letters of the last name AFTER the user enters the first and last names into a form? Maybe have an invisible field on the form called ID that is linked to the id field in...
1
1553
by: Hai Nguyen | last post by:
Hi everyone I'm building a web application which create a lot of HTML textboxes (not datagrid) to get input from user. Being assosiate with a textboxe is a requiredfield validator. The code is below. I don't know why after hitting submit button, it does show me the error such as "*" symbol next to the box. After I filled out those textboxes again and hit button to process the page. It does not do anything, look like still waiting for an...
1
1874
by: John | last post by:
Hi, I need to enter data into a database and the only method I have to enter that data is through a web form. Is there a way I can write a csharp program that will get the form, fill it out with the data I provide, and then submit it? Is this easy or not so easy? What classes do I use to get the form, fill it out, and then submit it? Any pseudo code would be great.
7
6762
by: The Mad Ape | last post by:
Hi I have code to programatically create a label. It works but when I try to call a sub to create a tooltip it does not work. I do not get an error so have no idea what it wrong. Please review my code and tell me how to fix it. Thanks The Mad Ape
4
5511
by: j1dopeman | last post by:
Hi, I'd like to use a button to save and then submit a form. I can set the onlick of the button to mahButton_click or submit, but I can't figure out how to do both. It looks like c# can't call a form's submit. I've found how to post programatically, but I need to use the form's target attribute so that the response goes into another frame, and I can't figure out how to do that programatically.
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.