AJAX :: To Change SliderExtender Value From Server Without Postback?

Oct 21, 2010

Right now, the SliderExtender value (when dragged around) will cause a normal postback on TextChanged.

My situation is, the server side code would also like to dynamically change this slider value. When it does this, it changes the sliderextender value by javascript. However, teh problem is, when this happens, another postback occurs raising the OnTextChanged
event when a postback occurs.So how can I change the sliderextender value from the server side withotu raising a postback?

I've tried to set autopostback=false, then set teh value, then setting it back to true but this wasn't workign in javascript.

View 4 Replies


Similar Messages:

AJAX :: SliderExtender Behavior Can Only Be Capture After A Postback?

Dec 3, 2010

I'm using SliderExtender in content of a Master Page.

It has a JavaScript function that is called in both $(document).ready and Sys.WebForms.PageRequestManager.getInstance() .add_endRequest() .

When I initial the page, the function is not active, it says " $find('BehaviorID') " is null, while other JavaScript function (without behaviourID) works smoothly.

But when I do a postback on the page. The slider function turns to available.

It seems the page didn't generate properly, miss a slider tag with class = "...BehaviorID..."

View 2 Replies

AJAX :: SliderExtender Causes TextChanged Event To Fire On Every PostBack?

Oct 7, 2010

I need a Slider that will only postback when the slider has been moved. Can this be achieved with SliderExtender?

I have a TextBox with autopostback=true, within an updatepanel within a usercontrol. The TextBox is extended by SliderExtender (default settings).

The TextBox's TextChanged event fires perfectly when the slider is moved (MouseUp - standard extender setting). The aspx page is partially posted back, and all is well.

However, if another usercontrol on the same aspx page causes a partial postback, the SliderExtender causes the TextChanged event to be raised - for no aparent reason. This is causing problems.

Is it possible to prevent postback unless the slider has actually been moved?!

View 2 Replies

AJAX :: ListView & SliderExtender?

Apr 22, 2010

I have a sliderextender inside a listview and there is a button that save the sliderextender values inside the listview. My problem is when i am trying to get the value of each slider i do not get the value set. My boundcontrol that i declare on the sliderextender changes but when i try to get its value its "" but there is a value displayed.

View 2 Replies

AJAX :: SliderExtender Hides Textbox?

Feb 11, 2010

I've tried variations on CSS and layout (such as tables) but haven't been able to solve this problem. I've been able to recreate this with my simple example below on both Firefox 3.6 and IE7. When I load this page, the textbox blinks in for a second and when the slider appears the textbox will disappear. In the case of this example, the slider appears in the place where the textbox tried to load. In other examples I've created the textbox and slider load in different places but the textbox still disappears when the slider appears.

[Code]....

I realize this is an extremely simple example but I'm trying to narrow down the possible places for things to go wrong.

View 2 Replies

AJAX :: SliderExtender Control - Step Not Working?

Mar 3, 2010

have a sliderExtender Control over textbox like this

<cc1:SliderExtender
ID="SliderExtender1"
BoundControlID="TextBox1"
TargetControlID="TextBox2"
runat="server"
Maximum="10000"
Steps="500"
Length="200">
</cc1:SliderExtender>

However, when I drag the slider the incremental is not 500. How to ensure it increase by 500 each small drag movement ?

View 4 Replies

AJAX :: Sliderextender Setting And Manipulating Values?

Dec 10, 2010

On my page I have the code:

[Code]....

and to set the value in the code behind my Page_Load has

[Code]....

If leave the slider alone or change the value Label1 always says 110. I want it to say the slider value + 10.

View 2 Replies

AJAX :: Linking Multiple SliderExtender Controls?

Jan 30, 2011

So I want to build a page with 3 sliders that are linked and limited to 100 total. So if the user slides the 1st slider to 100 then the other 2 wont move. Or they could do 50 / 25 / 25 etc etc...

So I need to limit each slider maximum based on (100 - the other 2 selected values) and I'd like to do it without a postback.

View 1 Replies

AJAX :: Use Javascript To Call A SliderExtender (textbox) To Update Its Value?

Oct 18, 2010

I am trying to develop two step size buttons + and - so that when you click either one, the AJAX SliderExtender will magically move itself by one. I have tried implementing the following functions:

document.getElementById ("Slider1_BoundControl").value = 5;
document.getElementById ("Slider1").value =5;

here's what happens, I see that the BoundControl textbox works and it gets updated to 5. However, the slider still does not update to its new position. When the slider moves, a postback will occur. The Slider1 is the textbox that is the targetID to SliderExtender1 . The boundcontrolID is Slider1_BoundControl (textbox)

View 1 Replies

Javascript - Lose The Ajax-SliderExtender After Page Refresh?

Nov 30, 2010

I'm using a Ajax SliderExtender in a UpdatePanel. I set a BehaviorID and call $find('behavorID').add_valueChanged function in the $document.Ready. Everything is fine but when I press F5 and refresh the page, I lose the slider in a 1/3 (wtf) chance. If I set var slider = $find('behavorID'), it recognises slider is null.

View 1 Replies

AJAX :: SliderExtender Occasionally Not Render TextBox Correctly?

Oct 18, 2010

I am using a bunch of SliderExtenders to morph the ASP Textbox into a Slider control. This has worked great. However, I noticed that 1/20 times, occasionally, the sliderextender fails to morph the textbox. So the textbox actually appears during initial page_load. However, you can still drag the slider around because it is also rendered beneath the textbox.

A subsequent page refresh fixes this problem until some other time.

Second thing, this also frequently comes out more when switching between a javascript tab and an updatepanel.

View 1 Replies

AJAX :: Can Do Postback On Tab Index Change On Tab Control

Sep 6, 2010

i want to do postback and do some logical things in code behing whenever user click's Tab other than in which he is presently working.Is this possible? How?

View 2 Replies

AJAX :: Can Change The Content Of The Content Place Holder To A New Page With Asynchronous Postback

Jan 4, 2010

I am building a website in which all of the site layout is in Master page and the content of the site is in the inherited pages. I have various links for navigation in which i simple use Response.Redirect to transfer to different pages. Now the problem is that I want to put the content place holder inside Ajax Update panel so that the postbacks are Asynchronous and I want to show the postback by an animated image inside Update Panel progress control. The problem is that I am unable to achieve this result and the entire page is posted back and rendered again. I have placed the content place holder inside the Ajax control toolkit's Update panel but it does not work. Is there any way that I can change the content of the content place holder to a new page with asynchronous postback.

View 9 Replies

AJAX :: SliderExtender - "not Set" Value?

Oct 7, 2010

Is it possible to set a "not set" value for the SliderExtender? For example, I have a SliderExtender defined to take an integer value from 1 to 5. However, until someone sets it, I want the SliderExtender to return a "not set" value, and for the handle/rail to signify that it has not been set (e.g. handle/rail in a different colour). I have tried using the value "0", NULL, Empty, dbNull. In each case I either receive an error (invalid value) or the SliderExtender "cleverly" sets itself to the minmimum value of "1" I have tried the following...

When the usercontrol is initially loaded I set the rail to red colour using RailCSSClass, and set the TextBox to "0" - which is not a legitimate value because the extender expects an integer between 1 and 5. The result, upon initial loading of the usercontrol is that the rail is red in colour (indicating to the user that they need to set it) and the handle appears in position 1. All is reasonably well at this point. HOWEVER, if anything on the web page causes a postback, the SliderControl's TextBox sets itself (as expected, I suppose) to "1", and the TextChanged event fired - making it look as if someone has now selected a value. So.... can the SliderExtender/TextBox be made to "accept" a "not set", value by some other clever means - and to remember that "not set" value between postbacks?

View 1 Replies

AJAX :: Send Receive Data Between Server And Client Without Postback

Mar 7, 2012

as per my flow on every click i have a postback  without which i cannot store data to client or server.i have 2 ways of data storing one is client side in javascript variables in form of array(which can be lost on postback) the data to be stored are of differnt types some are numeric , some single characters some sepearted with comma other way is on each post back save the data in a session varibale on server & then access currently i have second way considering both the ways and in accrodance with the current flow which is best for maintenance & access speed reasking as i am notyet cleared abt the things.

View 1 Replies

AJAX :: Canceling An Asynch Postback With Lengthy Server Side Process

Jan 15, 2011

I'm having a bit of trouble cancelling an asynch postback. I have an update panel with an update progress which contains a cancel button so that the user can cancel the postback. When the user clicks a button to generate a report the update progress is shown. The report can take a bit of time as it has to loop through a thousand or so times creating an excel spreadsheet. If the user decides to cancel running the report for any reason then they can click the cancel button which I then call abortPostBack() in javascript which stops the update progress and the page is shown again. However, the user can't do anything else like navigate to another page as the server is still processing the loop. How would I stop the loop on the server processing when the user has clicked the cancel button?

View 3 Replies

AJAX :: TabContainer - Run Server Side Function On Tab Change

Jan 24, 2010

As far as I can see there are only client events on this container, and I need to update a gridview when the user changes tabs.

View 2 Replies

C# - Change Span Only When Sql Server Table Changed - Ajax 3.5 Jquery

Mar 27, 2011

I have asp.net label called NumberLabel.It is changed from codebehind(asp.net/c#) by calculating the number of rows in an sql server table called "MyTable". Every time a user open this page,the same code/stored procedure is executed to bring the number. Is there a way to to bring the same number for all users and change it only when there is an update in "MyTable".this will optimize a lot time,executions,(SQL server side and webserver side).Does asynchrounous c# exist?or doing that by ajax.

View 1 Replies

AJAX :: How To Prevent Master Page Postback When Update Panel Asynchronous Postback Happened

Oct 15, 2010

When an asynchronous postback happened inside update panel, another postback happens also for MasterPagenot only update panel embedded page .I want to prevent this MasterPage postback . is this possible ?think like i have a MasterPage and another page which is test.aspx which is content page of MasterPagei have update panel at test.aspxwhen asynchronous postback happens at this test.aspx update panel it also loads
MasterPage Page_Loadi want to prevent this (it should not also load MasterPage Page_Load)

View 3 Replies

Web Forms :: How To Change The URL Postback

Dec 15, 2010

Within the Properties of the 'System.Web.UI.WebControls.Detailsview', how do I change the post back to a specific URL page?

Front end client code is available at [URL]

View 1 Replies

C# - Change Image On Postback?

Aug 17, 2010

So, here's the scenario: I have a page in my asp.net c# based website, which displays data dynamically after taking the request from query strings.For example:

Brand=HTC&model=Wildfire

Now, in this page I want to display all the deals available in each network separately.So, on the first pageload, I retrieve the data from the tables of each network that has the requested handset in a deal, store it as a datatable in the cache.I have a datalist for displaying the imagebuttons of the networks that have the deals of that handset. The user will click on the imagebutton of a network to view the deals of that network.

To display the deals, I am using a gridview which retrieves its datasource from the cache. Also, I have provided filtering of the rows through dropdowns in each columns' header of the gridview.All this is inside an updatepanel.
Everything's working fine.

The Problem: I want that whenever the user clicks a network's image button, an image should appear above the gridview, containing the logo of that network.

Things that I have tried: I am storing the networkname in the cache(which also required for filtering the gridview), whenever an imagebutton is clicked. Then, on pageload, I'm doing this:

if(ScriptManager1.IsInAsyncPostBack)
{
Image img = new Image();[code]...

where, nw_image is a tablecell which i'm using to display the selected network logo.and also I've saved the network logos in the images folder as: 'network'_logo.jpg eg: 3_logo.jpg, orange_logo.jpg

The result of this is that when I click a new image button, the image that is displayed is that of the previous network, i.e. the cache is always one postback late.

View 2 Replies

Why The Positions Of The Elements Change On The Page After A Postback

Apr 20, 2010

I have an asp.net page with couple of div elements on my page. Some of them are floating left and some are separated with <br /> elements.When I put a button which just post-backs and click that, I see that some divs (which were floated to left before) are repositioned to a new line

View 1 Replies

Web Forms :: Change Screen Position On Postback?

Oct 28, 2010

Is there anyway to define the screen position after a postback?

Specificaly i'm referring to the vertical scroll position. Some of my controls are set to AutoPostback = True. Depending on their selected value it then reveals a hidden ASP.Net panel and some more questions.

Problem is that with each post back the page refreshes at the top and i have to scroll back down to my question. I can use the .focus() control, that's fine, but it doesn't work as perfectly as i'd like. Is there any way of defining how many lines or pixels the screen is already scrolled to upon postback?

View 4 Replies

Web Forms :: DropDownList Causing Postback On Change

May 9, 2012

I have 1Dropdownlist 1 button and 1 datalist in my page i bind my datalist in Page_load event that show all my product from my DB ... Users  can select their city from DDL click on button and in datalist just show product that are on selected city ...

Problem: when users select PARIS from ddl in datalist show product from selected city and when users want change their city from ddl before their click on button to show that city's product page load again and it show all product again...

I want when users change ddl.selecteditem in datalist show last result of user's selected not the result that i define in page load ... This is my code on page load ...

  protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) {
DDLcity1.Items.Add(new ListItem("select your city", ""));
BindDropDownList(DDLcity1, "Guidcity", "cityname", "ID");
}

View 1 Replies

Web Forms :: How To Eliminate Postback On Text Change Event

Jan 21, 2011

I have two text boxes and one label control. All three controls are in different "td". Now what i want to do is , i am subtacting a value of textbox2 from the value of textbox1 and storing an answer in label control. I have written a code of subtracting values in the text changed event of textbox 2 and i am also getting an answer in label control. But when text changed event fires, it takes some time to execute which i reall dont like. this is why i want to use update panel to reduce that time. how can i use update panel in this kind of situation. i tried but not successded. so please write some code here related to my controls.

View 4 Replies







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