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.
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)
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.
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.
I realize this is an extremely simple example but I'm trying to narrow down the possible places for things to go wrong.
I have an asp.net 3.5 page with between 5 and 15 dynamically created sliders/textboxes. I would like to have a button that the user can click to reset all the sliders to 0 (far left position).
I have no problem finding the sliders and setting their values; the problem is in redrawing the sliders back to the far left position. No matter what I try, the sliders stay exactly where they were, even though their values are all now 0.
Right now, the SliderExtender value (when dragged around) will cause a normal postback on TextChanged.
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.
It is working fine when the page get refreshed too.
I have verified the HTML file, the radiobuttonlist is loaded without the onclick event.
This is the code that opens the greybox (writecomments.aspx) page:
In the writecomments.aspx file, I just have 2 textboxes and 1 button (save-button). How can I make the greybox window close itself, and then somehow refresh the blog.aspx? Or maybe just a specific updatepanel for the current comments?
I got it working, I had to put this code in the codebehind, after the db-insert: Page.ClientScript.RegisterStartupScript(this.GetType(), "close", "parent.parent.GB_hide();", true); And for the refresh of the parent page, I edited the gb_scripts.js file on line 12 from false to true: this.reload_on_close=true;
Actually, I modified it a bit, so, I put the gb_scripts.js file back to it's default state, and I just just the followig line of code in the WriteComments.aspx codebehind file, just after the db-insert:
How to do this by the interval? Am I going in good direction?
I have a web page with several databound (via their property's) user controls in a multiview in a formview.
I decided to try Ajax (Adding ScriptManager, updatepanel etc).
All works fine except for the user controls.
The controls I use to contain the usercontrol property values ((invisible) Textboxes or Hidden fields) lose their value when i change from ond multiview panel to another. (In other words: usercontrols on invisible multiview panels lose their property value's). (When I change a multiviewpanel all the property fields turn emty, when i hit the update button of the formview afterwards the emty values are propagated to the database. (resulting in loss of data)) Textbox seems to hold its value, hiddenfield loses its value (when changing from one multiview panel to another).
This seems to be a coplication of the multiview in combination with ajax.
MyMasterPage.aspx and content page MyDefault.aspx. MyMasterPage.aspx has one input button [value="Menu-1"]. When user click the button, the button will pass value "Menu-1" into TextBox1Default1 at content page MyDefault.aspx, and then refresh UpdatePanelDefault1 at content page MyDefault.aspx asynchronously.
My problem is the post back is full post back when refreshing UpdatePanelDefault1. I would like asynchronously post back during refreshing UpdatePanelDefault1. copy the full code MyMasterPage.aspx and MyDefault.aspx below, and then paste / overwrite it into your blank aspx page for testing. I am using VS 2008