PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/Senparc.Weixin.MP.Sample.WebForms/Senparc.Weixin.MP.Sample.WebForms/Default.aspx.cs

https://github.com/mjhuangzk/WeiXinMPSDK
C# | 20 lines | 19 code | 1 blank | 0 comment | 0 complexity | 65d640206fd42ff669d80366c875d8f8 MD5 | raw file
Possible License(s): BSD-2-Clause, BSD-3-Clause
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. namespace Senparc.Weixin.MP.Sample.WebForms
  9. {
  10. public partial class _Default : System.Web.UI.Page
  11. {
  12. public string DllVersion { get; set; }
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. var fileVersionInfo = FileVersionInfo.GetVersionInfo(Server.MapPath("~/bin/Senparc.Weixin.MP.dll"));
  16. DllVersion = string.Format("{0}.{1}", fileVersionInfo.FileMajorPart, fileVersionInfo.FileMinorPart);
  17. }
  18. }
  19. }