WCF / ASMX :: Web Method Completely Stops Functioning Until The Page Is Reloaded

Feb 28, 2011

I have a [WebMethod] within an aspx.cs file. It seems that whenever a second call to the method is made via AJAX before the first call is fully executed, the web method completely stops functioning until the page is reloaded.

View 2 Replies


Similar Messages:

DataSource Controls :: Non Functioning InsertCommand With DetailsView Not Functioning Properly

May 6, 2010

I have two pages for different companies with nearly the same ASPX markup and code-behinds (main alterations include certain fields from the same table being read-only in one and editable in another), #1 has a Select (for populating the DetailsView) and Update while #2 has Insert, Select and Update. #2's Insert and Update functions are not operating while #1's are just fine... I've gone through optimizing #2's codebase and I for the life of me cannot figure out why it's not functioning properly. What follows is #2's markup and codebehind for the relative functions accessed:

[Code]....

Here follows the code-behind:

[Code]....

View 4 Replies

Web Forms :: Master Page Get Reloaded?

Jul 26, 2010

I have a masterpage that is used as master page for all the pages in my application. I have no issues with the forms and pages. However, currently when any page is loaded master page gets reloaded. I think it is not efficient if master page is reloaded everytime the application paged are loaded. The desired behaviour is to have the master page loaded once and reload it again when a user logs in as the login/password elements are within the master page in the header section. Other than these situations I see no need for master page to get reloaded. Optimally when a user clicks on a link on the navigation bar (which is in the master page) I would like the header section in the master page to remain in the page and just the content section gets reloaded.

View 10 Replies

Page Is Reloaded After Ajax Based Client Callback To WCF

Feb 20, 2010

Ive set up a basic client side callback to a WCF service. see sample code below.

when viewing using an http filter attached to the explorer you can see that:

1. service1.svc/js is working fine and return proper java script to the browser

2. serrvice1.svc works and returns a proper json data.

3. call is fine and using alert instead of updating the div info i get the data.

but then after OK on the alert the page is then reloaded from scratch.

[Code].....

View 2 Replies

Web Forms :: Keeping Vertical Scroll When Page Is Reloaded ?

Dec 29, 2010

I had found one line code in vb which did this, using the System.Web.UI.Page, but I can't find it back. Someone could tell me what it was ?

View 3 Replies

Sessions Lost When The Page Is Reloaded (ispostback = False)?

Feb 27, 2010

I have an asp.net page that sets a few session variables. On my development machine (localhost), I do a postback and the session values are still populated.

When I Reload the page by clicking on the url bar and pressing enter the session variables are still there.

However when i deploy this page to a webserver, the page still retains the session values when doing a postback, but as soon as i click the url and press enter the session values are lost (where the ispostback = false)

But when i press the refresh button the session variables are present (but i do get a popup warning me that the page data needs to be resent!)

i am running IE 7, and the webserver is iis6 what am i doing wrong?!

View 2 Replies

WCF / ASMX :: Web Service On Server Stops Automatically?

Mar 15, 2011

I am ASP.NET developer.

i have run one program in host server at a particular interval (lets say in each & every 1 hour) by using web service. but on my server web service stops automatically after 2 or 3 hour.

View 4 Replies

WCF / ASMX :: WCF Deadletter Queue Service Stops Picking Up Messages

Dec 15, 2010

I have a custom dead letter queue service to pick up messages from DLQ. This service picks up failed message from DLQ and tries to resend to a different end point. If the new endpoint doesn't work, it rolls back transaction. This works great. Here is the code.

{
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,
ConcurrencyMode = ConcurrencyMode.Single,
AddressFilterMode = AddressFilterMode.Any)]
public class FDPDLQService : IFDService
{
FDPManager _fdpManager = new FDPManager();
[OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
public void ProcessFDMessage(FDMessage message)
{
//System.Diagnostics.Debugger.Launch();
try
{
MsmqMessageProperty mqProp =
OperationContext.Current.IncomingMessageProperties[MsmqMessageProperty.Name] as MsmqMessageProperty;
// if message log required, and configured, log the incoming message
try
{
ChannelFactory<IFDPRouter> factory = new ChannelFactory<IFDPRouter>("IFDPRouter_EP");
IFDPRouter proxy = factory.CreateChannel();
string ep = proxy.GetNextEPForGivenEP(OperationContext.Current.IncomingMessageHeaders.To.ToString());
if (ep == null || ep == string.Empty)
{
throw new EndpointNotFoundException(Common.Constants.FDP_NOT_FOUND_EXCEPTION_MESSAGE);
}
// Process message with next end point available
_fdpManager.ProcessFDMessage(message, ep);
}
catch (EndpointNotFoundException enfe)
{
ExceptionManager.HandleException(enfe);
Transaction.Current.Rollback();
//throw;
}
catch (Exception ex)
{
ExceptionManager.HandleException(ex);
Transaction.Current.Rollback();
//throw;
}
}
}
}

Below is config entries.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<netMsmqBinding>
<binding name="DLQServiceBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" deadLetterQueue="Custom" customDeadLetterQueue ="net.msmq://localhost/private/FDPDLQ"
durable="true" exactlyOnce="true" maxReceivedMessageSize="65536"
maxRetryCycles="2" receiveErrorHandling="Fault" receiveRetryCount="5"
retryCycleDelay="00:30:00" timeToLive="00:01:00" useSourceJournal="false"
useMsmqTracing="false" queueTransferProtocol="Native" maxBufferPoolSize="524288"
useActiveDirectory="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport msmqAuthenticationMode="WindowsDomain" msmqEncryptionAlgorithm="RC4Stream"
msmqProtectionLevel="Sign" msmqSecureHashAlgorithm="Sha1" />
<message clientCredentialType="Windows" />
</security>
<!--deadLetterQueue="System">-->
</binding>
<binding name="DefaultBinding" >
<security mode="None" />
</binding>
<binding name="FDService_EP" closeTimeout="00:01:00" openTimeout="00:01:00" deadLetterQueue="Custom" customDeadLetterQueue ="net.msmq://localhost/private/FDPDLQ"
receiveTimeout="00:10:00" sendTimeout="00:01:00"
durable="true" exactlyOnce="true" maxReceivedMessageSize="65536"
maxRetryCycles="2" receiveErrorHandling="Fault" receiveRetryCount="5"
retryCycleDelay="00:30:00" timeToLive="00:01:00" useSourceJournal="false"
useMsmqTracing="false" queueTransferProtocol="Native" maxBufferPoolSize="524288"
useActiveDirectory="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport msmqAuthenticationMode="WindowsDomain" msmqEncryptionAlgorithm="RC4Stream"
msmqProtectionLevel="Sign" msmqSecureHashAlgorithm="Sha1" />
<message clientCredentialType="Windows" />
</security>
</binding>
<binding name="FDChecking_EP" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" deadLetterQueue="System"
durable="true" exactlyOnce="true" maxReceivedMessageSize="65536"
maxRetryCycles="2" receiveErrorHandling="Fault" receiveRetryCount="5"
retryCycleDelay="00:30:00" timeToLive="1.00:00:00" useSourceJournal="false"
useMsmqTracing="false" queueTransferProtocol="Native" maxBufferPoolSize="524288"
useActiveDirectory="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport msmqAuthenticationMode="WindowsDomain" msmqEncryptionAlgorithm="RC4Stream"
msmqProtectionLevel="Sign" msmqSecureHashAlgorithm="Sha1" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netMsmqBinding>
<netNamedPipeBinding>
<binding name="Teletrac.EFX.Interfaces.FDService.IFDPRouter" />
</netNamedPipeBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="DLQServiceBehaviour">
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="Teletrac.Customer.Services.FDPDLQService.FDPDLQService" >
<endpoint address="net.msmq://localhost/private/FDPDLQ" binding="netMsmqBinding"
contract="FDPServiceRef.IFDService"
bindingConfiguration="DefaultBinding"></endpoint>
</service>
</services>
<client>
<endpoint address="net.msmq://localhost/private/fdmessageQueue"
binding="netMsmqBinding" bindingConfiguration="DLQServiceBinding"
contract="FDPServiceRef.IFDService" name="FDService_EP" />
</client>
</system.serviceModel>
</configuration>

This works great.

But if all endpoints are not available for a long period of time, and if service rolls message back to the DLQ for a long period of time, after a certain period of time service stops picking up messages from DLQ. I am not sure which configuration is responsible for this.

View 2 Replies

WCF / ASMX :: How To Force Each Web Method To Call Another Method By Default

Sep 14, 2010

I want to execute a certain piece of code by default before each web Method.

Without adding any extra code in each method how to achieve this?

I am calling this service from Win application.

View 1 Replies

Web Forms :: Using Master Page In VS2010 / Web Page Does Not Fill The Browser Completely

Oct 10, 2010

I am using the original masterpage template in VS2010 to have a consitency with all my web pages for my site. However, i noticed that the web page does not fill the browser completely, it is much smaller. How can I adjust the size of the web page so that is fills the browser completely?

I have looked at all the options in properties but had no luck so far!

View 1 Replies

Eliminate A Table Completely From A Page?

Jan 24, 2012

What I have is a masterpage with some tables and contentplaceholders. What I want in some pages is that a table be removed because i have 3 columns on 3 tables and i need 2 columns only(so minus one table). Now i can access the table and give it some css through code but what i give is width:0 (and visibility:hidden if ever successful). The table contains one contentplaceholder inside a <td>. I can also access the td.The problem is that the table (thus contentplaceholder) will not go away.

It remains as entity as extending the second column will just push it downside(behavior expected when the column3 with contentplaceholder is present). So is there a way to remove the table holding the contentplaceholder?Only thought is to hide it and push it right that i admit i haven't tried it yet, I suppose it would be easier to make another master page but the problem is that i want specific designs on many pages so if this does not work i would either have to make many master pages or just use simple pages.

View 3 Replies

Display Loading Image Before A Page Gets Loaded Completely?

Jan 19, 2010

I want to show a loading image before the content of the whole page is loaded. How to achieve this? I'm working in ASP.NET.

View 3 Replies

Web Forms :: Executing A Statement When Page Is Completely Loaded?

Jan 27, 2011

I have a page which includes serveral gridviews, pulling out data from my datasources. At this stage, the parameters are set withing the page, however it will use a querystring at the end of the url. Once the page is loaded, i then have an Email function calling a HTML reader, which basically captures the content of the page and pushes to the body of the email and then emails it out.

The issue i am having is where to place this stagement. I have tried to insert the email function in the Page (load complete) event, but it still seems to send out over 20 emails, which to me, means that the page hasnt finished? loading and is constantly calling the email function.

At this stage, i need this page to load .. i cant think of any other way, i can get the data sent to an email without the interim medium; the page.

View 2 Replies

C# 4.0 - How To Fire A Code Behind Function When Page Is Completely Displayed

Feb 18, 2011

I need to trigger a C# code behind function right after an ASP.NET page is completely displayed. Is there an event to program? If not, do how to do it?

View 4 Replies

Architecture :: How To Process Data After Page Is Completely Loaded For The User

Aug 23, 2010

I have some logging that has to be done, which are some database update or inserts.

However this logging is of no importance to the user, so I only want to process the data/logs after the page is completed for the user.

As of now, if I process the data while the page is loading, I go from 1.4 to 2.0 speed (server side time processing of code), which is quite a bit comparing it is of no use to the user.

So I want this code only executed after that the page is complete.

I've been checking out Ajax, async pages etc, but the problem is it still gets executed before the page is rendered to the client, which means the client will have to wait longer then it is not being processed.

I've been checking out Threadpool.queueBackgroundWorker, however if I get it correct, this will still be executed before the page is shown to the user, as it has to complete before the prerender.

Then I thought about creating a new thread, and do the processing there, which would not have my page waiting to complete the data/logging.

However when I have 100 or 200 users loading pages at the same time, then that would mean I would be creating 200 threads on those loads, which I doubt will be good for performance. So if I want to solve this, I would have to create my own threadpool and only assign for example a max of 40 threads to it which can process the data.

All I want to get done, are some update/inserts into database after the page is rendered and shown to the user. I don't want the logging to slow down the pageload for the users obviously. I want that logging or no logging makes no difference to the pageloadtime for the user at all.

View 5 Replies

JQuery :: Turn Off All Input Controls Until The Page Has Completely Loaded?

Jun 9, 2010

using javascript / jquery is there a way we could turn off ALL input controls until the page has completely loaded...

View 4 Replies

Web Forms :: Disabling Form Elements Until Page Is Rendered Completely

Jul 20, 2013

How to Disabling the form elements until the page is rendered completely.

View 1 Replies

C# - Page Lifecycle Stops After Command From ListView?

Feb 9, 2011

I have a ListView in a web form (c#/.net 4.0). There is an ImageButton in the ItemTemplate.

After a postback, the ItemCommand event fires... and then everythings stops. No other page events occur. (Actually there is one other thing: Dispose() from ExtenderControlBase runs right after the event code finishes - this site has some AjaxControltoolkit controls, though there are none on this particular page).

There are a lot of things involved here so it's not really practical to post all the code, but generally, is there anything that could cause this?

I am rebinding the ListView on each postback, because I'm handling paging on the server side. When I assign the data source to the ListView, it's initially going to have no rows. So at the time the command event fires, the DataSource has no data in it, since it hasn't yet been loaded from the database and rebound. I can't think why this would cause the entire page to just stop loading, though.

The template is just this:

<ItemTemplate>
<tr>
<td class="DataListRow"><asp:ImageButton ID="edit" runat="server" ImageUrl="~/images/nav/datagrid_edit.gif" CommandName="edit" />
</td>
// a few orther cells
</tr>
</ItemTemplate>

View 1 Replies

JQuery Stops Working On Wizard Page?

Jun 24, 2010

I have a ASP.NET wizard that I need to use jQuery to manipulate some of the CSS styles. For example if a certain criteria is met it will hide a button:

$("input[value='Continue']").css("display", "none")

This works great on the first page, but subsequent pages (loaded as controls .ascx) don't work. The wizard doesn't load a new page each time, but simple reloads part of the content using the built in wizard feature.

View 1 Replies

IE8 Back Button Stops Working On Page?

Jul 29, 2010

If you do a search for "ie8 back button disabled" you'll see a number of blogs with people having difficulties with the Internet Explorer version 8 back button becoming disabled. This now happened to one of my ASP .Net pages. The page uses a user control, aspx page, and a master page. It uses no redirects and seems to be happening when I click the back button and then the forward button (after the forward button is clicked, it does not fire the Load event and the back button becomes disabled). Has anyone else encountered this and do you have a solution for it?

View 2 Replies

Javascript - Changed Image With Same Url Is Not Reloaded In IE?

Jan 6, 2011

In my asp.net project, I have a view-image page and an upload-image page. I upload an new image and direct to the view page, the image doesn't be changed, because IE won't reload the image if the image's url remains the same. prefer the way to ask the browser to reload the image independently without server setting or web-headers changes.

View 2 Replies

Web Forms :: Changed Image With Same Url Is Not Reloaded In IE?

Jan 6, 2011

In my asp.net project, I have a view-image page and an upload-image page. I upload an new image and direct to the view page, the image doesn't be changed, because IE won't reload the image if the image's url remains the same.

prefer the way to ask the browser to reload the image independently without server setting or web-headers changes.

View 2 Replies

Crystal Reports :: Page Stops Exporting Documents?

Mar 23, 2010

I have an ASP.NET site at work that uses a SQL Server 2k database.

Some pages on the site have buttons to export data via Crystal Reports and the user has the option to save or open. I also export to MS Excel using Response with content type.

Everything works fine until the workload increases and many documents are exported. What happens is that the site stops exporting when the buttons are pressed. It simply does nothing.

you can still use other features of the site but no exporting.

the only solution i've found so far is to restart IIS (Hosted on a Windows 2k3 server).

this only lasts about an hour or less and i have to restart again.

View 1 Replies

Page For File Upload Stops Processing In Middle Of Log Statement?

Aug 2, 2010

We have a very simple ASP.Net page for uploading a file to our webserver. The page has no controls - a client uses it to automatically send us a file each night.

On occasion, the file seems to not get to us, but the client reports that they have sent it.

We added some logging statements to the page, and discovered something quite odd. The page ceases to execute right in the middle of a log statement. No exceptions, just up and dies.

Here is the code-behind:

[code]....

I assume if there was a error in the transmission of the file that either an exception would be thrown from the reader.ReadToEnd() line. And if not an exception, I would expect the page processing to continue but that I may only receive part of the file (in which case it should log something).

The logging statement is only accessing a string variable, and it's inside a try-catch. NLog is the logging component we use, and we access that through the facade provided by the Simple Logging Facade project on Codeplex. So, we trust the logging component to be more or less bulletproof - we certainly don't see anything in our usage of it here that should be causing problems.

Why on earth could this page just up and stop processing like this?

The fact that we get a half-finished logging statement seems to point towards an error being swallowed in the logging system - but that just seems so unlikely - and we have NLog's internal logging on and it is not reporting any problems.

View 1 Replies

AJAX :: Why Timer Control Stops Ticking When Right Click On The Page

Sep 1, 2010

Asp.Net AJAX Timer control stops ticking when I right click on the page. Actually i am updating a label using timer control for every second. When I right click on the page the label is not getting updated. I mean the timer stops ticking.

View 4 Replies







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