Google Identity Toolkit's generated templates for your website downloads as blank - google-identity-toolkit

trying to implement google identity toolkit by following the link: https://developers.google.com/identity/toolkit/web/configure-service, but I see that "generated templates for your website" available from identity toolkit page downloads as blank document. Why are they blank, am I doing some thing wrong here. Below is the screen print of identity toolkit api page.

You must click the "save" button before the templates can be generated.

Related

Internal Site search using ASP.NET C# Web Form

I need to search all my pages using one single text box and one single button to my ASP.NET web site form. I searched in google not find any use full code or links.

Navigation to google.com and search a string in an aspx page and show the whole process to the user in the browser

Is it possible to navigation to any website like google.com using Webbrowser or any other .net technology like silverlight, html5 etc. in a webpage and programmatically enter in textbox "stackoverflow" and then click search button and then get the results back to save in the database. But most importantly show the whole process of navigation and textbox filling and button click and results to the user in the browser window and webpage.
It can be easily done by putting a webbrowser control in a windows form in windows .net assembly so that user also sees it. But I was wondering if this can be done in a web based way. User must be able to see everything in the browser page in the same way it happens in a windows form with the webbrowser control.
I want to develop a web-based software that does web automation and also show it to the users as it is happening without user downloading any exe etc. Just web based.
Actually it can be done to some extend. But to show the entire process to the user, its another issue. How do you want to share the screen ?
there are a lot of 'browser automation' tools like watin or selinium, where you can 'make' the browser execute actions which are pre-defined.
Again where do you want to 'execute' these all ? In clients browser or on server ? If you do in server, you can share the screen via some streaming API's to the client via flash or silverlight.

SSRS report viewer not working with asp.net mvc routing

I'm trying to use SSRS reporting with an Asp.net MVC website with local reports.
I tried everything that is mentioned in this post, but I keep getting a hidden div with the following message instead:
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add to the system.web/httpHandlers section of the web.config file, or add to the system.webServer/handlers section for Internet Information Services 7 or later.
The handlers are correctly added to the web config and reports will work if I navigate to the aspx page directly (by , but since view engine is not involved I cannot use any of razor helpers, this problem only occurs when I'm using routing.
I have RouteExistingFiles = false and ignored the following routes:
{resource}.axd/{*pathInfo};
{resource}.aspx/{*pathInfo};
{resource}.ascx/{*pathInfo};
and disabled the BlockViewHandler by removing it from the webconfig.
I'm using Microsoft.ReportViewer for visual studio 2012 (ver 11.0.0.0)
Edit
There is this post from Scot Hanselman about using razor views with ASPX master pages, I'm doing the exact reverse, using aspx user control with Razor layout, but this Microsoft report viewer does not work with this approach.
Because of your comments, I've found the reason because it's not working.
I have a User control that uses the report viewer, and a aspx page that uses that user control to show the reports. if I navigate directly to the report like: myhost/Views/Shared/ReportViewer.aspx it works, if I use routing like: myhost/report/myreport it wont work
When you navigate directly to the page, it's rendered by the "traditional" web forms infrasctructure, so all the elements needed by the report viewer (view state, script manager and son on) are available, and the report viewer works fine.
When you navigate using routing, form the comments:
yes creating a route that makes the reportviewer to be handled by an MVC controller which returns a razor view that renders report user control using Html.RenderPartial("ReportControl")
In this case, you're rendering a traditional web form as if it was a razor page. When you do this, all the infrastructure needed by the report viewer control is missing (particularly the view state), and thus it doesn't work.
So, you need to show the report viewer page as a traditional web form. You can open it in a new window/tab by using javascript. If you still want to integrate it in an existing MVC page, the only solution is to use an <iframe> and render the report inside it.
Another solution to integrate it directly in an MVC page would be to render the report using the Reporting Services web service, and sending the output to the browser (for example as a .jpg image or a PDF doc). But, whichever format you choose, it will lack the report viewer interactitvity.

Silverlight redirects to ASP.NET Page with ReportViewer Control

I have this situation in my SL4 application: We create some User Accounts in the Silverlight APP, now we want to generate printable reports for the generated accounts which we will hand out to the users. The idea is to save the information from the created account to a database, redirect from the Silverlight App to an ASP.NET page passing the ID of the stored account information and display the data in a report viewer control in asp.net from where it can be printed and exported.
Is this possible or am I completely wrong? How can I redirect from silverlight to the asp.net page and how can I pass the ID?
You can use Window.Navigate to do the same. For example,
// Navigate to the web page
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(”http://www.xyz.com/report.aspx”));
//Open in a separate window
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(”http://www.xyz.com/report.aspx”), “_blank”);
You can pass the id using the query-string.
See this SO question that discusses other options: redirect to another page from Silverlight
I have a different way of showing reports in a Silverlight application. I make use of the Acrobat Reader plugin to do the displaying for me. It does require a different method depending on whether your application is running inside or outside the browser (I check if the application is running inside the browser and change the means of display accordingly). If running inside the browser, I overlay the application with an IFrame, as I describe in this article: http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-6.aspx. Otherwise, I use the WebBrowser control. I have a control which does this all for you in the source code that accompanies my book, which is downloadable from the Apress website here: http://www.apress.com/9781430272076/.
NOTE: I copied this answer from my previous response to a similar question here: Show pdf inside silverlight application. PDF to XAML

Customizing a facebook app

Is it possible to create a Facebook tab application which a user can install to their page, which allows the passing of a customization value.
It is possible to create a link which will load the application on the user's page, and pass an app_data value to your app:
http://developers.facebook.com/docs/appsonfacebook/pagetabs/
In addition, your application will also receive a string parameter called app_data as part of signed_request if an app_data parameter was set in the original query string in the URL your tab is loaded on. For the Shop Now link above, that could look like this: "http://www.facebook.com/YourPage?v=app_1234567890&app_data=any_string_here". You can use that to customize the content you render if you control the generation of the link.
But is it possible to distribute a personalized link (i.e. including an id=xyz query-string parameter) to an app which, when installed, adds an app tab to the users page,and will include this personalization value in the app_data (either in the GET or POST data), and thus enable the page to be personalized by parsing out the value (as illustrated here Facebook webforms app get app_data querystring)
In your application settings, you can set a "Page Tab Edit URL" :
The URL to the Edit link displayed on your application's profile box.
An admin of a Facebook Page that has added your application can follow
the URL to edit the application settings for the Page.
Source
When your app is added to a page, and a visitor is coming, you'll get a Signed Request (Posted to your app) containing the page ID, more infos here.
You just have to store custom infos for each page ID you get.

Resources