AJAX :: CascadingDropDown Infinite Reload Loop In Webkit?

Jan 4, 2010

Using VS2005, VB code behind, I have a page with two DropDownLists and corresponding CascadingDropDown's. I want to automatically postback when the second DropDownList index changes, therefore I have set its AutoPostBack="true". I have wired up the web services and the lists are getting populated as expected in IE7+, FireFox and Opera, but when I view the page in a WebKit based browsers (Chrome, Safari) the CascadingDropDown appear to load in an infinite loop. I included theWebkit compatibility fix but the issue persists. I've attached a working example below.Anyone know why Webkit browsers are infinitely reloading the cascading dropdownlists? Is there a fix?Source code below:Markup:

[Code]....

Webkit.js

[Code]....

Code Behind:

[Code]....

Web Services Markup:

[Code]....

View 3 Replies


Similar Messages:

AJAX :: Numeric UP/Down Extender Causes Infinite Page Load Loop?

Aug 14, 2010

I have fought a bizarre situation for days. Anytime a certain listview loaded the page went into an infinite loop of reloading. I was finally put the listview on a page with nothing else to see if I could isolate the issue.Even with only the folowing code, it continually looped on load even though it brought in the correct data every time.

[Code]....

[Code]....

View 1 Replies

Infinite Loop With HTTP 401 Status?

Jul 7, 2010

I wrote an ASP.NET page that requires HTTP Basic authorization, which I put in the Page_Load function:

void Page_Load(object sender, EventArgs e)
{
string auth = Request.Headers["Authorization"];
if (string.IsNullOrEmpty(auth))
{
Response.StatusCode = 401;
}
else
{
string[] usernameAndPassword = Encoding.UTF8.GetString(Convert.FromBase64String(auth)).Split(':');
string username = usernameAndPassword[0];
string password = usernameAndPassword[1];
Login(username, password);
}
}

When I try to view the page in a browser (either Firefox or IE), it asks me for the username and password, and then...asks me for the username and password again.

Why does this happen, and how can I fix it?

View 1 Replies

C# - Forms Authentication Infinite Loop?

Sep 19, 2010

I have an application that works great on localhost with forms authentication.I deployed it to the deployment machine and it to the build machine and received and endless set of 302 redirects.I try logging onto the deployment machine and access the page via the deployment machines ip and it works again.So it is not working when I try and access the site from my computer to the build computer.

View 4 Replies

Web Forms :: Infinite Loop From Random Class?

Feb 17, 2010

Infinite loop from random class?

[Code]....

View 4 Replies

SQL Reporting :: Web Report Causing An Infinite Loop?

Aug 3, 2010

I am having problems moving my reports from VS2008 to VS2010. I have made several WEB reports in VS2008 that use the code below on the load event of the WEB page to provide a data for the report and they all work correctly. I have to use this method of providing data because I am using several complicated queries that brake the VS2008 and VS2010 wizard.

When I try to convert over to VS2010, the report loading message flashes on the screen and the report never loads. I have run this code in debug and found that it is causing an infinite loop. After the code runs, the load event fires again. I tried adding an exit sub at the end of the code for a test but it has no effect.Below is a sample of the code that I am using with a simplified query and names.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Declare connection string.
Dim cnString As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString.ToString [code]...

View 2 Replies

Web Forms :: __doPostBack Infinite Loop Using Onfocus?

Feb 15, 2011

I am calling a method with __doPostBack using the OnFocus event for the controls. However I need to update the values multiple controls when the server method executes. This actually causes on focus to keep firing. Looking for help. I tried using TextBox1.Attributes.Remove("onfocus") and then adding it the javascript after processing but it still keep looping. Here is a sample using to textbox's for simplicity:

HTML

[Code]....

Code Behind:

[Code]....

View 3 Replies

MVC :: RC2 Client-Side Validation Infinite Loop Bug?

Mar 3, 2010

I've found a bug with RC2's client-side validation that causes an infinite loop (at least in IE7).Basically, if you create a standard ASP.NET MVC 2 RC2 web application template and then modify the LogOn.aspx view to this:

[Code]....

Note the new table that has been placed around it.Now, when you fire it up in IE7 and hit "Log On", the whole browser freezes and goes into an infinite loop.I have narrowed this down to the use of OnPropertyChange and the setting of the CSS classes for the elements themselves. It seems whenever an element is in a table, and you change its CSS class, the OnPropertyChange event fires with the property of "value" (which fires the entire process off again hence the endless loop).This is reproducable for me in IE7 (I haven't tested FireFox, IE6 or IE8).

View 1 Replies

C# - Application_Error Exceptions Handling, Redirection Infinite Loop And CSS Loading?

Oct 9, 2010

I have error handling in Application_Error event of globals.asax file. Inside this event, I'm using Response.Redirect(~errorview.aspx) method, for redirection to site which is able to handle errors in user friendly way.

Everything works fine, unless exception is rising in Application_Start event. When error occurs there, my application gets trapped in infinite loop with the Application_Error method hit repeatedly. What is more, the page I'm redirecting to never gets hit. Changing Response.Redirect(~errorview.aspx) method to Response.Redirect(~errorview.aspx, false) changes nothing.

The good news is, when Response.Redirect(~errorview.aspx) has been replaced with Server.Transfer(~errorview.aspx), errorview.aspx page succesfully gets hit.

The side effect now is not loading CSS, and errorview.aspx page looks ugly. What is more, the CSS is not loaded only when exception occurs in Application_Start event. Exceptions thrown from any other place don't make the CSS mess.

How I can handle this problem in correct way, and why the CSS is missing in the one particular situation ? What is the appropriate way of handling errors in my case ?

UPDATE

For CSS loading, I'm using this:

<link href="~/Css/Layout/style.css" type="text/css" rel="stylesheet"
runat="server" ID="_uid" />

error page I'm transfering from: http://localhost/APP/Pages/Module/Pages/ErrorView.aspx

css folder path: http://localhost/APP/Pages/Module/CSS/Layout/style.css

View 2 Replies

How To Call A JavaScript Function Multiple Times In A Loop On Page Reload With C#

Oct 25, 2010

I'm using the local database functionality in Chrome and Safari and what I do when I want to save this to a remote database is to create a hidden textfield and then using JSON to stringify each row. In the code behind I then parse each JSON object and insert it into the list. What I want to do now is to delete these rows from the local database. I have a JavaScript function called deletePatient:

[code]....

View 1 Replies

AJAX :: Infinite Width Of ValidatorCalloutExtender

Mar 7, 2011

I have create a textbox to be validated and a rangevalidator along with validatorcalloutextender to display the error message. All seems to work perfectly, until I realise that my validatorcalloutextender's pop-up has a width like infinite. I have tried diverse css style which I found in google, but still, the width of that validatorcalloutextender is like infinite (though I have set its width to width="20px")

View 6 Replies

AJAX :: Use The AutoCompeteExtender Or CascadingDropDown?

Jan 31, 2010

I have a request:((( Now I can use the TextBox auto-complete but my problem that i use (Key/Value) mean that I should display for example the country name and use the country iso code in the code behind.... so how can I do that by using ajax (TextBox or DropDownList)

View 1 Replies

AJAX :: Use CascadingDropDown Without WebService?

Feb 2, 2010

Can I Use CascadingDropDown without WebService?

View 1 Replies

AJAX :: Cascadingdropdown Add Item?

Nov 23, 2010

Is it possible to add a new item to cascadingdropdown? I tried ddl_master.Items.Insert(0, "3"), but it doesn't show up. When I view the source in the browser it's there.

<asp:DropDownList ID="ddl_master" runat="server" Width="200" CssClass="ui-state-default ui-corner-all">
</asp:DropDownList>
<ajaxToolkit:CascadingDropDown ID="cdd_master" runat="server" Category="Action"

[code]...

View 1 Replies

AJAX :: Get The Name Of A Dropdownlist With CascadingDropDown?

Jun 17, 2010

I use the CascadingDropDown to fill several DropDownList in my web to manage different application access rights

I use the Ajax CascadingDropDown component for that.

My problem is that, depending on the application, the selections criterias of the values in my database will be different.

I would like to know if there is a way to get or to identify the name or the ID of the dropdownlist which execute the CascadingDropdown class in the .asmx part (in the "public CascadingDropDownNameValue[] GetApplication1(...)" class ) ??

The name of the DropDownList give me the code of the application manage use to select my data in my SQL query

I don't want to write several query for each dropdownlist like :

public CascadingDropDownNameValue[] GetApplication1(...), public CascadingDropDownNameValue[] GetApplication2(...) etc ...

as they will be create automatically at the loading of the page.

View 6 Replies

AJAX :: Using CascadingDropDown With A Database?

Mar 19, 2010

i am using ajax cascading ddl for binding customer, package, device and leadcount.. i need to bind the package by customer, device by customer & package, leadcount by customer & package & device. but we can pass only one value to the webservice method when binding.. but i need to pass 2 or 3 values to the webmethod. how can we do this. also when i select the customer i need to bind all the 3 controls. but in ajax cascadeing ddl we can give 1 parent control id only. i need the solution for this also...

View 1 Replies

AJAX :: CascadingDropDown - Only Show When It Has Values?

Jul 1, 2010

I've implemented a cascadingdropdown solution using the demo video here on ASP.NET.

Below is my code for one of my sub-categories. I want to have my sub category controls hidden and only show them if there are sub-categories (not all categories have sub-categories)

So, my question is how to get the count of the subcategories returned by method below and turn on the visibility of the dropdown control from the web method?

View 6 Replies

AJAX :: Getting And Setting The Values Of A Cascadingdropdown?

Jan 27, 2011

I'm using a CascadingDropDown in my page and I need to do the following things :

- Getting the list of elements in the dropdown

- Setting a specific value to the dropdown if it exists in the list

I am a total noob in webservices and javascript so I would like to do this in the codebehind but when I try to get the items of my dropdown, the only one returned is the one that is selected on the client side.

Is there a way to get the full list from the codebehind?

View 15 Replies

AJAX :: How To Use CascadingDropdown Inside Accordion

Mar 2, 2011

I already used the search, but without success.

I want to use a CascadingDropdown inside an Accordion.

The ParentControlID for the CascadingDropdown is in pane1 and the CascadingDropdown in pane2, but it won't work.

When I put them both into one pane it works. But separated into two panes it doesn't work.

View 3 Replies

AJAX :: Using Cascadingdropdown To Update Detailsview

Nov 9, 2010

I have two sets of cascading drop down lists they are contained in a detailsview <edititemtemplate>. The problem is that when the user clicks update; the original data is wiped out and the user has to redo the selection of all items contained in a cascading dropdown even if the user didn't want to change that particular aspect of a record. If the user doesn't select everything an error is thrown by the stored procedure in regrds to null values not being valid.

Is there a way i can use cascadingdropdown so that the current values are visible when the user clicks update; meaning that they don't have to redo selections for all items involving drop down lists. The current selections would be default values.

View 5 Replies

AJAX :: CascadingDropDown ERROR 403 500 12030

May 19, 2010

I have big problem with the CascadingDropDown. I have 60 CDD with one "Child". So on the page are 60 Parents and 60 Childs. When i use FF3.5 everything works fine when he is the only Browser which is connected to IIS

When i use FF3.0 i get Methode ERROR 403 and 500
When i use IE6 i get Methode ERROR 12030 or 403 or 500
When i use Google Chrome no ERROR no content in the List!?
When i use IE8 sometime it works sometime not!?

This errors are not shown on every DropDownList (but on most of them!) I played with the "<jsonSerialization maxJsonLength="50000000" />" in the Web.config which seams to make it work a little bit better.

What can i do to get the CDD working?

I think it is a timing problem. The CDD are not filled in the order i placed them on the page. Local it works better then remote.

Can you help me?

This is my WebService:

[Code]...

View 12 Replies

AJAX :: CascadingDropDown Method Error 500

Jun 13, 2010

I have the method 500 error problem, I have tried to do a simple reproduction of the problem still the same, if I run the webservice [URL] it returns the values needed ok (5) in xml format, but the dropdown always return error 500 inside, here are the codes (Using VS2008, NF3.5, Windows 7), I have the whole day trying to solve this but I just can't:

[Code]....

[Code]....

[Code]....

[Code]....

'WEBCONFIG

[Code]....

View 4 Replies

AJAX :: Error 500 Using CascadingDropDown Extender

Aug 19, 2010

I am trying to populate 3 dropdown lists with using CascadingDropDown. DDLs shows make, model and color respectively. The last DDL is having AutoPostBack = true and I am trying to display the values from dropdown in one label control. I am pulling data from a webservice to populate DDLs. I am not getting any error while compiling but when I run the code it shows Error 500. I am not sure where I am going wrong. I am following the tutorial video of 'How Do I' -

[URL]

I am using C# and .Net framework 2.0. Web Service code looks like this

[Code]....

And Web Page Default.aspx looks like this -

[Code]....

I don't understand where i am getting wrong.

[WebService(Namespace = "[URL]/")]

View 6 Replies

AJAX :: CascadingDropDown - Method Error 500

Dec 26, 2010

I downlaoded the sample code accompanying the "Cascading Drop Down Control to Access a Database" AJAX Toolkit video, and added the datasets from the sample code to my application running in VS2008 and AJAX 3.5. I think the sample code is in a prior version of AJAX.

When I ran my project I used to get Method Error 500 and after 2 days of searching the web could not get a solution. Finally by chance I recreated the datasets fresh in my app using the wizard as shown in the video and the error dissapeared and the cascading drop down worked beautifully.

View 1 Replies

AJAX :: CascadingDropDown Not Calling Web Service?

Nov 6, 2010

I am new to Ajax and i wanted to use the CascadingDropDown to get rid of the postbacks. But somethings wrong and when i debug i am not running any code from the Web Service for some strange reason.

this is my code in the .aspx file:

<asp:ScriptManager ID="ScriptManager1" runat="server">

View 4 Replies







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