[Original] Analysis of Digital Analysis of "Study" and "ID Card" (2)

xiaoxiao2021-03-06  18

Abstract: The analysis of the ID card number is similar to the analysis of the students.

text:

Here, I think the ID number is 18.

Add a Label control on the page, a TextBox control, a Button control, a Litral control. The Text property of the Label control is set to "Issue:", the Literal control will display the information in the ID number. The key is still in the Click () event of the Button control.

Button control Click () event:

String

Strid

=

TXTID.TEXT;

IF

(

!

TXTID.Visible)

{Txtid.visible = true;}

Try

{String Stryear = Strid.Substring (6, 4); // Year String strMonth = Strid.Substring (10, 2); // month string strday = strid.substring (12, 2); // da Da Liiteral1.text = "Your birthday is:" stryear "year" strmonth "month" strDay "}

Catch

{Response.write ("program has an error!");

Finally

{}

Display renderings:

转载请注明原文地址:https://www.9cbs.com/read-42429.html

New Post(0)