PerformCallback On ASPxCallbackPanel Doesn't Seem To End?
Mar 17, 2011
We are using the ASP.NET controls from DevExpress.
In our application we use the ASPxCallbackPanel control at various places. the callback is triggered by "CallbackPanel.PerformCallback (...)" inside a handler of ClientSideEvents.ValueChanged .
Sometimes, and only when using Internet Explorer, the loading bar and the form gets locked. We do not get any server error - the client is just showing the loading bar, and doesn't stop.
The recommended error handling for callback errors is set in our Web.Config as follows:
<modules>
<remove name="ScriptModule"/>
<remove name="ASPxHttpHandlerModule"/>
[Code]....
Unfortunately, we can not really reproduce the error. It just occurs sometimes. Is there a way to set a timeout on a callback, so that the loading bar disappears after about 30 seconds? Or ist there a way to redirect to a special error page in the case of a hang?
View 1 Replies
Similar Messages:
Dec 13, 2010
I have a DevExpress grid that needs to be refreshed every time the value in a combobox is changed. For example, I have a combobox that sets the grid's page size. One of the requirements is that the combobox does not cause a full postback.
The combobox is declared like this:
<asp:DropDownList ID="cboPages" AutoPostBack="false" runat="server"
EnableViewState="false" OnSelectedIndexChanged="cboPages_SelectedIndexChanged" />
On selected index changed, it sets a cookie whose value is the selected value. When the combobox value changes, a javascript function is called:
function PerformCallbackOnGrid(grid) {
try {
grid.PerformCallback("refresh");[code]....
The function is attached in code behind: this.cboPages.Attributes["onChange"] = "PerformCallbackOnGrid(" + this.GridClientID + ")";
After performing these steps:The user changes the grid page size using the combobox, so PerformCallback is called at least once.
The user presses F5(refresh).
The user tries to change the page size again.
an 'Invalid viewstate' error message appears.
I have tried setting ViewStateMode to Disabled for the grid, also EnableViewState="false".
View 2 Replies
Mar 22, 2010
In my project when i click any button or linkbutton, it doesnt fire any event or doesnt postback.
It was working fine but now it hv problem like this.
I think i have changed some settings by mistake.
View 5 Replies
Jul 23, 2010
I debugged my code and it sets the visible to true and it doesn't show up in view/source either. PnlError is the one not displaying...
[Code]....
View 8 Replies
Jan 8, 2010
I uploaded a video in mp4 format to my site. Now, when I try to download it. I get 404 error but if I change the extension to wmv. I can download it.
View 3 Replies
Feb 3, 2010
I am trying to save an updated xml file to a url like this:
Quote:
//save the output to a file
xmlDoc.Save("http://www.example.com/HomeNewsLinks.xml");
But I get this error: URI formats are not supported.
Did some google search on this and it seems I need to use client.uploadFile method, but I am not able to find how to declare/define filenamexxx (below) and how to pass a username/password.
Quote:
WebClient Client = new WebClient();
Client.UploadFile("http://www.example.com/HomeNewsLinks.xml", Post, filenamexxx);
View 5 Replies
Feb 16, 2010
how can we ensure that a sub,it is not be used by two or more clients??
View 21 Replies
Dec 11, 2010
I've gone over this code many times now but can't find why the modal pop up extender isn't displaying the details view in the modal pop up. This is a Master/Details that is using the modal pop up extender to show the details view.
When I step through the code, it is calling things in the right order. The pop up show method is being called. When I check the items collection of the details view they have the right headers, such as First Name:. I found the data for the customer object on the data bound event of the details view and it's the correct record. So the detail view is being passed the correct data and being bound correctly.
I created this from a working example. I followed the same pattern as the example. I can't find what the issue is in this one that is preventing the modal pop up from popping up.
[code]....
View 1 Replies
Jun 10, 2010
I have the following HTML content. When i click the button, the page doesn't post to URL provided in action tag. The corresponding application is running, but still the page load of the CrossPage.aspx was not invoked.
<body>
<form id="UploadForm" method="post" enctype="multipart/form-data" action="http://localhost:2518/Web/CrossPage.aspx">
<div>
<input type="file" id="BtnUpload" />
<input type="button" id="BtnSubmit" value="Submit" />
</div>
</form>
</body>
View 2 Replies
Nov 1, 2010
Imports System.Data.OleDb
Intellisence does not come up and I am curious as to why Microsoft did not put it in there for intellisence use. My question is, well if Microsoft did not put it in there, How can I. I know putting the Imports statement in that it works, but Can I add the Imports statement to the guts of VS so I can use Intellisence.
View 1 Replies
Aug 10, 2010
I used this,
<a title="Logout" onclick="javascript:document.getElementById('ctl00_ContentPlaceHolder1_LbLogout').click();" href="#" class="logout">Logout</a></li>
<asp:LinkButton ID="LbLogout" runat="server" style="display:none"
onclick="LbLogout_Click">Sign out</asp:LinkButton>
View 2 Replies
May 20, 2010
1. The plus sign '+' is skipped (doesn't appear) when I submit the content.2. When I copy -for example- a code from Visual Studio and paste it in the editor, the spaces are skipped.I want the code to be displayed exactly as it is in Visual Studio.
View 4 Replies
Feb 11, 2011
I want to change the web site where the IIS is. My desktop doesn't have IIS. Therefore, when I hit F5, the project will try launch my ASP.NET Web Application Project from http://localhost I needs to it to launched from [URL]. How can I change the configuration so the web page with URL starting as [URL]? I need it to confirm that the project is being served by the ASP .NET development server.
View 7 Replies
Jul 14, 2010
I am following though the examples in Professional ASP.Net MVC 2 and one of the examples doesn't work for me.
[HttpPost]
public ActionResult Edit (int id, FormCollection collection)
{
Dinner dinner = dinnerRepository.GetDinner(id);
if (TryUpdateModel(dinner))
{
dinnerRepository.Save();
return RedirectToAction("Details", new { id = dinner.DinnerID });
}
return View(new DinnerFormViewModel(dinner));
}
I understand that it's suppose to take the values from the FormCollection, and then update the dinner object with it, bit I don't see the collection get referenced anywhere.
View 2 Replies
Mar 23, 2011
I am trying to embed a mov onto a cshtml page, all the resources seem to be referencing properly but the video won't play.
The videos are located in the /Content/Videos directory. I thought it was a permission issue but I granted everyone permission with no luck. Could this be an IIS issue? (Checked mime types for mov) or do I have put to do something in the global.asax (routes.IgnoreRoute) for mov files extensions?
Firebug shows when the player is clicked to play the video it does a successful get of the video but I don't think it is supposed to do a get action, I tested the same video from a plain html page opened from the file system, it doesn't invoke a get action when player is clicked.
I also tried to play the movie by typing the whole path in the address bar again no luck it just comes up with a quicktime logo with a question mark inside it.
Script references:
<script src="http://www.apple.com/library/quicktime/scripts/ac_quicktime.js" language="JavaScript"
type="text/javascript"></script>
<script src="http://www.apple.com/library/quicktime/scripts/qtp_library.js" language="JavaScript"
type="text/javascript"></script>
Script to embed the video:
<script type="text/javascript"><!--
QT_WritePoster_XHTML('Click to Play', '../Content/Videos/myMovie.jpg',
'../Content/Videos/myMovie.mov',
'520', '296', '',
'controller', 'true',
'autoplay', 'true',
'bgcolor', 'black',
'scale', 'aspect');
[Code]....
View 1 Replies
Jun 1, 2010
I'm having a problem trying to work out if my button is working or not. I've tried twice, with the custom validator on and off. On both occasions, nothing seems to happen. Am I missing something with the validator and with the button?
I've been trying to debug it but can't work out how with just Notepad++ so I'm struggling for ideas on why nothing seems to work. When I press the button, it just goes back to contact.aspx.
contact.aspx
<% @ Page Language="C#" MasterPageFile="mastersmain.master" CodeBehind="app_codecontact.aspx.cs" Inherits="Contact.Email" %>
<asp:Content ID="Test" ContentPlaceHolderID="Body" Runat="Server">
<p>
[Code]....
View 6 Replies
Aug 31, 2010
I have div which it is hidden by default , when the use clicks show link the following javascript method is called:
function ChangeControlVisibility(elementID) {
var element = $("#" + elementID);
if (element.css('display') != 'block' && element.css('display') != 'table') {
element.show();
[code]....
this step works but when i call the previous method at page_load event the method doesn't work:
element.css('display') undefined.
View 3 Replies
Aug 12, 2010
i have an situation like that in a mail message company logo doesn't apppear.. it just dispalys the empty box
View 1 Replies
Jul 27, 2010
[Code]....
And in default.aspx, the code is
[Code]....
But it is not working, the error is at alert(BiblePeopleArray(0));
View 4 Replies
Mar 29, 2011
I have an application in ASP.NET that uses forms authentication. It has the following code.
if (User.Identity.IsAuthenticated)
ViewStateUserKey = User.Identity.Name;
Stepping through I see this code executes on each page load. When a logged in user requests the page, the ViewStateUserKey is filled in with their username. If you let the page sit till forms auth times out, the user is no longer logged in, and a post back fails on validation of the viewstate because the name is now null. However I have noticed if I put other buttons on the screen, and the post back, it doesn't fail, even after authentication has timed out. Should this error every time it times out?
View 1 Replies
Oct 31, 2010
I have a asp.net page with a datalist with a textbox and a button on it, on page load the textbox gets text in it, if I change the text and press the button the text doesn't get updated.
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataTable table = CategoryAccess.GetProducts();
ProductList.DataSource = table;
ProductList.DataBind();
}
}
protected void btn_Click(object sender, EventArgs e)
{
string Name = textbox.Text;
CategoryAccess.UpdateProducts(Name);
}
}
View 2 Replies
Sep 17, 2010
I am relativity new to asp.net programming, so this one has me stumped. I manually created a dataset and set its value to the Datasource of the GridView control and then call the Databind method, but it isn't refreshing. I recreated a simple version of what I am doing so someone can advise me what I am doing wrong. I didn't include the Master file, as I didn't see it as pertainent.
Code for ASP page
<%@ Page Language="vb" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TestGridView._Default" %>
<p>
<asp:GridView ID="GV1" runat="server" AutoGenerateColumns="false">
<Columns>
[Code]....
View 2 Replies
Feb 20, 2012
I'm quite fresh when it comes to VB.NET an i tried to make a form. Submits very nice in IE8, FF and Chrome, but IE9 fails to submit it.
The code i have:
<%@ Page Language="VB" Debug="true" %>
<% @Import Namespace="System.Web.Mail" %>
<% @Import Namespace="System.IO" %>
<script language="vb" runat="server">
Sub Send2Mail (sender as Object, e as EventArgs)
[Code] .....
I replaced some mailadresses to a imaginary one.
View 5 Replies
Jan 28, 2012
I'm just trying to teach myself a bit of CSS and it's pretty straight forward but I am getting something odd.
I built a css file, tried out various rules, all good.
Now I edit the css file. Everything compiles ok but it's still using the rules as they were before I edited them. I've even removed some of them from the css file and they're still being used. I tried removing the reference to the css file and the rules all stop being used (as I'd expect) but when I add the reference back in and the old rules reappear but not the new ones.
I'm guessing there's some 'built' version of the css file and that's what's actually being used. But rebuilding the website isn't causing the built css to refresh itself so my edits aren't being picked up.
edit> forget it, I was hitting f5 not ctrl f5. Just a bit of cuture shock switching from desktop dev.
View 1 Replies
Jul 16, 2010
I get this error: Description: An error occurred during the compilation of a resource required to service this request. review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'Xml' does not exist in the namespace 'System' (are you missing an assembly reference?) Source Error:
[Code]....
Line 15: using System.Web.Services.Protocols;
Line 16: using System.ComponentModel;
Line 17: using System.Xml.Serialization;
Line 18:
Line 19:
Source File: c:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files
oot4db438488b8d9090App_WebReferences.j5ljvr6f.0.cs
Line: 17
I have this in my web.config:
<compilation debug="true" strict="false" explicit="true" ><!--targetFramework="4.0"-->
<assemblies>
<clear />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
[Code....]
View 7 Replies