473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

webbrowser SetAttribute

Hi

I want to be able to put customer's name automatically in a text
box.However, it can not
reference the textbox.
Is frame has something to do with my problem?
nullreferenceException was unhandled
Object reference not set to an instance of an object.

Web source
<input type="text" name="cust.name" maxlength="16" value=""
title="Customer Name">

click button
WebBrowser1.Document.GetElementById("ccust.name"). SetAttribute("Value",
custname.Text)

thanks,
Young

Sep 23 '06 #1
1 7227
Hi again,

Please ignore the extra "c" from the code.

WebBrowser1.Document.GetElementById("cust.name").S etAttribute("Value",
custname.Text)

thanks again
Young wrote:
Hi

I want to be able to put customer's name automatically in a text
box.However, it can not
reference the textbox.
Is frame has something to do with my problem?
nullreferenceException was unhandled
Object reference not set to an instance of an object.

Web source
<input type="text" name="cust.name" maxlength="16" value=""
title="Customer Name">

click button
WebBrowser1.Document.GetElementById("ccust.name"). SetAttribute("Value",
custname.Text)

thanks,
Young
Sep 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: timmy_dale12 | last post by:
Hello , im a java programmer whos gotten tangled up in some javascripts. Im really stuck on this one can , can aybody explain this to me. I have a javscript which is to clone a table row and...
1
by: Mike Evans | last post by:
In a windows application we have a webbrowser control and we want to change the selected item of a select or combobox inside the webbrowser control. We know how to change the value of a textbox...
21
by: James Black | last post by:
I am curious if there is a benefit to set attributes directly, in my javascript, or to use setAttribute. For example, I have this: var input = document.createElementNS(xhtmlNS, 'input');...
2
by: ColliersWNC | last post by:
I know there is probably a simple solution to this, but I haven't figured it out yet or seen it else where. Imagine you had a simple web page that looked like the following: <html> <input...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
by: phonzie | last post by:
First off, I'm using C# A WebBrowser Control This is all inside the webbrowser I'm trying to fill a text field with a variable (The variable works fine, everything checks out, but the text...
2
by: maminx | last post by:
hello all, i have this script below var td = document.createElement('td'); var theInput = document.createElement('input'); theInput.setAttribute('type', 'text');...
3
by: TedTrippin | last post by:
Hi, Background - I've create a windows application in VS and added a WebBrowser component and all works well. I'm now trying to do this programmatically. My application now listens on a socket...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.