|
صفحة: 345
"http : // www . w 3 . org / TR / xhtml 1 / DTD / xhtml 1-transitional . dtd" > קריאת קובץ XML לתוך עצם מטיפוס ds . ReadXml ( "d : \\ asp \\ tblExample . xml" , XmlReadMode . ReadSchema ); // DataSet { הצגת תוכן הטבלה string allUsersString = " < table > " ; Response . Write ( " < h 1 > My List h 1 > " ); // work with data in computer memory { public void ListOfUsers () // allUsersString += " < td > " + dr ] "age" [ . ToString () + " td > " ; allUsersString += " < tr >< td > " + dr ] "ID" [ . ToString () + " td >< td > " + dr ] "userName" [ . ToString () + " td > " ; { foreach ( DataRow dr in ds . Tables ] "tblExample" [ . Rows ) td > tr > " ; allUsersString += " < tr >< td > ID td >< td > userName td >< td > age td >< td > password td >< td > gender allUsersString += " td > tr > " ; allUsersString += "Male" ; else allUsersString += "Female" ; if (( bool ) dr ] "gender" [) allUsersString += " < td > " ; allUsersString += " < td > " + dr ] "password" [ . ToString () + " td > " ; Response . Write ( allUsersString ); allUsersString += " table > " ; }
|
|