the web page is a public page and it is not created by me. there are about 20 textboxes and I want to fill them with specific data with one click. any idea about how to do this ?
ps. I worked with asp.net and c# years back and now I don’t remember much. but a hint should be enough, although if you guide completely I would be appreciate.
ps2. it seems that I should write the code into a windows application I guess.
2
Answers
If you can settle for javascript/typescript, https://testcafe.io/ might achieve your goal.
Well, it depends. Often to display data, I will drop in say a repeater, or say a datalist control.
I even use the wizard to create the control with the fields, and then DELETE say the data source that the wizard created.
So, say we have this markup:
No, not 20 fields, but if I used the wizard to select all 20 columns during creating, I would at least not have to type out the above – but only "tweak" it after using the wizard to create that repeater, or datalist.
Ok, so now the code to fill the above.
It looks like this:
And we now see this:
On the other hand, if I use this SQL:
Then I now get this:
So, as you can see, it no more work to display 1, or 20 of that "thing" I repeated. And I could say have the repeating go across the page, and I now have a card-view like system.
You can of course also just write code, and shove the values into textboxes. So without say a repeater control, and just he text boxes, then this would work:
so you have a lot of options here. And for sure, one will often introduce a model framework (like older datasets, or now EF (entity framework). This gives you a model in code, and thus often you don’t have remember the field names, and you get/have a abstracted layer between you and the database.
And most of the data repeating controls are happy to use EF data, or even direct data tables like above shows.