Click here to Skip to main content
15,890,947 members
Home / Discussions / C#
   

C#

 
Questionget page name Pin
TAREQ F ABUZUHRI4-Aug-07 9:27
TAREQ F ABUZUHRI4-Aug-07 9:27 
AnswerRe: get page name Pin
Luc Pattyn4-Aug-07 9:41
sitebuilderLuc Pattyn4-Aug-07 9:41 
GeneralRe: get page name Pin
Urs Enzler4-Aug-07 23:19
Urs Enzler4-Aug-07 23:19 
AnswerRe: get page name Pin
Hessam Jalali4-Aug-07 23:37
Hessam Jalali4-Aug-07 23:37 
GeneralRe: get page name Pin
TAREQ F ABUZUHRI5-Aug-07 4:58
TAREQ F ABUZUHRI5-Aug-07 4:58 
AnswerRe: get page name Pin
Hessam Jalali5-Aug-07 5:33
Hessam Jalali5-Aug-07 5:33 
QuestionHow to submit form? Pin
VahagnSC4-Aug-07 8:43
VahagnSC4-Aug-07 8:43 
AnswerRe: How to submit form? Pin
Hessam Jalali4-Aug-07 21:54
Hessam Jalali4-Aug-07 21:54 
I'm not sure understand what you means but if you filled some fields and want to click on a link or button to send it

it would be like this:

this.webBrowser.Document.All["submit"].InvokeMember("click");

submit is the button name and click is the method

however sometimes it does not work correctly. for that you can use unmanaged HTMLDocument

<br />
<br />
object domElement = this.webBrowser.Document.All["submit"].DomElement;<br />
mshtml.IHTMLElement hElemnt = (mshtml.IHTMLElement)domElement;<br />
hElemnt.click();<br />
<br />



to read a field you can use id of it (just like name or id of a button) and use GetAttribute() method

<br />
            foreach (HtmlElement he in this.webBrowser.Document.All["verb[]"].All)<br />
                MessageBox.Show(he.GetAttribute("value"));<br />


to write a field you can use id of it (just like name or id of a button) and use SetAttribute() method

for text areas you must use InnerText property instead of GetAttribute() and SetAttribute() Method.


I hope the post going to be useful

good luck
QuestionChanges table in database and transfer to dataset Pin
sgeorgije4-Aug-07 7:20
sgeorgije4-Aug-07 7:20 
AnswerRe: Changes table in database and transfer to dataset Pin
ArunkumarSundaravelu6-Aug-07 5:27
ArunkumarSundaravelu6-Aug-07 5:27 
QuestionCasting type T Pin
User 66584-Aug-07 7:19
User 66584-Aug-07 7:19 
AnswerRe: Casting type T Pin
Scott Dorman4-Aug-07 9:00
professionalScott Dorman4-Aug-07 9:00 
GeneralRe: Casting type T Pin
User 66585-Aug-07 1:37
User 66585-Aug-07 1:37 
GeneralRe: Casting type T Pin
Scott Dorman5-Aug-07 3:43
professionalScott Dorman5-Aug-07 3:43 
AnswerRe: Casting type T Pin
Urs Enzler4-Aug-07 23:23
Urs Enzler4-Aug-07 23:23 
JokeRe: Casting type T Pin
PIEBALDconsult7-Aug-07 12:06
mvePIEBALDconsult7-Aug-07 12:06 
GeneralRe: Casting type T Pin
User 66587-Aug-07 16:05
User 66587-Aug-07 16:05 
Questioncheckboxlist datasource Pin
Gamzun4-Aug-07 7:03
Gamzun4-Aug-07 7:03 
QuestionRotation of rectanlge at an anlgle Pin
SharjeelHKhan4-Aug-07 6:33
SharjeelHKhan4-Aug-07 6:33 
AnswerRe: Rotation of rectanlge at an anlgle Pin
Luc Pattyn4-Aug-07 6:55
sitebuilderLuc Pattyn4-Aug-07 6:55 
GeneralRe: Rotation of rectanlge at an anlgle Pin
Paul Conrad4-Aug-07 7:21
professionalPaul Conrad4-Aug-07 7:21 
QuestionAn OPP Question Pin
Majid Shahabfar4-Aug-07 4:42
Majid Shahabfar4-Aug-07 4:42 
AnswerRe: An OPP Question Pin
Guffa4-Aug-07 4:57
Guffa4-Aug-07 4:57 
GeneralRe: An OPP Question Pin
Majid Shahabfar4-Aug-07 5:09
Majid Shahabfar4-Aug-07 5:09 
AnswerRe: An OPP Question Pin
Guffa6-Aug-07 15:27
Guffa6-Aug-07 15:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.