Hi.

Is there any way to develop app (WinForms) which will fill out textboxes of web app(Asp.net) with standard data. For example I have in my web application 10 textboxes which have to be filled with cureent date. I do not want to fill every single textbox. What functionality do I want?
- My WinForms application after clicking button (or hot_key event) should fill out 10 text_boxes in browser window with current date.

Sample code or tips and step-by-step solution would be appreciated :)

thanks in advance
q

If you are talking about using an application to talk to a browser then you could probably use win32 interop and SendMessage to do that but it would be complicated and you would probably need to do it differently for every different browser.

If you are using the WebBrowser control then you could do somthing like below:

HtmlElement element = webBrowser1.Document.GetElementById("myTextFieldID");
element.InnerText = DateTime.Now.ToString();

Why don't you just initialise the values on the web side with <%=DateTime.Now.ToString("dd/MM/yyyy") %> ?

Why don't you just initialise the values on the web side with <%=DateTime.Now.ToString("dd/MM/yyyy") %> ?

because I do not have access to source code. This is not my web apllication - I am only using it...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.