Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 21st, 2007, 10:16 AM
Registered User
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Finding an un-named button inside a webpage

I'm newbie with c#.
I have an application which creates a "Microsoft Web Browser" object on a form, then loading a webpage.
On webpage completion, i want to click a button in the webpage via the application (automated).
The problem is that the button does not have a name, only the name of the class representing it on the server side..
I have the complete XML Dom document for the Webpage, which is full of buttons and scripts.
The description of the button on the html source :

<td ><input type="button" value="äöâ ðúåðéí " Class="RegularButton" Width="70" onclick="frmsubmit('0')" ></td>

Remark : the "äöâ ðúåðéí " is a forigner language..
Can anyone give me an idea how to find the button and click it?

Reply With Quote
  #2 (permalink)  
Old July 23rd, 2007, 11:29 AM
Authorized User
Join Date: Nov 2006
Location: Valparaiso, IN, USA.
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post


Rather than 'click' the button, why don't you call the action that clicking the button would call?

What you don't know can hurt you!
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image stretch or reduced to fit inside button remya1000 General .NET 5 October 23rd, 2008 03:15 PM
Finding User form fields on ASP webpage Ahrenl Excel VBA 0 July 4th, 2006 09:54 AM
Adding code to a button inside a custom Control. Roinka ASP.NET 2.0 Basics 5 April 23rd, 2006 01:03 PM
Redirect inside a Server Control Button Andrew_S ASP.NET 2.0 Basics 1 April 19th, 2006 01:43 PM
Named arguments Bob Bedell C# 2 March 19th, 2006 09:25 PM

All times are GMT -4. The time now is 01:46 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.