webbrowser SetAttribute

Y

Young

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
 
Y

Young

Hi again,

Please ignore the extra "c" from the code.

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

thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top