473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Data fromone form to another form

Here is my form lap and i want to submit data of this form to another form ("http://www.lapkokcasuals.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.SqlClient
Imports System.IO.IOException
Imports foxtrot.xray.WebRobot
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 UnderGraduation1 As String
Public PostGraduation1 As String
Public Profession1 As String
Public Exp1 As String
'Private articlelist As New System.Collections.Hashtable
Dim wrobot As New foxtrot.xray.WebRobot

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

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 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.Text
Me.UnderGraduation1 = UnderGraduation2.Text
Me.PostGraduation1 = PostGraduation2.Text
Me.Profession1 = Profession2.Text
Me.Exp1 = Exp2.Text

wrobot.LoadPage("http://www.lapkokcasuals.net/jobs/Apply.aspx")
'Get the login form
Dim Apply As foxtrot.xray.Form = wrobot.GetFormByContainsAction("Apply.aspx")
'Username field
Dim post3 As foxtrot.xray.Input.Hidden = Apply.Fields(0)
''Password field
Dim Name3 As foxtrot.xray.Input.Hidden = Apply.Fields(1)
'Submit button
Dim Email3 As foxtrot.xray.Input.Hidden = Apply.Fields(2)

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

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

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

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

Dim UnderGraduation3 As foxtrot.xray.Input.Text = Apply.Fields(7)

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

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

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

Dim Exp3 As foxtrot.xray.Input.TextArea = Apply.Fields(11)
Dim sbmtfield As foxtrot.xray.Input.Submit = Apply.Fields(13)
post3.Value = post1
Name3.Value = Name1
Email3.Value = Email1
phone3.Value = phone1
address3.Value = address1
city3.Value = city1
Reference3.Value = reference1
UnderGraduation3.Value = UnderGraduation1
Graduation3.Value = Graduation1
PostGraduation3.Value = PostGraduation1
Profession3.Value = Profession1
Exp3.Value = Exp1
'Simulate a click on the submit button
sbmtfield.Click()
MsgBox("submitted")
End Sub
End Class
Nov 16 '06 #1
0 1111

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

Similar topics

10
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...
32
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...
2
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...
1
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...
2
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 ...
17
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...
5
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...
4
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...
22
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.