| |

VerySource

 Forgot password?
 Register
Search
View: 694|Reply: 5

Very simple control problem

[Copy link]

3

Threads

26

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 Kenya

Post time: 2020-1-19 18:40:01
| Show all posts |Read mode
There is an HTML page. Now I change it to an .aspx page. There is an HTML control on the page: <INPUT style = "FONT-SIZE: 9pt" maxLength = "18" name = "sfzh">. I want to know how to get Operate this control named sfzh in the background, that is, the .cs file?
Reply

Use magic Report

0

Threads

58

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 United States

Post time: 2020-1-26 23:18:01
| Show all posts
: <INPUT style = "FONT-SIZE: 9pt" maxLength = "18" name = "sfzh" id = "sfzh" runat = "
server ">

Backstage: this.sfzh.
Reply

Use magic Report

2

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-27 09:00:02
| Show all posts
response.write ("<script> document.all.sfzh ......... </ script>")
Reply

Use magic Report

3

Threads

26

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

 Author| Post time: 2020-1-27 12:09:02
| Show all posts
After writing this: <INPUT style = "FONT-SIZE: 9pt" maxLength = "18" name = "sfzh" id = "sfzh" runat = "
server ">
This point doesn't come out sfzh
Reply

Use magic Report

3

Threads

26

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

 Author| Post time: 2020-1-27 13:27:01
| Show all posts
Thanks everyone, solved
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-27 16:18:01
| Show all posts
Landlord, you just need to add aspx in front of the control,

In the .cs file, this.sfzh is OK,
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list