Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Figured out the issue. It's a difference between a secure website and one that's not, really the difference was *http***s** and <em>http</em>, yes the <em>s</em> is what was causing the problem. The reason being is that I rebind the DataSource on <code>OnInit</code> so that when the link is clicked the event gets created and fired. This was a solution someone <a href="https://stackoverflow.com/a/7603828/13064">suggested</a> on a <a href="https://stackoverflow.com/q/7603700/13064">question</a> I asked some time ago.</p> <p>What I was doing was this:</p> <pre><code>protected override void OnInit(EventArgs e) { base.OnInit(e); // if being redirected from another page, remove the search attributes // so it doesn't load the Search Grid view if (Page.Request.UrlReferrer != Page.Request.Url) { Session[UNMGeneralConstants.SearchAttributes] = null; } UserManagementBO userManagementBO = new UserManagementBO(); dsUserInSites = userManagementBO.GetSitesNameForUser(new Guid(Session[SessionVariables.Ses_UserId].ToString())); DataSet dsSearchResults2 = Session[UNMGeneralConstants.SearchAttributes] as DataSet; if (dsSearchResults2 != null &amp;&amp; dsSearchResults2.Tables.Count != 0) { gvExistingPatientsSearch.DataSource = dsSearchResults2; gvExistingPatientsSearch.DataBind(); } else { gvExistingPatientsSearch.DataSource = null; gvExistingPatientsSearch.DataBind(); } } </code></pre> <p>it was the <code>if (Page.Request.UrlReferrer != Page.Request.Url)</code> statement that was causing a problem since the UrlReferrer had <code>https</code> and the Url did not. I've switched the <code>if</code> statement to <code>if(Page.Request.UrlReferrer.LocalPath != Page.Request.Url.LocalPath)</code> instead. It seems to work after testing it. </p> <p>Hopefully this is the final solution and I won't have anymore issues. Suggestions and comments are greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload