Export data to Excel in Webmatrix - sql-server

I want to be able to export the results of a query into excel by someone pressing a button that says export to excel. The following picture shows an example:
I have looked at this WEBSITE which does what I would like to have on my website. The problem is that I have only worked in .cshtml pages and I am really unfamiliar with the process of where to put the codes on that website or what page extensions they should be. Can someone please guide me?

I've written some articles about doing this within the Web Pages framework:
http://www.mikesdotnetting.com/Article/207/Exporting-The-Razor-WebGrid-To-Excel-Using-OleDb
http://www.mikesdotnetting.com/Article/204/Exporting-The-Razor-WebGrid-To-Excel

Related

Import data from Excel to website using selenium python

I've a project, importing data from Excel sheet to a webpage call rpag.com and I'm totally new to selenium automation, could anyone please help me.
Inside the webpage, there are 4steps
In step1 once we click, it will load a second/child page(within the page).
Under child page theres a table in that table we've searchable boxes, I want my Excel data to get there.
Note: webpage is in angularjs
Thanks for your help, hope someone could help me

how to make selection of input file in ADF mobile framework

i am making the MAF application for practice but in this application am giving the functionality of upload and download files from server and but input file component is not giving in the ORACLE MAF and am successfully done the upload button but i am not know how to add input select file component in the MAF. please
help me .
thank you
please answer this question...
For download, you can use this tag into an amx page :
<amx:goLink text="Download" id="bla" url="http://www.yourservlet.com/download"/>
For the upload functionality, I am not sure if that works somehow. Try to follow up this question of the Oracle Community to find out more about the upload functionality.
Hope to be helpful.
Thanks.

How to embed excel worksheet in a webpage

I am working on a web application and one of the features I want to add to the application is working with excel within the web app...
the generic idea is basicly : there is an excel file sitting on a server and it can be displayed on the webpage.. people can edit the file and save it back to the server.. (it will have all of the functionality of Excel itself..)..
is there a way to embedd an excel file / any excel plugin exist? or maybe any alternative to excel that will give me the same functionality?
Thank you very much!
*Important - I want to be able to do that on a localhost without a thirdparty like skydrive/google docs or etc... i want their functionality but all within a local host.. (you can edit the sheet, post a save request and it will update the file residing in the server..)
You can use Google Docs. This article explains pretty well, at least, gives
a general idea.

Weird Content of Facebook share/like button preview from angular app

I have an issue with share/like button from Angular app. I finally made it working correctly with links but share/like preview if completely wrong. I tried XFBML.parse(), switching to html 5 mode, etc.
There are two complete enigmas:
1. I got "Given URL is not allowed by the Application configuration..." despite adding all possible variants to fb app setting.
When share preview appear - it has "Angular", but I never added it anywhere.
Here is the link
Would be grateful for any ideas...
Thx
The Facebook Scraper only looks at the HTML code your server delivers, it does not execute any JavaScript.
So if you want to share different articles, you need an individual URL for each article, that delivers the relevant meta data when requested from the server.
You can find some more explanation and hints on how to implement this in this article, http://www.michaelbromley.co.uk/blog/171/enable-rich-social-sharing-in-your-angularjs-app

Which service to create a screenshot of a html page on web app and save it?

I am creating a web app(run on linux, PHP). In this application, after users log in, they will able to generate a postcard with their name on it.
Since the page of postcard is html(generated by cakephp), I want to take a screenshot of the central part of that page and save as an image.
Please recommend me any tool/plugin in order to do so. Free service/plugin is prefered.
http://code.google.com/p/wkhtmltopdf/
I have used the pdf part and it works great, there is a wkhtmltoimage download there that should help you with what you asking.

Resources