Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2008, 05:21 AM
Registered User
 
Join Date: Sep 2008
Location: Colombo, Western, Sri Lanka.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load Data

Hi guys,

I have a simple C# form with 2 textboxes(Name, Address) and a "Load" command button, now what ever I type in the name and address textboxes in the form should be reflected in the myHomepage.html page which also has 2 similar (name, address) input textboxes, which means when I press the "Load" button in the C# form what ever in the name and address textboxes should load the currently opened myHomepage.hmtl page (name, address) input boxes. What C# code should I tryout??

Can any one help me on this matter!!!

 
Old September 8th, 2008, 05:29 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is your code in the WinForm saving the data to the DB?
Is your code in the Web App loading from the DB?

Do you know how to save/load to a DB?
Have you Googled it?
What problems did/have you got?

Remember you need to refresh the web page once the data has changed.

Rob
http://cantgrokwontgrok.blogspot.com
 
Old September 9th, 2008, 03:27 AM
Registered User
 
Join Date: Sep 2008
Location: Colombo, Western, Sri Lanka.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I do not need to save it to a DB. Rather I type my text on those textboxes in the form and simply by pressing the button I need those details to be loaded to the relevant textboxes on the web page (which I would be opening and keeping it for my convenience).

 
Old September 9th, 2008, 03:53 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

The issue is that a windows form, and a web page cannot communicate directly, especially if that web page is open on another computer from the one the windows form is on.

So basically there has to be some 'middle-man' where the windows form can store this data, and the web page can read it from - this could be a database, or a simple text file.

/- Sam Judson : Wrox Technical Editor -/
 
Old September 9th, 2008, 06:25 AM
Registered User
 
Join Date: Sep 2008
Location: Colombo, Western, Sri Lanka.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The windows form and the web page is in the same computer.

 
Old September 9th, 2008, 06:47 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

You're missing the point, Windows and Web are a MAJOR application boundary. You cannot send from one to the other.

As Sam rightly said, you need a "middle man" in between the two. Such as a file or database.

Rob
http://cantgrokwontgrok.blogspot.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
Page won't load data in IE rinventive PHP How-To 8 June 23rd, 2006 10:03 PM
load data from combobox VB6 Perseus Beginning VB 6 0 July 30th, 2005 04:40 AM
trying to load db data into data grid itsajourney Beginning VB 6 2 June 7th, 2005 12:05 PM
Problems with Load Data Infile Marden Lee MySQL 1 February 16th, 2005 08:33 AM
how to load data into a table? hosefo81 PHP Databases 3 November 3rd, 2003 02:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.