|
1, try {}There is one in itreturnStatement, then follow thistryAfterfinally {}incodeWill it be executed, when will it be executed, inreturnBefore or after? Will be executed, will bereturnExecuted before. 2, swtichWhether it can be effectivebyteon, whether it can act inlongon, whether it can act inStringon? It cannot be used instringon 3. Whether the array is present or notlength()This method? StringDo you havelength()This method? Arrays don't have a length() method, there islengthattributes,stringYeslength() method. 4. How many ways can I send a request to a server? Two types:postway, submit data to the server,getRequest data from the server. 5, <%# %>and<% %>What's the difference? 1.<%# %>is data binding, <%%>is data output 2.<%# %>will be treated as oneLiteralControls, While<%%>is written directly to the output stream 3.<%#%>atDataBindoutput data,While<%%>There is no such limitation. 6, string strTmp = "abcdefgso-and-so"; int i= System.Text.Encoding.Default.GetBytes(strTmp). Length; int j= strTmp.Length; After the above code is executed? i=13,j=10 7. Describe itC #Can the implementation process of the indexer only be indexed based on numbers? Other types can be indexed 8, Please program to traverse all TextBox controls on the page and assign it a value to string.Empty? foreach (System.Windows.Forms.Control control in this. Controls) { if (control is System.Windows.Forms.TextBox) { System.Windows.Forms.TextBox tb = (System.Windows.Forms.TextBox)control ; tb. Text = String.Empty ; } }
|