PDA

Click to See Complete Forum and Search --> : C#/.Net/VS2005 - How can I write text onto the form of a webpage through


gjon
Nov 3rd, 2007, 01:10 PM
C#/.Net/VS2005 - How can I write text onto the form of a webpage through the use of a windows form that I can write?

My idea is that I would like the text I write into my windows form to paste itself into the form of a browser window.

But I was thinking that this form could really shortcut a lot of the unnecessary actions of opening a browser and going to that particular page that has the form.

I am thinking that if I already know the address of that particular web page, that I could have the text on my form submitted directly to that forms server via a submit button on my form. My little form would save me the trouble of opening a browser to post to certain web page.

I am thinking that the web page would have a form id and that that would help to find the form for pasting this text into, err maybe I should say for using during the submittal so that the server knows where the text came from or where the text is suppose to be in the form for saving purposes.

Any explanation on how this can be done or ideas, links, would be appreciated.

Thanks in advance.

RobDog888
Nov 3rd, 2007, 03:16 PM
Although its VB.NET its just needing conversion to C#.

http://vbforums.com/showthread.php?t=416275

gjon
Nov 3rd, 2007, 03:59 PM
Thank you so much for the info. I will give it a go, never converted anything from one language to another. ;o

RobDog888
Nov 3rd, 2007, 04:02 PM
There are free conversion utilities out there so you dont have to do it yourself.

Heres a couple:
http://www.tangiblesoftwaresolutions.com/index.htm

http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx

gjon
Nov 3rd, 2007, 05:08 PM
Thank you so much for that second link. That is absolutely amazing!

gjon
Nov 3rd, 2007, 07:05 PM
Maybe it would be simpler to do it with an aspx page. Via a web page and it's form that I can create. After looking at the other samples, I believe they are far too complex for me to digest in a reasonable amount of time. It could be that this idea is too far ahead of me. So I was thinking about another route.

<form action="newthread.php" method="post" name="vbform" onsubmit="return validatePost(this, this.subject.value, 20, 0);" onreset="vB_RESET(this);">



Ok, so to post in place of a page that has this as it's form action. Wouldn't I just take this same action and apply it to my aspx page on my personal form? well except that I would need to add the full address where it would say newthread.php right?

RobDog888
Nov 4th, 2007, 12:27 AM
Yes, if the newthread page takes arguments that you can pass.