@ {
The codebehind (categories.aspx.cs) (" Title ")="Test";
String shape="Version";
}
@ {
The codebehind (categories.aspx.cs) (" Title ")="Test";
String shape="Version";
}
CodePudding user response:
You can, or written in MVCCodePudding user response:
That could you tell me how to achieve specific change, my side F12 when see value="https://bbs.csdn.net/topics/Version", rather than the value of the Version: 1.3.3.7CodePudding user response:
Correct a problem, then you are to continue the discussion, asp.net MVC core is not equal to the net core.CodePudding user response:
Can reflect and then obtain advice but very troublesome in the codebehind (categories.aspx.cs) directly read dataCodePudding user response:
Don't reflect, more can write a method, with the switch input the name of the attribute returns the value of corresponding properties, or use a dictionary to save attribute names and values, defect is inflexible, and also tedious to write,