Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Net.Mail;
- using MPads.Common;
- using MPads.WebPatientPortal.Interfaces;
- using MPads.WebPatientPortal.Presenters;
- using MPads.BusinessLogic.Interfaces;
- using MPads.Components.Interfaces;
- using MPads.DataAccess;
- using MPads.DataAccess.Interfaces;
- using System.Text;
- using System.Diagnostics;
- namespace MPads.WebPatientPortal
- {
- public partial class Default : System.Web.UI.Page, IDefault
- {
- private DefaultPresenter _presenter;
- protected void Page_Load(object sender, EventArgs e)
- {
- _presenter = new DefaultPresenter();
- _presenter.Init(this);
- var fields = Request.QueryString;
- if (fields.Count > 0)
- {
- Trace.Write("Number of fields = " + fields.Count.ToString());
- var passed_patientId = Utilities.GetNvpValue(fields, "patientId");
- var loadInPage = Utilities.GetNvpValue(fields, "loadInPage");
- Trace.Write("Page to load = " + loadInPage);
- Patient cached_patient = (Patient)Session["patient"];
- if (cached_patient.PatientId == new Guid(passed_patientId))
- {
- Trace.Write("Session matched the supplied GUID!");
- JavascriptTest();
- }
- else
- {
- Trace.Write("No Session for this guid!");
- }
- }
- }
- public void LoadContent(string url)
- {
- Page.RegisterStartupScript("myScript", "loadAjaxContent('Login','POST',null); $('#pannel1').hide();$('#pannel2').hide();$('#pannel3').hide();");
- }
- public void JavascriptTest()
- {
- string funcCall = "<script language='javascript'>alert('ALERT !!');</script>";
- ClientScript.RegisterStartupScript(this.GetType(), "JSScript", funcCall);
- }
- public void DisplayMessage(string message)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement