1

how to insert text into textarea using .net web browser ? i've tried many ways, but none of them worked

here's my try

HtmlElement element4 = WebBrowser1.Document.GetElementById("description");
element4.SetAttribute("value", "text");

but as i said none of them worked

1 Answer 1

1

Something like:

element4.InnerText = "text";

Assuming GetElementById worked and you have a valid reference in element4, this should do it.

Sign up to request clarification or add additional context in comments.

1 Comment

just tried it out and got this error: Property is not supported on this type of HtmlElement. here's textarea code: <textarea maxlength="255" id="description" name="description" cols="20" rows="2" role="textbox" multiline="true" class="FormElement"></textarea>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.