Personal understanding about and usage ...

xiaoxiao2021-03-06  40

First, the usage of previous ASPs of <% =%> is also practical in ASP.NET, <% #%> is the usage launched in ASP.NET, and this usage is not used in the ASP.

For example: As in Form.vb in the background, I define a variable (to be overall) public istg_x as string = "abc" then I can call this variable in any place in front of from.aspx ... . var xx = <% = iSTG_XO%> Alter Example, if I have a DataTable in the back desk, I now want to take out the variable of this DATATABLE in the front desk ... Before.cs (C #) string message = string.empty; public getMessage () {for ( INT LINT_ROW = 0; LINT_ROW The usage is relatively simple ..... If I have a DataSet ... then I can call any of this DataSet in this Dataset ... Usage: Text = '<% # DataBinder.eval (Container.DataItem, "DataSet Field Name" %> '

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

New Post(0)