Web Forms :: Detecting Content Changes On Websites?

Nov 12, 2010

As per the requirement of my client I would like to create an application which detects content changes on the websites we provide. Like we will have an admin section where we add the websites we want to keep a track of. And on the other side it tell us of any new content on those websites. The websites will be kind of general news website and won't have RSS feeds. I would like to know if there is any way to do something like this. Any ideas are welcome. I would like to know just the logic how to create such a thing.

View 5 Replies


Similar Messages:

Configuration :: Use To Copy/publish Websites To Web Server Is Not Allowing Us Access To Push Websites?

Oct 15, 2010

the account we use to copy/publish websites to our web server is not allowing us access to push websites. I've added this account to the permissions in the links listed in the below link, but i don't have success when trying to push remotely. When the account is in the local admins account, everything works flawlessly, but we are not allowed to have it in there. http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/31be047e-4716-4974-b8a1-be0111b50199 I've googled and searched a lot for this particular error, but am not finding an answer that helps. We get this error, 'Unable to create the Web 'http://edea01/test/planning'. You are not authorized to perform the current operation', and the above link is the scenario that matches mine the most. I don't do develompment work, but am asked to figure out this connection problem.

View 3 Replies

Web Forms :: Detecting A Mobile Browser?

May 7, 2015

How to check in code behind if the type of device that is accessing the page is mobile?I'm using Request.Browser.IsMobileDevice, but the detection don't work to some mobile devices.

View 1 Replies

Forms Data Controls :: Detecting When The Last Row In A GridView Has Been Deleted?

Dec 6, 2010

I have a GridView. One of its columns contains monetary amounts. Underneath the GridView, I have a SqlDataSource which calculates the sum of this column and displays it in a label which is in a DIV called totalsbox (that I have added runat="server" to).

Obviously, if the GridView is empty, I don't want this label to be visible.

In the Page_Load, I have placed the following code:

[Code]....

[Code]....

This works fine. When the Page first loads, if the GridView is empty, the entire DIV is hidden; if not, the DIV is visible and the label displays the column SUM. imagine now the GridView DOES have rows, the DIV is visible and the total is displayed properly in the DIV ("£10.00", say).

I have a RowDeleted event handler in the code behind which contains exactly the same code as I put in the Page_Load. As I delete rows, one by one, the sum is recalculated and displayed properly. But, when I delete the final row, I would expect this code to hide the DIV as the GridView is now empty.

This doesn't happen, however, the DIV remains visible and I have, in the label, something like "£ ".

Why is it that the code works in the Page_Load but not in the RowDeleted event handler?

View 6 Replies

Web Forms :: Detecting Browser Media Player Capability

Apr 26, 2010

detecting browser media player capability

View 1 Replies

Web Forms :: Detecting If The TLS Variant Of Https Is Supported On Browser?

Nov 1, 2010

Due to security restrictions, we must run our web site under the TLS variant of https (SSL is disabled on the server...only TLS is enabled on the server).

The problem we have is that some customers have TLS disabled in their Internet Explorer Tools/Internet Options/Advanced settings...and they get a "page cannot be displayed" error.

I need a way to tell those users to "go enable TLS on your browser" (like display a page for this saying this).

how I can determine if (with the server having only TLS...not SSL...enabled) if the browser can support the https?

View 5 Replies

Detecting Javascript During Login Of An MVC App

Jan 24, 2011

My LogIn action originally looked like this:

return new RedirectResult(nameValueCollection["ReturnUrl"]);

But, I would like to know whether the client has JavaScript enabled before the home page loads, so I changed it to this:

return View(new LogInViewModel { ReturnUrl = nameValueCollection["ReturnUrl"] });

And send the following view instead of the instant-redirect:

@model Obr.Web.Models.LogInViewModel
@{
Layout = null;
string noJSReturnUrl = Model.ReturnUrl + (Model.ReturnUrl.Contains("?") ? "&" : "?") + "noJS=true";
}
<!doctype html>
<html>
<head>
<title>Loggin in...</title>
<meta http-equiv="REFRESH" content="1;url=@noJSReturnUrl">
<script type="text/javascript">
window.location = "@Model.ReturnUrl";
</script>
</head>
<body>
<noscript>
Loggin in...<br />
<a href="@noJSReturnUrl">Click here if you are not redirected promptly.</a>
</noscript>
</body>
</html>

The idea is that if the user does not have JavaScript enabled, they see a brief loading message, and the home page loads after a second. If JavaScript is enabled, the page reloads instantly. In the future I could even post to the server the dimensions of the viewport and such. Does this look like it would work? If the window.location command takes longer than a second to run, will it be interrupted by the meta refresh, or does it block that refresh? I am hoping the latter, so I don't need to increase the delay for those non-js people.

I figure my new way adds a little extra weight to the payload of the redirect, but it's not an extra round-trip or anything, is it? The redirect happens anyway, does it not? Update: I neglected to mention a very important point. I do not actually have control over the login screen itself, only the page it posts to. This code is part of a product that relies on an external authentication mechanism.

View 2 Replies

C# - Detecting Non Mobile Browsers

Sep 17, 2010

So I'd like to redirect mobile users to a different page. But instead of trying to detect any number of mobile browsers, I'd just like to see if the user is using IE, Firefox, Safari, Chrome, or Opera; all other users go to the mobile site. My biggest problem is detecting regular Safari from mobile Safari.

View 1 Replies

Detecting Web Browsers' Versions?

Dec 19, 2010

i'm programming an application where an action is done if i access with a version equal or higher than other and another action if i access with a lower version; but the problem is that the lines to indicate the versions doesn“t work. The code is the following:

[Code]....

As you can see, an action should be done if the version is the 9.0 or higher and other if it is lower, but these lines doesn't work and only works the detection of the web browsers (no the versions of them, action that doesn't works).

View 2 Replies

Detecting An Expired Session From Php?

Feb 23, 2011

I'm developing an extra section to a web app that's written in asp.net, but in php - it's mostly done (the two parts don't really communicate with each other outside of a database - the integration is mostly just cosmetic.)

The only issue I have is detecting from the php part when the .net session has expired so that it logs the user out and redirects to the login page.

I believe the asp.net application is compiled, but either way I'm not allowed to alter it so I was thinking maybe the best thing to do would be to make a very small/simple aspx page that outputs true or false which I could call using curl from php (and passing the browser's cookies along.)

Would this even be possible? I'm not sure how session security works on asp.net eg whether one .net application can read another's session variables, but if it's anything like php then it'll be possible.

mypage.php --curl--> checksession.aspx --|
| |
<----------- true / false <---------------

So mypage issues a GET (with cookies from browser) to checksession using curl, checksession simply returns a true or false (or something like that) and mypage redirects to the site's login page if that's false.

The authentication for the php side is already sorted out and is separate to this issue.

So really, what I need to know is can I have just a simple .aspx file that does this check, and if so where would I go to to find out how to program such a simple page?

View 3 Replies

Detecting If User Closes The Page?

Jun 7, 2010

Is there a way to detect if the user closes the browser/popup page? I am trying to implement a chat functionality by when the user closes the browser/page, I will update the flag in the database from active to not active. But I cannot seem to find a better way to handle that besides from detecting if the user closes the page.

View 13 Replies

Detecting And Closing Frames Using Javascript

Jul 16, 2010

I'm working on an ASP.NET web application. There's a bill page which has two links to different pdfs of the same bill. When you click on one of the links it takes you to a ViewPDF.aspx page that shows the pdf. There's also an option to view both in a split screen so that you can compare them. When you click on this link it takes you to BillSplit.aspx which has a frameset and two frames that both point to ViewPDF.aspx. This all works perfectly.

The problem is that if an error occurs while pulling up the pdf. The application has an error page that has a few links back into the application. If you use one of these you can go back into the app and continue but now inside the frame. The URL still says BillSplit.aspx but the application is completely unaware of this since frames are HTML elements not asp.net controls.

What I would like to do at this point is detect that you've returned to the application and close the frame you aren't using. Essentially I'd like to redirect you away from BillSplit.aspx and to the page you're actually requesting. I'm pretty sure this would need to be done in Javascript either on the BillSplit page or on the pages that you go to later. So I guess what I'm asking is, is there a way to ensure that the BillSplit.aspx page and it's two frames point only at ViewPDF.aspx?

View 1 Replies

Detecting If Site Is Being Accessed By A Robot?

Feb 15, 2010

I have some geo targeting code whcih I want to behave in a particular way if the site is being spidered by a robot e.g. google etc.

Is there any way to infer this?

View 4 Replies

Localization :: Detecting The Language In A String?

Feb 24, 2011

I recently started using fusioncharts (which is a great charting tool btw) but I releaized that although it renders Right to Left languages correctly, it does not display them from Right to Left, so if I have "Sales Report" in Arabic, it will be displayed "Report Sales" in the chart.

I dont have a problem with this with static text because I can reverse it before I send it to the chart, but with dynamic text that is entered by the user it is a challenge, because the user may enter the details in English or in Arabic, or in both.

So if I can define the character code used in the sentence then my problem will be solved, and the first thing that came to my mind in order to do this is:

- Take one letter from each word in the string and compare it with the Arabic alphabet (instr function).

- If the function returns true then the letter will be arabic and therefore the whole word will be arabic, I'll store this word in a new string

- If the next word is also Arabic I'll add it to the new string else I will skip it and start a new string for the next words to come.

- After I finish searching the string I will reverse the words in the new string and replace them with their parts in the old string then send them to the chart.

View 1 Replies

C# - Detecting New Visitors To Website Without Using Cookies?

Mar 11, 2011

We are looking to create a website that displays information to all new visitors to a site, i.e. welcome,The big problem is that our website is not allowed to use long-lasting cookies (i.e. over 20 minutes). Does anybody know of any way we can determine whether a user has visited the site before or not. As another restriction, we can not add anyform of registration to the system. The application is being created in ASP.Net 3.5.

View 6 Replies

Security :: Detecting Users Don't Log Out Correctly

Sep 4, 2010

I have a web site which uses forms authentication and we have a log out page which will sign out the user and set that they are signed out in the database. This needs to be done as they use concurrent licences. The problem is that users are closing down the browers without logging out, meaning that the database shows them as logged in. I would use javascript onbeforeunload/unload functions to call a webservice, but this is unreliable to actually know if they have closed down the browser. or just hit refresh. An idea i had was to have a web service fired every 20 mins to detect if a user has loaded any pages within 20 mins, if they have not then to set them as logged out.

View 2 Replies

Detecting What Platform Code Is Running On In C#?

Dec 9, 2010

I have C# code I want to use in both a WinForms app and ASP.NET website. The database connection string differs for each though, so I want to be able to find out which platform it's running on and set the connection string appropriately. Is there an easy/recommended way to do this ?

View 3 Replies

State Management :: Detecting The End Of A Session?

May 5, 2010

I want to detect when a session has expired so I did the following:

1. I added Session("SessionStatus") = "ON" in the Session_Start code.

2. I added Session("SessionStatus") = "OFF" in the Session_Endt code.

I also modified the session "timeout" in the web.config file, "sectionState" section to 2 minutes for testing purposes so I do not have to wait for 20 minutes. I made a small web form in which there are a label and a button; the label displays the value of Session("SessionStatus") when the button is clicked.

I click the button just after running the web form and I get the value of "ON" displayed.
I waited for more than 2 minutes and clicked the button again and I still get the value of "ON".

Isnt't it supposed that the session has expired and the Session_End event is raised changing the value of Session("SessionStatus") = "OFF"?

View 6 Replies

Detecting Which User Is Viewing The Page?

Jul 20, 2010

I wondered if there were any 'tricks of the trade' to try and determine the user looking at a specific page. The server which currently hosts our Intranet is configured to use anonymous authentication so most of the usual methods return the account running IIS. I also have the same issue when trying to read the registry using some VB code.

I did get around this by using some VBScript to read the registry and get the username, but I seem to be unable to use this to determine if a column in a GridView should be visible or not. I have a stand-alone page and wondered if this was possible?

View 1 Replies

C# - Detecting If Referrer Was From A 301 Permanent Redirect?

Jul 8, 2010

I am doing a 301 permanent redirect from an old server to a new server. When the new server's page is hit I want to be able to determine whether the user comes from the old site and then react differently, i.e. instruct user to re-book mark the new page.

View 2 Replies

Javascript - Detecting When There Is A Response On An Iframe?

Jul 20, 2010

I have created an AJAX style file download (using an iframe) and all works well... however, I need to detect when the iframe has received a response... see below:

Javascript:

function download() {
var ifrm = $('#iframedownload')[0];
ifrm.src = '/downloadfile.aspx?fileid=whatever';
ifrm.onreadystatechange = function () { // Checking
if (this.readyState == 'complete')
alert("I would really like this piece to work!");
};
}

C# for downloadfile.aspx:

Response.AddHeader("content-disposition", "attachment; filename="" + zipFileName + """);
Response.AddHeader("Content-Length", respBytes.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.BinaryWrite(respBytes);
Response.End();

View 1 Replies

Redirect - Detecting Requests From Mobile Browsers?

Apr 16, 2010

I have an existing web site and I would like to create a mobile version of it that is more suitable. For instance, the main site uses drop-down menus and we all know those are quite the fail on mobile devices.I would like to redirect to my mobile version (it will be a subdomain of the current site) if I detect a request from a mobile browser. So when they Google something and come to my site, they will automatically see the mobile version (just like Wikipedia).Does ASP.NET provide an easy way of doing this

View 6 Replies

Search - Detecting Enter In TextBox No JavaScript

Mar 24, 2010

Basically I have a Search Text Box with a LinkButton Control on which the click event is fired. now what i want is when the user type keywords and press enter the Click event got fired. So No Javascript Only ASP.NET With VB.NET v2.0

View 2 Replies

Javascript - Detecting Keydown Event With Jquery

Sep 20, 2010

In my project there is a button search which seems to be the default button to trigger when enter key has been pressed. How can i detect a keydown event with jquery for a login button? Its an asp.net project.

View 1 Replies

C# - Detecting If JavaScript Is Enabled On A Mobile Browser

Oct 29, 2010

I want to check if a mobile browser has javascript enabled before displaying a page to the user. The code I've found from my research is:

System.Web.HttpBrowserCapabilities browser = Request.Browser;
Response.Write(browser.EcmaScriptVersion.ToString());

So to ensure that javascript is enabled on a browser, you need to check wheather the returned valued is either equal to or bigger than 1. This works on normal browsers, but when I test it on my phone the returned value is always 0.0, no matter if my javascript is enabled or disabled. Is there a way to check if javascript is enabled on a mobile browser or will the browser handle the incapability on it's own?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved