Having a bit of trouble here. I know that if you want to use a fileupload control inside an AJAX update panel then you need to create a trigger for the control that performs the uploading postback to the updatepanel, but the problem is, I have an update panel that contains web usercontrols. I therefore can't add a trigger to the control(FileUpload) directly because it exists in the web control.
I am using .net 3.5 framework. I have a Tabcontainer inside that I have place asp.net fileupload control which is inside update panel. It's been known fact that fileupload control does not work under update panel unless we use Postback Triggers.
The reason I have the update panel outside the Tabcontainer is so that when switching between tabs, the screen doesn't flicker with refreshes, etc. But as a result, I can't get the FileUpload working properly. The FileUpload1.Filename is blank, so it errors out.
Is there anyway to get this working properly? I've tried the latest AsyncFileupload within the control toolkit, but this caused all kinds of problems with my pages so that's out of the question. I tried an iFrame too, but this also didnt work properly.
I have a user control, that has an update panel and update progress control in it.
I use this user control in more than 1 location on the same page.... problem is, when ucA posts back, I see the update progress control for both ucA and ucB. I assume this is because it is a user control and the update panel and progress are named the same?
Either way - how do I make it so that the update progress only displays for the proper user control?
I've exempted the irrelevant bits of code. Essentially, I am trying to change the URL of an image control inside of an update panel inside of a custom user control from a function called inside an update panel from my main page. Using UpdatePanel.Update() isn't working: I end up waiting for the next full page POST to occur before all the updates I make to CustomControl from buttons within the main page's update panel are visible. I verified that Update() was being called via the debugger: there are no issues in that department.
Here, you can see Custom Control and the Button declared. The button is in an update panel to avoid giving a full POST and causing the whole page to reload.
This control stores images within their own seperate update panels because rerendering the images is very slow (it requires processing arrays of millions of datapoints) and the user only ever needs to modify one image at a time. I'm using Image1 as an example.
I use Update Panel in some parts of the page and when the user click on Insert Button, I want to save all the data which is got from the Update Panel's controls. But the data from the Update Panels' controls are not saved in the database. When I debug, the data are in the textbox and hidden field, they are in the Update Panel. But they are not save in the database. Other values, which is not in Update Panel, are saved in the database.
I have an accordion control in my web site. And in one of the panels, I have a drop down list box where, when the user selects an item, it updates the labels right below the ddlistbox. I have it so that it maintains the scroll position when the ddlistbox has an autopostback, but it's very obvious that the whole page posts back. My question is, can I/should I just enclose the ddlistbox and the labels (and a couple of text boxes) in an AJAX update panel? I already have a ToolScriptManager (because of the accordion control), so I don't need to have another script manager, right? I can just put the update panel (with the other controls inside of it) right in the accordion panel, right? Then when the ddlistbox posts back it won't have the delay of the whole page posting back? And it'll still execute the event handler for the listbox selection change? Does this sound right? I'm just looking to make the post back "invisible", and I would like to do a partial postback of just these few controls.
I am trying to wrap my head around update tabels, the thing thats boring me is if i should use one or multiple panels. When i load a control into my update panel should that control have it's own update panel? Or will it use the updatepanel it's loaded into? Is it even possible to dynamicly load a control into an updatepanel and do async post backs from there? Let me paint you a picture:
I have 2 user controls. The first user control generates custom paging and assigns the output as a string literal. The second user control is a simple repeater which uses values from the paging control via a query string to decide which relevant chunk of data to retrn.
The custom paging control is embeded in the custom reapeater control. In my my page, I simply call the customer erpeater control and everything works treat.I now want to add update panels to this but I can't think where to start.
how to find if a particular control is inside any update panel or not?
there is a master page which again has a child master page( which again may have a master page as its child.....)n that has a user control n this user control has my control. i have to programatically find if the control is inside some update panel(any where in the above hierarchy)
I have displayed 50% of text on label control..then i have given a dynamic link to Read More.
when i clicks on Read More it passes query string of id of that content to same page which shows full content.
Now, what I want is when I clicks on Read More link the page postback then loads the full content. So, is there any way to avoid postback using update Panel for any links generated dynamically on Label control.....?
I've been wrecking my brain on how to solve this but I'm all out of idea. I have a FileUpload control within an UpdatePanel. I have a button, let's call this btnSave, that saves the FileUpload.PostedFile into an sql server. What happens is that when the btnSave is clicked, I would save the file to a ViewState as well as upload it to the sql server. I also have an ImageButton, call this btnDel, that clears up the ViewState that holds the File in the viewState. This btnDel is an Asynchrounouspostback trigger to the UpdatePanel that holds the FileUpload control. If I browse a file, click on btnSave, everything would work fine. However, if I browse a file, click save, click on btnDel, browse anotherfile using FileUpload, and click save, sometimes FileUpload.PostedFile has a file and sometimes it is null. I'm really not sure what's causing this. I know that there is an issue of incompatibility if btnSave is made to be an asynchronouspostback trigger to the updatePanel. I don't see how making btnDel an asynchronouspostback trigger could affect this.
If I do take out the FileUpload control from the UpdatePanel and remove btnDel as a trigger, everything works fine except a postback is generated, which the client does not like.
I have block of code that consists of a textbox a button and a dropdown. The text entered in the text box filters the dropdownlist when the user clicks the button. The Ajax works great when it is in a simple page but if I put the same code in a User control I get flicker.
when I click on a record in gridview it should call the SelectedIndexChanged event and do some operations.
SelectedIndexChanged event is working OK, but when I put the gridview inside ajax updatepanle SelectedIndexChanged event will not response even if I add AsyncPostBackTrigger trigger for SelectedIndexChanged event.