Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
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 July 21st, 2007, 10:16 AM
Registered User
Join Date: Jul 2007
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?

Old July 23rd, 2007, 11:29 AM
Authorized User
Join Date: Nov 2006
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!

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

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