<% @ Page language = "c #" autoeventwireup = "true"%>
Void Page_Load (Object Sender, Eventargs E) {
int INTSTR;
String Str;
CHAR Charstr;
IF (! ispostback) {
Label_1.text = "Please Input Number String in Textbox!";
}
Else {
INTSTR = INT32.PARSE (Input_1.Value); // String type conversion to integer
Str = INTSTR.TOSTRING (); // Integer converted into a string type
Charstr = STR [1]; / / // assign a second character in the string to character variables
Response.write (charstr);
}
}
Script>