I'm building an asp.net cutom control inside which I have two dropdownlists: companyIdSelection and productFamilySelection.I populate the companyIdSelection at Page_Load and in order to populate the productFamilySelection depending on the selected item in companyIdSelection.I'm using UpdatePanels to achieve this, but for some reason every time I update companyIdSelection Page_Load is being called ( which as far as I know should happen only when the entire page is reloaded ), the list is being reloaded again and the item the user selected is lost( the selected item is always the top one ).Here's the code
[Code]....
Also, I tried setting the UpdateMode of the UpdatePanel to "Conditional" and adding an asyncpostback trigger
but the result was the same. What am I doing wrong?
PS: I fixed the updating problem, by using Page.IsPostBack in the Page_Load method, but I would still want to avoid a full postback if possible
I made a comments area with 4 labels, 4 textboxes and the Submit button. When the user clicks on "Submit" in order to INSERT DATA, it realoads the entire page and change the 'focus' to the beginning of the page. How can i change that so that onClick, it INSERTS successfully the data and come back to the row of the comments? Or maybe it just updates that comments area instead of the whole page? And also i have a Listview control to show all the comments and it has PAGING enabled. But when the user clicks on the paging buttons, it reloads the entire page and the user sees the beginning of the page, and he has to scroll down again to go back to the comments area.
I have a flash menu that includes category links to my aspx pages(and sub-categories). This flash menu is located on a MasterPage, and all of my content is inside a content place holder. Whenever i click an item in the flash menu, the flash reloads itself while entering the page, which is absolutely normal. I tried using Frameset in .Net it didnt work for me. tried also the UpdatePanel also didnt work, maybe I've done something wrong in there or whatsoever. how to do this so the flash menu wont reload each time i click an item?
Im currently experincing some difficulties with a button refreshing the page even when there is no code in the button. Ill try and explain the best i can the situation but if anyone needs any further clarifaction then please ask, im not 100% sure which part of the forum to post this in so i hope this is the right one. Im making what is effectively an online file repoistory, and have the folders set up in the database as one table where each folder has a parent value. If the parent is a root it as a value of 0 otherwise it has the parent folders id. The root is created automattically for a user and they can not do anything with it other than add new folders or upload a file to it. When a user is using the application they start of viewing the contents of the root folder and can see all the files uploaded on the root in a grid view which populates itself using the "data source" smart tag. It knows which folder it should be looking at via a hidden value which is the folders id. The folder gird view is again populated via the smart tag option and again based on the folder currently being viewed folder id. The user can click on a button in the gird view to open one of the child folders via the row_command event handler. This changes the hidden value to the id of the child folder and the grid views change to reflect that it is now looking into that folder. This all works fine. The problem is click on a button to say add a new button, even when i removed the code from the button it still refreshs the page and goes back to viewing the root folder. Im self taught so dont really understand what goes on behind the scences to well but im guessing theres some reason to why it happening. If anybody could explain why this behaviour happens and any possible solutions to this problem.
I'm using a wizard control with 4 steps, when I use the previous button to navigate back to the previous step the page reloads but at the bottom of the page.Instead of showning the whole of the page, the user views the footer of the site and the previous button and next button.I'm sure there is a very simple answer to this but I just can't figure out how to get the page to reload to the top.
I'm trying to save some content whenever a button/hyperlink is clicked using jquery.ajax (Using Asp.net 3.5). The logic is as follows:
Through .bind in jquery I bind my own method(MakeLog) to a button click or hyperlink click. The click events of button/hyperlink contain nothing, I need to use .bind for selective controls.Now we have a button whose click event will fire a method, say MakeLog.Code snippet for MakeLog is as follows:
This works fine in IE but in Firefox this is not sending the data back as expected.I tried to identify the issue and came across the following: http://stackoverflow.com/questions/3522944/jquery-ajax-calls-async-false-vs-async-true .What I understand is that, whenver page is redirecting/reloading due to button click or hyperlink click the async call is not working properly.
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
I have an updatepanel on my master page that just updates the database every 30 seconds, what is happening is that everytime it is fired, it will refresh everything on the page_load of the content page that are not under ispostback = false. to disable such a thing just for this specific updatepanel?
I have an asp UpdatePanel, an asp panel, an asp timer, and an asp label on my web page, as you know the whole idea of updatepanel is trying to implementing partial page rendering mechanisem, however, it is not the case in my scenario, here is the code:
[Code]....
and on the pageload event, i assign:
[Code]....
strangely, the labl1 does update the time without causing the whole page post back, but the panel does cause the whole page refreshed, and the asp panel contains asp buttons and those buttons are generated dynamically by code behand c# file, am i missing sth here or the nature of asp:panel will cause the whole page post back?
My problem: I have a submit button in my page. The pressed, it reveals a hidden div with updated info and places the page at the right level with an anchor. The div contains a gridview with pages. When I change pages, because of the anchor, I am brought back to the top of the page (if I was at page.aspx#middle, it sends me to a.aspx#). No matter what I do, I can't manage to tell the pages to only update the updatepanel, it always changes the link. I do not have this issue if I don't have a hash, it simply remains at the same place.
What I am trying to do: either not go to the top of the page, or even better, go to the middle of the page, to my #middle tag.
What I have tried: MaintainScrollPositionOnPostback (I need to be able to set my position, so it doesn't work), ClientScript.RegisterStartupScript(Me.GetType(), "BookMarkScript", Script.ToString(), True) (it never worked, never set my page), putting a window.location.hash after my __doPostBack (because it updates my page twice for an unknown reason), ASyncPostBackTriggers (seems to entirely ignore my updatePanel when I am using hashes, even if it works without them).
I have a small website that uses 1 masterpage and several content pages. I'm able to insert a <ScriptManager> onto my content pages (just a couple of them). However, when I try to insert the <UpdatePanel>, it won't take it. I tried to wrap the <UpdatePanel> around a <Div> and it didn't like that, so then I tried wrapping the <UpdatePanel> around the actual textbox and it didn't like that. Below is some sample code.
I have two update panels and one javascript control.
When the javascript button is clicked, it forces a partial postback on UpdatePanel2. UpdatePanel2 is populated with dynamically created buttons that have javascript effects (jquery) but when click can also induce a postback. My problem is that, when clicking on these dynamic buttons, the whole page does not do a partial post back but rather UpdatePanel2 itself does a partial postback and everything is gone.
However, what I want to do is be able to tie each of the dynamic buttons in UpdatePanel2 (After being dynamically created) and make them an asychnonous triggers to UpdatePanel1. So that when clicking on these dynamic buttons, ONLY UpdatePanel1 is doing a partial postback refresh. UpdatePanel2 stays put and remains the same.
I have various tabs on a page. Some tabs have gridviews inside updatepanels. I save alot of data using a Pagemethod. I fire off various save functions. I now need to update two gridviews that are in sepearet updatepanels from within the Page Method. How do I do this?
I am working with .net c#. Is there a way to see the rendered html code under the updatepanel?
more info:
I dynamically generate UI controls and place them in a asp:Panel control I have under updatePanel. My page is initially almost empty, and I add about 50 new controls upon button click. However, I cannot see the html code generated in the page source. as in, I can see my textfield on the screen but I cannot see the corresponding code in the html source on my browser.