AJAX :: Requests Work On Localhost But Not Performed On Public IP
Feb 21, 2011
I'm am experiencing some strange behavior with a website. I have a page that performs a simple AJAX request to fill a div. The data is fetched from a page in the same domain. When I perform the request using [URL]. The requests work perfectly, but when using [URL] or [URL]. My requests are simply ignored. I've used Firebug to track requests, and not even a single ajax request is performed. Normal requests (such as fetching the main page that invokes the ajax code) works fine on both scenarios.
View 2 Replies
Similar Messages:
Feb 23, 2010
i'm just sending a normal POST request using Ajax.BeginForm... i output the form elements using the .TextBoxFor and .HiddenFor etc... all as i should... and when it's posted via ajax to my action method, the object in the action method (named "Comment") is not populated with the values!
Am i missing something? here is the relevant part of my code to those who want to see it...
[code]....
View 2 Replies
Dec 30, 2010
My virtualpath provider works well in VS 2010 but doesn't in IIS 7.5 on my localhost. In IIS, I get a HTTP 404 when I fetch an aspx, which is normal because the aspx is in a table. The problem seems linked to the sequence
HostingEnvironment.RegisterVirtualPathProvider(new MyProviderClass) in the AppInitialize method.
There is no exception raised but the instruction seems to no avail :
If I try object O = HostingEnvironment.VirtualPathProvider immediately after the registering, I see that O==null.
Again, it works perfectly well in VS.
View 1 Replies
Dec 31, 2014
I have an issue with an aspx page I have created but I decided to break it down into its smallest component and then see what I was missing.
If I create a new webform called default.aspx and add the code posted below it doesn't load all of the css when accessing the page remotely in IE11
(I use IIS7)
it works fine in google as
http://localhost:8080/default.aspx
or
http://servername:8080/default.aspx
but in IE11 it only works as
http://localhost:8080/default.aspx
anything else causes the fault in the attached image.
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>testing</title>
[Code] .....
View 1 Replies
Mar 1, 2011
I created a self-signed certificate for testing in IIS7 (win 7 64 bit environment ). I attached the cert to the bindings, etc and everything was fine. But when I crank up the site I get the generic error: There is a problem with this website's security certificate. Continue to this website (not recommended). What should I be looking at to fix this
View 5 Replies
Sep 16, 2010
I've just discovered that the X-Requested-With header in IE is always "XMLHttpRequest, XMLHttpRequest" instead of just "XMLHttpRequest". I found the reason in MicrosoftMvcAjax.debug.js at line 280 (MVC 2.0). Seems there is no need to add this header again as it is already done in Microsoft AJAX Library. And because of this IsAjaxRequest extension method doesn't work anymore if there is no X-Requested-With param in the request body. And this make X-Requested-With header useless in IE.
In Firefox there is no problem as it doesn't append but replace the existing header value. Not tested in other browsers.
View 9 Replies
Jan 18, 2011
I previously crate website in framework 2.0 before one year and there is working good on server. But Currently I download same site on my local machine and configure again in Visual Studio 2008 with framework 2.0 compiler then do new changes on site and it running good on localhost.But the same code I upload on server again They can't work code properly.In new code I changes some XML file that retrieve data and save data, but I add new code in this XML file so it can't work with new code but previous code is working as good as previous.
View 3 Replies
Mar 31, 2011
I have a piece of code written in 2 different ways, one a web service and another a WCF client which are trying to access an external 3rd party URL.
The same code when written as an exe works fine, i see my submissions on the 3rd party site, while the web code does not work.
I installed Fiddler to check traffic and to my surprise the web code works when Fiddler is capturing traffic, As soon as I stop Fiddler my code does not work.
For the web service code I get error: The remote name could not be resolved:
For the WCF client I get error: There was no endpoint listening at <<3rd party URL>> that could accept the message. This is often caused by an incorrect address or SOAP action.
Am quite sure now that this is because of some network and/or proxy on my corporate network, but not able to figure out what it can be.
View 1 Replies
May 26, 2010
I am trying to write an asp.net webpage which contains an applet. Everything works fine when I run this in a development folder, but when I move it to the IIS web server public folder it doesn't work anymore. I don't get any error message. The browser doesn't repaint the applet area Here is the source code:
//web page
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
var attributes = { code:'ImageApplet.class', archive:'ImageApplet.jar', width:864, height:1000} ;
var parameters = {jnlp_href: 'image-applet.jnlp'} ;
deployJava.runApplet(attributes, parameters, '1.4');
</script>
//applet
public void init() {
buildUI();
}
public void buildUI() {
JButton jumbleButton = new JButton("Jumble");
jumbleButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
};
});
add("South", jumbleButton); }
View 2 Replies
Jun 2, 2010
I just having some query regarding Garbage collection. when this would be performed. It sense that whether it would be called while executing the each page or some other time.?
View 4 Replies
Oct 17, 2012
Today my client has asked me to do Data Base Log,that is if any change done like,Insert or Edit or delete that has to be viewable in Log Report,if somebody did even a Small change that also has to be keep track and has to display in Log Report,like the recent activity is so and so and so and so person has done this.
View 1 Replies
Feb 10, 2011
I can access a module from code behind but not from the aspx page in inline VB code <% ... %>.
I know its got to be something simple but I can't seem to find the answer anywhere.
View 1 Replies
Jun 18, 2010
What's the simplest and most effective way to selectively redirect HTTP requests to your ASP.NET page to its HTTPS equivalent? For example, if my page site URL is [URL], I want to redirect some (or all) page requests to [URL] What's the easiest way to do that?
View 2 Replies
Jan 6, 2010
VWD 2008 Express. Windows 7 (64 bit). I want all my work and settings for VWD 2008 to be stored in the public (shared) documents folder. There are settings under Tools>Options to specify where projects and templates are stored, that is part of the answer. However, whenever I open VWD it always creates a "Visual Studio 2008" folder in my personal Documents folder where it apparently stores some settings. How can I make VWD work entirely in the "Visual Studio 2008" public folder for everything and NOT create the personal folder?
View 2 Replies
Aug 26, 2010
How do declare a public variable .aspx web page that can be used in all the pages within my web application? And/or create a Public Sub?
View 3 Replies
Dec 11, 2010
i find a lot of websites that have some parts in the page that uses ajax much more faster than i used to see ajax requests
like changing views using tabs when i click a tab it changes content very fast than i used to in my web applications using Asp.Net and Ajax Control Toolkit
and also a very quick paging in repeaters or grids than i ever developed in my web apps
like this website [URL] i need to know which technology used to achieve this this website is developed using .net
so
but i need to know is this needs another technology to learn (from where can i learn it)
or is it just asp.net + ajax or whth other technology
is it MVC
also i want to know if MVC is better than asp.net + ajax in concern with performance
View 4 Replies
Jun 24, 2014
This is sort of a continuation of a previous thread: View thread
The requirement I have is to be able to have a popup form that shows detailed data on a facility. This would be available on various pages of the website where the user may want to drill down and see detailed information on a facility. We also want to allow the user to update the data on the facility if so desired. I have the code working to show the popup form and get the html for the popup from a view. Right now I'm setting the values of the input boxes using razor code that accesses the @model object. That's about as far as I've gotten.
Where I'm struggling is:
1. How to tie the data in the inputs back to the view model.
2. How to write the ajax code to write the data back to the server. I tried using a standard form, but that redirects the original page that popped up the form. I want to leave that page alone and just submit the data back to the server and close the popup.
Now my dev lead wants us to use the dojo toolkit for our javascript library. That would be OK if I already knew what I was doing with regard to web development, but I don't - and documentation is just not very good with regard to dojo. I'm still trying to figure out html and mvc, so I thought I'd see if I can get this scheme working with some other javascript library first, and then see about switching it over to dojo.
I've read some about knockout and jquery, but with everything being so new to me it's hard to get all this to gel in my head, and I'm not sure about my design. I've read some about mvc's built in ajax tools, but so far all I'm seeing is stuff related to getting data and displaying it - not about submitting data.
I'd like to be able to send the data back to the server in the same object structure that I extracted it with - something that matches the model. I think this is doable, but I'm not sure - and the 'how' of it is escaping me at this point.
View 20 Replies
Apr 5, 2010
How do you handle ajax requests when user is not authenticated?
Someone enters the page, leaves room for an hour, returns, adds comment on the page that goes throuh ajax using jQuery ($.post). Since he is not authenticated, method return RedirectToRoute result (redirects to login page). What do you do with it? How do you handle it on client side and how do you handle it in controller?
View 4 Replies
Dec 11, 2010
i find a lot of websites that have some parts in the page that uses ajax much more faster than i used to see ajax requests
like changing views using tabs when i click a tab it changes content very fast than i used to in my web applications using Asp.Net and Ajax Control Toolkit
and also a very quick paging in repeaters or grids than i ever developed in my web apps
like this website [URL]
so i need to know which technology used to achieve this this website is developed using .net
but i need to know is this needs another technology to learn (from where can i learn it)
or is it just asp.net + ajax or whth other technology is it MVC
also i want to know if MVC is better than asp.net + ajax in concern with performance
View 5 Replies
Jan 2, 2010
I have many Ajax.ActionLink's on my ASP.NET MVC (v1) page that perform destructive operations. This is "legal" because I set HttpMethod to DELETE in this case so it's not a destructive GET.
My question though is how to mitigate XSRF attacks on this operation so that other sites cannot craft this same Ajax DELETE request to delete user data from another site. This ActionLink does appear within a form that includes <%= Html.AntiForgeryToken() %> but since ActionLinks don't post the form, the anti-forgery token doesn't go to the controller, so it can't validate it.
View 2 Replies
Jun 10, 2010
In my ASP.NET MVC2 web app I have a page which goes off and gets results from a number of different web service feeds. These return times vary so I want to basically display them as they return after the page loads. I also want my user to be able to kick of requests that can run concurrently with these other requests.
At the minute my page just seems to queue up the requests. The web service calls returning one at a time in the order they are called and then the user can kick of requests.
Is this a case for the asyncController or is there an easier/better way of working this?
View 5 Replies
Dec 9, 2010
A customer wants us to create an ajax-enabled web application that can be used to manage their IT environment (Active directory, mail, file security, ...). However, as the team that will support the web application does not know anything about these IT systems, they would like to split the coding so that all interfacing with the IT environment is done via PowerShell, which is known by the administrators of these systems. This would mean that if new functionality is required, the web team can just create an additional web page and interface and use PowerShell scripts that get created by technically skilled people in that specific topic (ie mail administrators). I don't see an issue using this approach for requests like adding a user where latency is not an issue, but I do wonder if this is feasible for interactive content with Ajax.
Ie I would like to implement a google suggest like search for AD users. This would mean that ie for every x keystrokes (or x seconds whatever approach I implement) an Ajax request will be made and the web application or web service will than use PowerShell to get the data. Taken into account that up to about 75 users can use this feature, is this something that would work? Not only performace-wise but also the number of connections (I read about the Powershell 5 remote session limit but also that it could be put to a higher number)? The example above is probably the most resource heavy Ajax requests (and can be optimized by caching), so taken into account they don't want this nice feature, are basic PowerShell scripts in ajax request really an option. My gut feeling is telling me this is a no-go, but I don't want to exclude the option just because it's not something I usually would do.
View 1 Replies
Jan 27, 2011
I have a question about C Sharp ASP.NET:Is there a difference (in code speed, resources) between:public static variable declared in public static class MyGlobals in a 'Code File' template;and the variable declared in a normal 'Class File' template;I use this variable in 2 different Class Files and also in _Default Page codebehind cs file.In fact in my case I need about 20 global variables of type List<string>.
View 9 Replies
Mar 8, 2011
I'm creating a page that makes multiple AJAX form posts without a page refresh.
I would like to use the ASP.NET MVC HTML.AntiForgeryToken() helper to secure the form against CSRF attacks. I think that each form on the page can share the same token, but will it allow multiple requests with the same token? If not is there a way to get a new token or some other way to secure the forms?
View 2 Replies
Jan 30, 2010
For example: If user "Tom" is logged-in now and observing page "1.aspx" I want to know about it. I also want to know when "Tom" stop observing that page. He can move to another page, than I know by server page request he is not any more at page "1.aspx", but what if he moves to another web site? Or closing his browser?
How can I know he has stopped observing that page.
I think I need to send Ajax requests every 10 seconds in order to check it, but what kind of request?
View 2 Replies