Skip to main content

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frmfrom sub-sites itself to the root site list.

So I am trying to store the sub-sites url when saving values using default newform.aspxnewform.aspx on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom web-partWebPart but don't want this approach. Using webpartWebPart I get the previous visited URL but in event receiver value is null.

belowBelow is the code for getting URL:

HttpContext.Current.Request.UrlReferrer.AbsolutePath

Any solutions would be helpful here. Thanks!

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list.

So I am trying to store the sub-sites url when saving values using default newform.aspx on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom web-part but don't want this approach. Using webpart I get the previous visited URL but in event receiver value is null.

below is the code for getting URL:

HttpContext.Current.Request.UrlReferrer.AbsolutePath

Any solutions would be helpful here. Thanks!

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values from sub-sites itself to the root site list.

So I am trying to store the sub-sites url when saving values using default newform.aspx on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom WebPart but don't want this approach. Using WebPart I get the previous visited URL but in event receiver value is null.

Below is the code for getting URL:

HttpContext.Current.Request.UrlReferrer.AbsolutePath

Any solutions would be helpful here. Thanks!

added 97 characters in body
Source Link
Hardik Kothari
  • 996
  • 1
  • 11
  • 23

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list.

So I am trying to store the sub-sites url when saving values using default newform.aspx on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom web-part but don't want this approach. Using webpart I get the previous visited URL but in event receiver value is null.

below is the code for getting URL:

HttpContext.Current.Request.UrlReferrer.AbsolutePath

Any solutions would be helpful here. Thanks!

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list.

So I am trying to store the sub-sites url when saving values using default newform.aspx on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom web-part but don't want this approach. Using webpart I get the previous visited URL but in event receiver value is null.

Any solutions would be helpful here. Thanks!

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list.

So I am trying to store the sub-sites url when saving values using default newform.aspx on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom web-part but don't want this approach. Using webpart I get the previous visited URL but in event receiver value is null.

below is the code for getting URL:

HttpContext.Current.Request.UrlReferrer.AbsolutePath

Any solutions would be helpful here. Thanks!

Source Link
Hardik Kothari
  • 996
  • 1
  • 11
  • 23

How to get absolute previous url in event receiver?

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list.

So I am trying to store the sub-sites url when saving values using default newform.aspx on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom web-part but don't want this approach. Using webpart I get the previous visited URL but in event receiver value is null.

Any solutions would be helpful here. Thanks!