PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/DesktopModules/AgapeUK/QuickRender/ViewQuickRender.ascx.cs

https://github.com/mailekah/AgapeConnect1
C# | 31 lines | 30 code | 1 blank | 0 comment | 1 complexity | 1265b63e1046cfcf5b4c6b9531d48a63 MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.IO;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using DotNetNuke;
  9. namespace DotNetNuke.Modules.AgapeUK.QuickRender
  10. {
  11. public partial class ViewQuickRender : DotNetNuke.Entities.Modules.PortalModuleBase
  12. {
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. if (!Page.IsPostBack)
  16. {
  17. try
  18. {
  19. string thisText = "";
  20. thisText = (string)Settings["ThisText"];
  21. phMain.Controls.Add(new LiteralControl(thisText));
  22. }
  23. catch (Exception ex)
  24. {
  25. phMain.Controls.Add(new LiteralControl("<p>You have yet to add anything to this, go to this module's settings.</p>"));
  26. }
  27. }
  28. }
  29. }
  30. }