all
Business
Careers and Education
IT
Apache Web Server
Content Management Systems
IIS / Microsoft Internet Information Services
Mac OS X
Microsoft Windows
Networking
Unix / Linux / BSD
Development
.NET Framework
ASP / Active Server Pages
ASP.NET
Algorithms / Advanced Math
C / C++
C# / C Sharp
ColdFusion
DB2 Database
Flash / Actionscript
HTML / CSS
Java
JavaScript / Ajax / DHTML
Microsoft Access / VBA
Microsoft SQL Server
Mobile Development
MySQL Database
Oracle Database
PHP
Perl
PostgreSQL Database
Python
Ruby / Ruby on Rails
Software Development
Visual Basic .NET
Visual Basic 4 / 5 / 6
XAML / WPF / Silverlight
XML
sign up
login
new member:
Register
member login:
Email Address:
Password:
lost password?
bytes
>
c# / c sharp
>
c# / c sharp questions
Web Browser Control
bhaveshkotwani
Join Date: Feb 2010
Posts: 2
#
1
: Feb 10 '10
Hi
I am using the following code to programmatically fill my form
webbrowser.document.getelementbyid("txtbox").setat tribute("value", "hi")
I am stuck at a point where i need to set the values for select box, check box and radio buttons.
Any help is appreciated.
thanks in advance.
tlhintoq
E
C
Join Date: Mar 2008
Location: Arizona, USA
Posts: 3,476
#
2
: Feb 10 '10
re: Web Browser Control
have ya tried the ".checked" property? That's what I would use on a windows form
Expand
|
Select
|
Wrap
|
Line Numbers
myCheckbox.Checked = true;
I've never done it for a webform but I would guess something that looks like
Expand
|
Select
|
Wrap
|
Line Numbers
webbrowser.document.getelementbyid("mycheckbox").setattribute("checked", true)
// or
webbrowser.document.getelementbyid("mycheckbox").setattribute("checked", "true")
bhaveshkotwani
Join Date: Feb 2010
Posts: 2
#
3
: Feb 10 '10
re: Web Browser Control
The SetAttribute accepts two parameters and both should be string. The above code doesnt works.
Thanks for you help. I am still looking for a solution.
Tags
c sharp
,
check box
,
radio button.
,
select box
,
web browser control
«
previous question
|
next question
»
Similar topics
App configured as 2.0, throws event implying running as 1.1 in .net form browser control, works fine in IE
(
ASP.NET answers
)
Call javascript function from browser control?
(
ASP.NET answers
)
Applying new proxy settings to a browser control
(
C# / C Sharp answers
)
Using Web Browser control (AxShDocVw) to display app-generated HTML
(
Visual Basic .NET answers
)
Web Browser Control
(
Visual Basic .NET answers
)
Microsoft Web Browser COM control in VB .Net
(
Visual Basic .NET answers
)
web browser control
(
ASP.NET answers
)
Textbox, web browser control, and Unicode (got cutoff)
(
Microsoft Access / VBA answers
)
Web browser control, Unicode
(
Microsoft Access / VBA answers
)
Question about using MS IE Web Browser Control in .NET Forms
(
.NET Framework answers
)
More channels
Business
IT
Development
Copyright 1995-2010 BYTES. All rights Reserved
About Bytes
|
Help
Latest Expert Topics
|
Popular Tags
Sitemap
|
C# / C Sharp Answers Sitemap
|
C# / C Sharp Insights Sitemap