Doing The Impossible

  • Thread starter Thread starter Greg Smith
  • Start date Start date
Hi Greg,

Thanks very much for your feedback.

Yes, because what you want to do is not a normal issue, we should use some
UI-irrespective service technical to handle it, such as: Remoting and Web
Service.

Also, Web Browser gives you a Windows Form control UI but exposes IE DOM
for your application.

Can you tell me you eventually choose which option for your project? I will
point some useful information and resource for you.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Yes, because what you want to do is not a normal issue, we should use some
UI-irrespective service technical to handle it, such as: Remoting and Web
Service.

Also, Web Browser gives you a Windows Form control UI but exposes IE DOM
for your application.

Really, does this mean the controls on the web page are reachable from my
app?

I don't know enough about any of the options to do an evaluation. Here is
the essence of what I want to do.

My form has a Web browser control named "wb". The page requesting input has
a text box called "preqqant1". I would like to copy from my form's textBox
"txtQty1" to the corresponding tb on the Web page. In a perfect world
something like this would work:

wb.preqqan1.Text = txtQty.Text

But of course it isn't a perfect world.

Thanks for all your help.
 
Hi Greg,

Thanks very much for your feedback.

Ok, I think you choose the Web Browser control.

Yes, through Web Browser control, you can not access the server side
asp.net control(Because web server control's life is only on the server.),
but you can access with the rendered html elements.(I think this can also
meet your need)

The html is not out-of-order language, it exposes a model for developer to
access it. This is called Microsoft Document Object Model(DOM). So you can
use DOM and Web Browser to control the html behavior.

For a little Walkthrough, please refer to:
"Walkthrough: Accessing the DHTML DOM from C#"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechar
t/html/vsgrfwalkthroughaccessingdhtmldomfromc.asp

Because Web Browser is actually a COM control, we use COM interop to use it
in .Net. Where is not much articles talk about this, so for deep
information, you should use "Object Viewer" and MSDN's "Internet
Development SDK" to discover yourself.

Hope this help you.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Greg ,

Does my reply make sense to you? Do you still have any concern on this
issue?

Please feel free to feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Does my reply make sense to you? Do you still have any concern on this
issue?

Please feel free to feedback. Thanks

The example you pointed me to was very interesting but only dealt with the
Navigate method. I really need to put data into a text box. While I was
wondering around (off
http://msdn.microsoft.com/library/d...html/reference/ifaces/document2/document2.asp) I
found the:


IHTMLDataTransfer::getData Method

It looks like this could copy data from the clipboard. Am I correct in
this? Do you know of any code examples?

Thanks again fro all your help.
 
Hi Greg,

Changing the content of html in web link is hard while it is still in web
browser control. My suggestion for you is to save that file locally first.
And then change the content of it. After that, reload the html file into
web browser control.

Or you may try the tech on MSHTML Editing. Please refer to
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/editing/
mshtmleditor.asp

Thanks.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Greg,

Does my colleague Yan-Hong's reply make sense to you? Do you still have any
concern on this issue?

Please feel free to post, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top