SSRS WebForms ReportViewer cancel button not working - reporting-services

I'm using the Report Viewer control for ASP.NET WebForms. When a report is loading, it shows the loading indicator, with a cancel link. But the problem is, this link doesn't do anything. When I inspect the html, it is an <a> tag with no href. I've seen other examples online that suggest there should be an href with some javascript here.
Does anyone know what I'm missing here? Why is this link not functional for me?
Microsoft.ReportingServices.ReportViewerControl.WebForms version 140.340.80

This ended up being some type of incompatibility with Autofac. I was able to restore the Cancel button functionality by removing the PropertyInjection module from web.config, and doing my Dependency Injection using another means.

Related

How href="#" works?

https://www.rcsb.org/stats/growth/overall
On the above page, the link under "CSV" is shown as https://www.rcsb.org/stats/growth/overall#. When I click it, it will download a CSV file. Could anybody show me how the browser figure out the actual download URL? Thanks.
It's happening with an onclick event in one of these libraries. You'll have to dig through to find out which. I'm using firefox Developer edition. It does a great job showing what event triggers are attached to elements.
Here's some additional info about the library DataTables JS which looks like what this is using: https://datatables.net/extensions/buttons/examples/initialisation/export.html
Example:
'''http://example.com/link/to/file.csv;">Download file!'''

Google Tag Manager fires tags in preview/debug, but not on the live site

I've used GTM numerous times to fire LD-JSON business schema via a custom-html tag with Tag Manager. This time however, I'm running into issues.
The tags fire in the debug/preview mode of GTM, but when I publish it they are not found on the live site. Tag assistant shows no issues with the installation; I should add the custom HTML doesn't appear on the debug/preview, but the tag does fire (per the debugger).
The site in question uses WP-engine, but I've been told that's not likely the issue. If anyone can point me in a direction that would be great.
I posted on the product forums for google: https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/tag-manager/RfxZcqbWrSg/wAWzn98TCwAJ
The issue here was GTM was using the 'document.write' feature for the custom HTML container (which housed the LD-JSON Schema). Removing that feature populated the site where Google could read the schema.
Props to Simo for being a 'sweet dude' for pointing this out.
I also faced one similar issue, and for me it was how google tag manager file was served from the app.
It was being served as
https://www.googletagmanager.com/gtag/.js?id=yourGtmId
instead of
https://www.googletagmanager.com/gtm.js?id=yourGtmId
Although in the preview mode, the correct file was being served somehow!
Just want to mention that I was having this problem also, and being new to adding custom HTML / JavaScript to my website through Google Tag Manager, I was completely oblivious to the fact that you must click the submit button in the top right of one of the main views (Overview, Tags, Triggers, etc.) in order to publish your changes. I was thinking that the save button within the trigger or tag was all that was needed.(Be sure that you are not forgetting this simple step!).

Unable to edit 'URL'. The style sheet must be part of the project

I have been getting this error in Visual Studio 2012 every time I try type an element and the class attribute (i.e. <div class="). It will popup and some times it even crashes Visual Studio if I hit enter too fast.
Is there anyway to get rid of this error while still getting the list of all the CSS classes?
I was having the same problem and a little search brought me to the following page:
http://forums.asp.net/t/1586914.aspx?Unable+to+edit+CSS+file+
In a nutshell: Add a fake parameter to the end of your CDN URL to get rid of your errors. This also makes intellisense work correctly.
Example:
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css?parameter=1" rel="stylesheet">
Visual Studio retrieves intellisense from your css to tell you which classes are available.
You have a reference to that css file but of course don't have edit permission. Looks like a bug to me. Try to remove that reference css file and see if problem go away and file a bug.
Are you using bundling? Maybe you could try to use the cdn feature, like this:
bundleList.Add(new StyleBundle("~/Content/themes/24mx/css", "https://cdnurl/bootstrap.css").Include(
"~/Content/bootstrap.css"
)
);
What this will do is use the cdn in release mode and the local css in debug. So just download that css to have it locally and then it will use the cdn when you publish. Maybe that will help. Ideally you should also use a cdn fallback if it fails:
bundleList.Add(new StyleBundle("~/Content/themes/24mx/css", "https://cdnurl/bootstrap.css"){ CdnFallbackExpression = "javascript expression" }.Include(
"~/Content/bootstrap.css"
)
);
Exactly how to write this expression for a css I haven't really looked into myself.
Can you please check if there is any online refernce to css like
netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css
in your codes. Also please check with a local version of css in that case.
If you change the rel attribute to
<link rel="stylesheet nofollow"...>
This is a work around. From what I can see the problem seems to be that visual studio is trying to adjust the line endings but does not have write permissions. From comments I've found on the web you need to be careful with this as YUI and some versions of IE may not work properly with the nofollow rel value. Personally, I would remove the nofollow before publishing live. A bit of a hassle, but I think it does answer your question as it does avoid the popup box.
Your web pages need to be either under a Web Site or a Web Application project to be able to edit linked style sheets. Here is what you need to do:
1.Tools->Options->Projects and Solutions
2.Check “Always show solution”
3.Right click on the Solution node in the Solution Explorer
4.Choose Add new Web Site or new Web Application project
5.Move your web pages to the new Web Site or Web Application project
Now you should be able to edit the linked style sheets.
Hope this helps

HTML5 Facebook Like Box in Joomla Custom HTML Module

I'm using the HTML5 code for the Like Box on my website: http://new.woodypointcomms.com.au. For some reason the faces part is displaying some people multiple times. Can anyone tell me why this might be happening?
You might try a pre-built module version instead of the direct FB widget. Joomla filters HTML content [depending on your settings] which may cause issues. Also try without caching options [Global Configuration] if you've enabled any.

How to control the target frame of reporting services (SSRS) drill down

I am using SQL 2005 reporting services (SSRS) with the web report viewer control. It is showing the report inside an IFRAME on the web page. If I implement a drill down functionality, by attaching a URL action to a chart elements, the navigation will happen only inside the IFRAME. I know how to set the target frame for navigation on a normal HTML page. But in the report definition (RDL) I can't find any property to select the target frame.
Any solution or workaround?
hmm it appparently didnt post my last reply. You might try adding the rc:LinkTarget querystring parameter to the IFRAME src. I use "&rc:LinkTarget=_blank" on some charts displayed in an IFRAME and they open the full report correctly.
http://msdn.microsoft.com/en-us/magazine/cc188712.aspx
I don't believe that the RDL has that option built in. Try adding it as a connect item and see if they will add it to a future version of SQL Server.
If you override the HTML Render method, and pass some DeviceInfo parameters, you can accomplish this.
Take a look at http://msdn.microsoft.com/en-us/library/ms155395.aspx
There is a LinkTarget property that would handle this.