How To Grab A Snapshot Of A Webpage
Mar 12, 2010when i request a webpage eg : http://www.google.comit gives me a snapshot of google which would be 100 * 100 image..
View 16 Replieswhen i request a webpage eg : http://www.google.comit gives me a snapshot of google which would be 100 * 100 image..
View 16 RepliesI would need to take a snapshot of my webpage in asp.net c#, i have used the
WebsiteThumbnailImage which is a part of the System.Windows.Forms; i am able to get the snapshot of the webpage in my
Local system but unable to get it in the Devlopment Server
I develop small application using javascript, using this I can draw on the canvas.I want to know, How get snapshot of my canvas and send it another one, using javascript or any other server side language.
View 3 RepliesCan someone give me some working code that will take a snapshot a website giving the url or is there any free controls out there?
View 1 RepliesEvery 5 minutes automatic take screenshot capture & Save To Database Using WebPages
Is it possible or not?
With reference to example: [URL]
I downloaded it and worked fine. However, I wish you push it further adding the following features:
1- Download button: where after the bitmap is captured and published into the image control, a "Download" button can be clicked to force the client browser open the "Save As File" dialog box in order to enable the user download the image into his/her client machine after choosing his/her suitable directory path.
2- Email button + Textbox to type the target email: where after te bitmap is captured and published into the image control, a "Email" button can be clicked in order to send the captured image to any email the user had specified in the textbox.
Condition:
- Captured image shall remain as bitmap in memory. It shouldn't be saved in the server.
- Email shall be sent with the image placed in the BODY and ATTACHMENT.
I have the following jQuery code working as it is (passing the value of 'test") but what I want to do is to pass the value of the label control (lblNames). I'm using the label control to collect the uploaded file names.
jQuery:
$(document).ready(function () {
$("#btnUpload").click(function () {
$("#Notes", top.document).val('test');
});
});
for some reason when I alert this out I'm only getting the server-side Id, not the auto generated ASP.NET ID that would be created during runtime:
<form id="form1" runat="server">
p id="facebook-LoginButtonContainer"><asp:ImageButton id="btnFacebookLogin" runat="server" ImageUrl="images/facebookLoginBtn.jpg" /></p>
</div>
</form>
<script type="text/javascript">
var loginButtonID = '<%=btnFacebookLogin.ClientID %>';
alert(loginButtonID);
NOTE: the code above is inside an .aspx page that's wrapped inside an IFrame. I know that's probably some of the issue here maybe? If not then what?? I don't have a master page included this time either because it doesn't make sense as this page serves as the content for this IFrame. So it's just just a plain old .aspx inside an IFrame with a form that has runat="server"
After postback, attributes are cleared.
So how can I send an attribute applied to controlID via JS to the next request page?
I have a page called rateuser.aspx. Basically, this page allows one user (eg. me) to give a feedback on another user (eg: user b). These username should been retrieved when i logged in and when i go to user b's profile page. how do i retrieve these 2 different member id without clashing?Also, when i want to insert the feedback, how do i insert these 2 different id into the rateuser table w/o clashing because my member id is retrieved from the user table.
View 3 RepliesEvery time I chage the listbox I want to text in the listbox to display on a seprate label on my form. I have used this:
[Code]....
And this error is for the code above.
c# - How to Grab Date Only from a Variable of Type DateTime
DataTable tempTable = new DataTable;
tempTable = getCustomerTable();
In this case, tempTable will have a table (named CustomerInvoice) which has
5 columns. The 3rd column is named DueDate. I print to a listview
as following:
[Code]....
I prefer to solve this problem at application rather than db level. NOTE: DueDate in database is of type datetime. I'm coding in C# interacting with Sql-Server. I hope my question is clear enough.
i am trying to grab data from here : http://mediaforest.biz/mobile/nowplaying.aspx in the page you select a station and post it then you get new page with data. but i cant grab it, i get the same page again.
i used this code:
<?php
header ('Content-type: text/html; charset=utf-8');
$url = "http://mediaforest.biz/mobile/nowplaying.aspx";
$referer = "";
[Code]....
I want to grab the data displayed in a web page . The data is displayed as follows .
please note that it has more than 3 rows of data
Code Name Fax1000 AZEEM ABDHILLAAHI 3322436 1001 MOOSA HASHIM 3318551 1002 Magpie 3123464
[Code]....
I want to exract the data and save it to a text file as comma seperated values.
I want to achieve the taks using asp.net c#. provide me with links to sample or tutorial .
I'm doing a project where I need to send email.
But i need to grab the name and email address from the database to send email.
How do I grab the particulars from the database?
Is there simply no way to grab multiple files and upload them at the same time via a webform? I have searched everywhere and I cannot find a single code example. The best that I can find is selecting one file at a time to a listbox for holding and then uploading. This is NOT going to work for me.
View 6 RepliesReferencing my Earlier Question, regarding downloading a file from a server and handling exceptions properly. I am positive that I had this solved, then in classic programming fashion, returned days later to frustratingly find it broken
Updated code:
private static void GoGetIt(HttpContext context)
{
var directoryInfoOfWhereTheDirectoryFullOfFilesShouldBe = new FileInfo(......); [code]....
This was working fine, and returning the zip, otherwise if the file didn't exist returning 404. Then on the client side I could handle this:
public bool Download()
{
try
{
using (var client = new WebClient()) [code]....
But the problem now is two things.
1) I get System.Threading.ThreadAbortException: Thread was being aborted in the server side try-catch block. Usually this was just a file not found exception. I have no idea what or why that new exception is throwing?
2) Now that a different exception is throwing on the server side instead of the file not found, it would seem I can't use this set up for the application, because back on client side, any exception is assumed to be filenotfound.]
Is it possible to grab the cell data from Repeater items property such asDim test As String = myRepeater.Items(index).DataItem(2)where myRepeater has x rows and 10 columns and was bound from the DataTableSeems like it should be trivial, but looks like individual cells CAN NOT be accessed
View 1 RepliesMy stored procedure requires an input parameter -- @CompanyName -- and has one output parameter - @CompanyID. This is how I always handled stored procedures that did NOT use output parameters. How do I grab the value coming from the output parameter?
[Code]....
I've got a requirement to add a feature that will save off a dynamically created asp.net page so it can be recalled and reviewed at a later date. I was thinking of just adding a 'Save' button to the page and in the code-behind using VB to write the output HTML to a varchar(MAX) field in my database.Does anyone know how (in VB) to grab the entire page HTML so it can be inserted into a database?
View 6 Repliesi have the following objects:
Event:
- EventID (PK)
- GroupID (FK)
- StartDate
Group:
- GroupID (PK)
- GroupName
What i need to do is select the last 5 events for each group using LINQ to Objects. I tried starting with:
[Code]....
But i'm not sure how i only take the last 5 per group.
The simple way of doing this is to get the groups and then have a property on that which returns the last 5 events but if i databind this i will have to use a nested Repeater/ListView. Ideally i would like to have a row foreach event.
Is there a way to grab the querystring from the original request or pull it from the ASPX ErrorPath?
We've updated 5 applications, and combined them into one. However, when someone requests and old URL such as [URL]I tried capturing the value from the querystring, but it does not seem to work since the aspxerrorpath is there (404 page).
I am trying to allow users to grab their stored procs and call certain ones from within code. I can get the stored procedures and then fill a dropdown with them, but what I cannot find at this point is how to get the parameters that each stored procedure needs. I would like, once an SP is chosen from the dropdown to make a call to the db with that sp name and grab its paramter list so I can report what needs to be sent in to the user.
View 1 RepliesI have a GridView with an ItemTemplate and an EditTemplate:
[code]....
I am able to go into Edit Mode and once in edit mode I can see the textBox tbLogEntry fine. lblLogEntry is gone. I have left regular Item mode and am in Edit mode:
[code]........
gives me back the original value, not the new one.
How do I get the edited value from the front end textbox?
[Code]....
I'm trying to put the wordID as part of the hyperlink and it's not outputting the ID.