回覆列表
  • 1 # zkamr38729

    內碼表下下面方法 protected string getPP(string pp) { string[] a = pp.Split(";"); string x = string.Empty; foreach (string k in a) { x += ""; } return x; } datalist裡用個Literal如: 增加VB方法: Protected Function getPP(ByVal pp As String) Dim a As Array a = pp.Split(";") Dim x As String x = String.Empty Dim i As Int32 For i = 0 To a.Length - 1 x = x + "" Next Return x End Function

  • 2 # 藍風24

    為DataList物件提供項繫結事件ItemBinding, 在每一項繫結時執行;

    在繫結時判斷路徑, 若圖片檔案不存在, 則Img物件Visiable設定為false;

    這樣就可以了.

  • 中秋節和大豐收的關聯?
  • SP姜維的武將臺詞?