473,799 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data fromone form to another form

2 New Member
Here is my form lap and i want to submit data of this form to another form ("http://www.lapkokcasua ls.net/jobs/Apply.aspx") without going their how can i do it ihave written these code below data is submitted but where it is goin i dont know.please help me and give some reponses.

Imports System.Object
'Imports System.IO
Imports System.Data
Imports System.Data.Sql Client
Imports System.IO.IOExc eption
Imports foxtrot.xray.We bRobot
Imports System.Type
Imports System.Text
Imports System.Drawing
Imports foxtrot.xray
Imports System.Xml
Imports System.Windows. Forms.TextBox



Public Class lap
Inherits System.Windows. Forms.Form
Public post1 As String
Public Name1 As String
Public Email1 As String
Public phone1 As String
Public address1 As String
Public city1 As String
Public reference1 As String
Public Graduation1 As String
Public UnderGraduation 1 As String
Public PostGraduation1 As String
Public Profession1 As String
Public Exp1 As String
'Private articlelist As New System.Collecti ons.Hashtable
Dim wrobot As New foxtrot.xray.We bRobot

Private Sub lap_Disposed(By Val sender As Object, ByVal e As System.EventArg s) Handles Me.Disposed
wrobot.Dispose( )
End Sub
Private Sub lap_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
wrobot.AJAX = True
End Sub

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles sbmtfield.Click
'Load the main digg page
Me.post1 = post2.Text
Me.Name1 = Name2.Text
Me.Email1 = Email2.Text
Me.phone1 = phone2.Text
Me.address1 = address2.Text
Me.city1 = city2.Text
Me.reference1 = Reference2.Text
Me.Graduation1 = Graduation2.Tex t
Me.UnderGraduat ion1 = UnderGraduation 2.Text
Me.PostGraduati on1 = PostGraduation2 .Text
Me.Profession1 = Profession2.Tex t
Me.Exp1 = Exp2.Text

wrobot.LoadPage ("http://www.lapkokcasua ls.net/jobs/Apply.aspx")
'Get the login form
Dim Apply As foxtrot.xray.Fo rm = wrobot.GetFormB yContainsAction ("Apply.aspx ")
'Username field
Dim post3 As foxtrot.xray.In put.Hidden = Apply.Fields(0)
''Password field
Dim Name3 As foxtrot.xray.In put.Hidden = Apply.Fields(1)
'Submit button
Dim Email3 As foxtrot.xray.In put.Hidden = Apply.Fields(2)

Dim phone3 As foxtrot.xray.In put.Hidden = Apply.Fields(3)

Dim address3 As foxtrot.xray.In put.Text = Apply.Fields(4)

Dim city3 As foxtrot.xray.In put.TextArea = Apply.Fields(5)

Dim Reference3 As foxtrot.xray.In put.Text = Apply.Fields(6)

Dim UnderGraduation 3 As foxtrot.xray.In put.Text = Apply.Fields(7)

Dim Graduation3 As foxtrot.xray.In put.Text = Apply.Fields(8)

Dim PostGraduation3 As foxtrot.xray.In put.TextArea = Apply.Fields(9)

Dim Profession3 As foxtrot.xray.In put.TextArea = Apply.Fields(10 )

Dim Exp3 As foxtrot.xray.In put.TextArea = Apply.Fields(11 )
Dim sbmtfield As foxtrot.xray.In put.Submit = Apply.Fields(13 )
post3.Value = post1
Name3.Value = Name1
Email3.Value = Email1
phone3.Value = phone1
address3.Value = address1
city3.Value = city1
Reference3.Valu e = reference1
UnderGraduation 3.Value = UnderGraduation 1
Graduation3.Val ue = Graduation1
PostGraduation3 .Value = PostGraduation1
Profession3.Val ue = Profession1
Exp3.Value = Exp1
'Simulate a click on the submit button
sbmtfield.Click ()
MsgBox("submitt ed")
End Sub
End Class
Nov 16 '06 #1
0 1131

Sign in to post your reply or Sign up for a free account.

Similar topics

10
3708
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one firstname/lastname/telephone box - when the user clicks the add button, I read the values from the form fields and record them into a hidden text input field. This part works because during debugging, I have converted the <input type=hidden> into a <input type=text>...
32
3231
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being lost when they move to a new record. This seems to be the case when there are multiple users. When there is a single user using it, we don't seem to have that problem. It seems that we had this problem when we first converted from an MDB back end...
2
4141
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5 Groups - call them A to E. I'd like to generate a further automatic reference number based on something like Group/Unique ID so when I create a new record Access creates the Unique ID & I then enter in the group and then Access combines the two...
1
3551
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary key) ss#
2
12564
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser <form action="display.aspx" method="post" target="_blank"> will submit the form data and open display.asp in a new browser
17
3865
by: stathis gotsis | last post by:
Hello everyone, I am tying to come up with an elegant way to process some input data that come from a form. When the user hits the 'Submit' button, i want the form to appear again with the already entered valid data filled in and prompt the user to re-enter the non-valid data. If all data is valid, i will forward to an other .php page which enters the data into a database. I tried to do this in the following way: the form always hits...
5
2732
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or more documents to share/use during a meeting presentation. What would be the most efficient way to approach this? This is the logic I'm currently considering: Page 1: Meeting Information input with link to a document upload page (this page...
4
2261
by: Cerebral Believer | last post by:
Hi I need help! Forgive me I am a PHP newbie. I have a small script that enables me to send a form from an HTML page. I want to use the HTML formatted form because the design of my website is complex, and I don't want to have to mess around with formatting a page using HTML within php. So basically the "action" of the HTML page sends the form to "ProcReg.php". This is the code: <?php /* Script name: ProcReg.php
22
3094
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is created / destroyed at user request). I can check form != null to prevent incorrect access. But, the form could disappear immediately after the check, before the method is run. Or someone could click 'close' when it's in the middle of an update. ...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
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
10249
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
10219
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
10025
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...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6804
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
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.