Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










Drop Down List In User Control Cause Full Page Postback?


I have the following scenario. I have a page that hosts several user controls. The user controls are all surrounded by a single update panel. All user controls have a save button on them. When the save buttons are clicked the page updates the update panel as expected. Some of the user controls contain editable list views. Whenever an action is taken on these list views, the Update Panel is NOT refreshed, but the whole page posts back. How can I get these ListViews to also refresh the Update Panel? I cannot post the code because of NDA. There are no javascript errors on the page reported by either IE8 or Chrome.


View 1 Replies (Posted: Jan 14 at 16:51)

Sponsored Links:

Related Forum Messages For ASP.NET category:
AJAX :: Web User Control Loaded Into PlaceHolder Control Causing Full Postback On Parent Page?
In my default.aspx page I have a PlaceHolder control within an UpdatePanel. In this placeholder control I will dynamically load a web user control, which is just a form with a submit button. On this user control, I have the form within an update panel and I have the "Submit" button's Click Event added to the triggers.

When I submit the form, the UpdatePanel on the web user control nor the update panel on the default.aspx page are capturing the post back, thus causing a full post back which refreshes my page.

how to capture this post so its rendered in Ajax and not a full post back?

Posted: Jun 01, 2010 09:29 PM

View 1 Replies!   View Related
User Control Inside Update Panel Causing Full Page Postback
I have a user control with linkbuttons (used for paging) and a repeater inside an update panel. The paging works correctly, but is causing a full page postback every time I click through to the next page.

The update panel looks like this:

[code]....

So far, I have tried adding an async postback trigger for the user control, which does cause an async postback but does not update the rest of the text in the update panel. In otherwords, the async postback occurs and the next page shows up, but the original text in the repeater is there as well just below it.

I have also confirmed that I have IDS set on my linkbuttons, since that can trigger a full postback inside an update panel.

I have tried changing the update panel mode (Always, Conditional, ChildrenAsTriggers, etc.).

None of it makes a difference - the only thing that actually causes an async postback is to use the trigger, but then the rest of the content in the update panel is not updated, so I get duplicate content.

Posted: Jul 13 10 at 15:06

View 2 Replies!   View Related
AJAX :: Full Page Postback Using Login Control?
I'm using an UpdatePanel (with UpdateMode conditional) and in the ContentTemplate I've got a Login control. Even though the control is embedded in the UpdatePanel as soon as the Login-button is hit a full page postback is being done. I've read some posts on the subject indicating that these controls are incompatible - but these posts already date from 2 years ago. Does anybody have more recent information on the subject?

Posted: Apr 14, 2010 02:00 PM

View 5 Replies!   View Related
Web Forms :: Drop Down List, User Control, Getting Value Of DDL?
As the tree said to the lumberjack, "I'm stumped". I've been doing .net for years, and my brain is in vapor lock...Very simple here.. I have a user control which has a dropdown list, and a button on it. The DDL is databound. When the button is clicked, I want to retrieve the value of the dropdownlist. I check to see if the page is a postback and if not, I bind the DDL.I put my user control on my master page.When the button is clicked, the value of the dropdown is not obtainable. The selectedvalue is empty. I figure this has something to do with the order of the page being regenerated.

Posted: Nov 17, 2010 04:03 PM

View 2 Replies!   View Related
Trigger An Update Panel From A Drop Down List In User Control?
I have a user control in a master page with two drop down lists. When the user selects an item out of either ddl, I want to load a specific user control inside an update panel on the content page. I can't figure out how to get the user control to trigger the update panel.

Master

<%@ Register src="toolbar.ascx" tagname="toolbar" tagprefix="uc1" %>
<head id="Head1" runat="server">
</head>
<body>

[Code]....

Posted: Mar 23 10 at 19:49

View 2 Replies!   View Related
Web Forms :: Allow The User To Choose An Item, But Rather Than Populate Another Drop Down List Control?
I've got a drop down list that I want to populate with items from a SQL Server database, which I did successfully, but I can't figure out how to write an if statement that will clear the drop down list based on a selected index and repopulate it with data from another table. The drop down list is inside an update panel that auto posts back.

Basically I want to allow the user to choose an item, but rather than populate another drop down list control, i just want to repopulate the current one with new data.I'm guessing that if I want to get data from more than one table the code below isn't going to work for me. Could I get the data from all the tables at once and store each table data in its own variable until I need to use it? (Each table will have under 10 items, in 5 tables.)

Here is the code to get the data from the database:[Code]....

Posted: Jun 22, 2010 01:25 AM

View 10 Replies!   View Related
Forms Data Controls :: Built A User Control That Displays A Drop Down List Of States?
I built a user control that displays a drop down list of states. I'm using it, but if I try to put it in a listview control, all I get is the frop down with nothing in it.

Posted: Mar 17, 2011 06:00 PM

View 3 Replies!   View Related
DropDown List (in Update Panel) Causing FULL PostBack?
I'm using the same thing on different page and it works fine in there, but on this specific page, this is not working.

Here's what I have:

<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" Visible="true" RenderMode="Inline">
<ContentTemplate>
<asp:DropDownList ID="ddlNewService_PortTelco" runat="server" Width="250" CssClass="dropdown" AutoPostBack="true" OnSelectedIndexChanged="Provision_PortedTelcoChanged"></asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>

On the way before the DropDown there is one DIV (html one), and then few asp:Panels.

Posted: Jan 26 10 at 9:47

View 3 Replies!   View Related
Web Forms :: Have Two User Control Page - How To Retrieve Text Box And Drop Down Value In Both Page In Aspx...
i have two user control page how to retrive text box and drop down value in both page in our aspx page

Posted: Oct 18, 2010 07:22 AM

View 2 Replies!   View Related
C# - AsyncFileUpload Postback Does Not Do A Full Page Postback?
I implemented the AsyncFileUpload control on a web page. This web page requires uploaded files to appear in a gridview. The gridview contains the following columns: "File Name", "Confidential" Check Box, and a "Remove" button to remove the uploaded file.

Since the AsyncFileUpload postback does not do a full page postback, I need to "force" a postback on the OnClientUploadComplete event of the AsyncFileUpload control in order to render the gridview after uploading a file. In the OnClientUploadCompleteevent, I use javascript to call __doPostBack. In this postback, I only bind my gridview and display the file information (I don't re-save the file).

The problem: On the AsyncFileUpload's first "partial" postback, the file is successfully uploaded, as expected. On the second postback that I force with __doPostBack, the file is re-uploaded. You can verify this by using Google Chrome, which displays the upload progress. The behaviour is as follows: After selecting the file, the progress increments from 0% to 100% and the file is uploaded. After this, the __doPostBack executes, and you can see the upload progress increment again from 0% to 100%.

How can I make sure the Gridview is properly populated, but that the file is not uploaded twice?

I attached a sample solution which contains the issue:

[URL]

Posted: Jul 06, 2010 06:29 PM

View 1 Replies!   View Related
AJAX :: Trying To Create A Drop Down List With A Postback?
I am trying to create a drop down list with a postback.When I click on the drop down for some reason the event never gets fired... I added an updated panelwith a trigger to force it tofire I get the following error..Could not find an event named 'OnSelectedIndexChanged' on associated control 'ddlAppName' for the trigger in UpdatePanel 'UpdatePanel1'.

does anyone have an thoughts as to whatmight be going on ? I've had a sr. developer look at this to make sure the code was right... He seems to think this could bea bug...

Posted: Mar 04, 2010 01:59 PM

View 3 Replies!   View Related
Web Forms :: Adding List Items To Drop Down Control From Generic List?
I have the following Students class:

[Code]....

I need the 1 since it's a foreign key in another table. For the life of me, I can't get this to work like this.

Posted: Feb 06, 2010 04:31 PM

View 7 Replies!   View Related
Generate Full Page Postback?
I have a webpage with dynamic content and a button, with an Onclick method. After that method is executed, the button generates a postback. But my question is, can it generate a FULL page postback, maybe a total refresh? Because after clicking the button some of the webpage's data have changed (not viewable in that postback generated) and I want them to appear immediatly as somebody clicks the button, so a full page refresh I think it's a solution.

Posted: Apr 24, 2009 03:44 AM

View 9 Replies!   View Related
Web Forms :: Cross-page Postback From User Control Included In Master Page?
I am tring to sendform values to a page from a user control. I included theuser control in a master page.When i usepage.previouspage it can not get value. is there anyway to send form data to a page from auser control included in a master page?

Posted: Apr 04, 2010 03:22 PM

View 5 Replies!   View Related
AJAX :: Mozilla Does A Full Page Postback And Refreshes The Whole Page
Im implementing a simple form with ajax to warn the user if email has been used or not for registration, and it looks to be working fine with IE but mozilla does a full page postback and refreshes the whole page.

I already tried changing to updatemode to conditional, all the triggers are set as async, etc but mozilla keeps doing the same, Im sure it is a known problem I may not be the first one facing this problem so i guess there is a simple workaround for this.

Posted: Feb 10, 2010 10:52 AM

View 2 Replies!   View Related
AJAX :: Custom Control In Updatepanel Should Create Full Postback?
I am searching already the web for some hours to get this working. I created a custom control (ConfigTree), which has a treeview as part of it. I put the custom control into an update panel. So far so good. When I click on different buttons (in ucc:ConfigTree) or the treeview in the custom control an async postback is done. When clicking on a node in the treeview an event for the parent element (ConfigTree) is generated, which populates again an event (NodeSelected) for the parent element (shown below). Different parent elements can handle the event differently. In one element (this one) I need to transform the async postback in a real postback with full page refresh. For better understanding see the following code:

[Code]....

the parent element (here shown) should process the OnNodeSelected and transform it into an full postback and not just an async postback, but only this event, all the other events in the ucc:ConfigTree should processed async. How can I do that? Is there a method to call in the code behind?

Posted: Jun 02, 2010 02:18 PM

View 1 Replies!   View Related
AJAX :: Button And Control In Update Panel Cause Full Postback?
The following code is causing the whole page to postback, even though everything is contained within an UpdatePanel. I would like only the UpdatePanel to update.

[Code]....

Posted: Nov 10, 2009 10:46 AM

View 6 Replies!   View Related
AJAX :: Prevent Full Page Refresh During Postback?
I have 2 checkboxes (yes/no) that when selected cause the entire page to refresh during postback mode. How can I elimiate this?

[Code]....

Posted: Jan 26, 2010 07:53 PM

View 6 Replies!   View Related
DropDownList Always Does Full-page Postback, The First Time It Fires?
I have an ASP.NET page using the AJAX library. There is a dropdownlist inside an UpdatePanel, which on index changing is supposed to update a different UpdatePanel to modify a grid control.But after the page first comes up, and you adjust the ddl, the entire page postbacks, followed by a (correct) partial postback. After this one time, every other usage of the ddl performs correctly, trigger partial postbacks.

Both the panel and the ddl are being added from code. The UP is Conditional updates and ChildrenAsTriggers = true. The dropdownlist is AutoPostBack true and has an event set up on SelectedIndexChanged.So what is going on? I've tried adjusting every setting I can think of and still the page completely refreshes once, then works fine after that.

Posted: Mar 18 10 at 21:31

View 1 Replies!   View Related
Web Forms :: Change Part Of Page Without Full Postback
I have a page with two columns. Initially, the left column will contain a list of links that are article titles. Clicking on one of the links will display the text of the article in the right column, keeping the list of titles in the left column. Clicking on another title will clear the text of the first article and display the second. Is there a way to accomplish this without having to repaint the whole page? I would rather not have the whole page resent each time a title is clicked, but rather have the page stay as is and only the contents of the right column get cleared and redisplayed. I assume there's a way to do this with JavaScript.

Posted: Aug 19, 2010 07:50 PM

View 5 Replies!   View Related
Google Chrome To Full Page Reload On Postback?
I am creating one of my first Asp.Net tools and I ran in to a small bump. Currently I am doing a postback on a buttonclick which does some server-side calculations. The server-side code then uses those calculations to alter the contents of a div. In IE and Firefox when a postback happens, the div updates as expected. However, in chrome all postbacks do a complete refresh of the entire page. What is causing this and is there a way around this behavior?

Update:
ClientSide I have the following..
<asp:Button ID="Button2" Style="float: right" runat="server"
OnClick="S_ButtonClick" Text="Calculate" />

Which calls a method summarized as so.

protected void S_ButtonClick(object sender, EventArgs e)
{
//Code parsing values from textboxes ect.
//Do Some Calculations
//Output Results
outputDiv.InnerHtml = "<h2>Foo</h2><br/>";
outputDiv.InnerHtml += "Bar: " + calcValue;
}

It is possible that when this postback(if I understand this correctly) happens, that it is still fully reloading in firefox and ie, but it doesn't show it. This effectively masks the postback. However, when I test in chrome, any postback completely blanks the page before reloading the state. Hopefully this clears up exactly what I am asking. Also, my C#/.Net usage might be slightly flawed and I am willing to take comments on such.

Posted: Sep 27 10 at 3:20

View 1 Replies!   View Related
C# - Validation Controls In User Control Not Stopping Page Postback?
I have a asp button and a user control containing custom validator in it when i click the button that is present on the page not inside the usercontrol, the user control client side validation occurs and displays the javascript method regarding data entry failure but when i click the javascript alert box ok button, the postback gets occured automatically i want to stop the postback if the user control contains invalid data in iother words the postback get occured only when the user control contains the valid data.

I have already done this type of coding in javascript:

function CheckTimeRangeTo_9(sender, args) {
var e = document.getElementById('<%= ddTimeTableTo_9.ClientID %>');
var totalToTimeInMins = CalculateTotalMinutes(e.options[e.selectedIndex].value);
var totalFromTimeInMins = CalculateTotalMinutes(args.Value);

[Code]...

Posted: Jan 28 at 13:07

View 2 Replies!   View Related
AJAX :: After The Upgrade To 4.0 The Linkbutton Causes A Full Postback With Page Refresh?
I have an update panel with content that needs to be updated by a listview item which is a linkbutton, in .NET 3.5 I just used the defaults on all the controls and everything worked fine, after the upgrade to 4.0 the linkbutton causes a full postback with page refresh. I did try setting the linkbutton's id as the trigger for the update panel and still causes same page refresh. The scriptmanager is on the masterpage with enablepartialrendering = true.

Posted: Jun 15, 2010 07:49 PM

View 2 Replies!   View Related
AJAX :: UpdatePanel Doesn't Postback Neither Full Page Nor Partially?
here is my simlified code default.aspx;

<script runat="server">
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs)
Dim strFirstName As String = DirectCast(GridView1.FooterRow.FindControl("txtCompanyName"), TextBox).Text()
If e.CommandName = "Add" Then
companiesGridViewSDS.InsertParameters("CompanyName").DefaultValue = strFirstName
companiesGridViewSDS.Insert()
[code]...

Posted: Apr 28, 2010 07:34 PM

View 2 Replies!   View Related
Lose JavaScript From The Browser Cache After A Full Page Postback?
I have an external javascript file which I include to my page on the code behind (as seen below).

My problem is, when I my page makes a postback (not partial one), I check the loaded scripts by using FireBug, and I cannot see the javascript file in the list after the post back. I asusmed once it is included to page on the first load, browser will be caching it so that I do not need to re-include it.

What am I doing wrong?

[code]...

Posted: Apr 22 10 at 9:54

View 1 Replies!   View Related
AJAX :: Gridview In Update Panel Causing Full Page Postback
I have a gridview within an update panel which contains a checkbox (once for each row) which has its AutoPostBack property set to TRUE.

My understanding is that ANY postbacks which occur within an UpdatePanel should result in a partial postback of that panel only (i.e. Asynchronous). This is somewhat confirmed by a simple button which also resides in this UpdatePanel which correctly does a partial update with no page flicker etc

Because the control is within a gridview I can't set it as a trigger.....

[Code]....

Posted: Nov 10, 2009 02:14 PM

View 4 Replies!   View Related
AJAX :: HoverMenu Link Buttons Causing Full Page Postback
I have a hover menu with a simple2 link button panel attached. All of this lives within my update panel, but forwhatever reason the link buttonscause a full page postback instead of a partial page postback. How do I get them to play nice with the update panel?

Posted: Oct 15, 2009 03:37 PM

View 4 Replies!   View Related
AJAX :: Modal PopUp's OkClick Causing Full Page Postback?
I am having issue with my ModalPopUpExtender's OKControlID. I have a button inside an update panel that should do AsyncPostBack. The button works fine and runs server side code but it causes full page postback. How do I solve this issue? I want the 'OK' button inside the modalpopup to call the serverside code and update Label control 'label3' without causing the page flash. Given below is my code;

MarkUp:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Next Gen Web Browser</title>
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.js" type="text/javascript"></script>

[Code]....

Posted: Apr 28, 2010 03:38 PM

View 5 Replies!   View Related
MVC :: Receiving Data After User Select From A Drop Down List?
I have a drop down list that I'm suppose to get results according to user selected value ,

I can't figure out how to get the data in the target page how to manipulate it on the view. This is what I have tried

In the controller

[Code]....

this is my index file

[Code]....

this is my target page

[Code]....

as you can see i have tryed a few things but ...

One more question , am I taking the correct approach or is there another way to do it(passing data according to user selected item )

Posted: Apr 19, 2010 01:37 PM

View 13 Replies!   View Related
Web Forms :: Select User From Drop Down List Based On Login Name
I have a drop down list bound to a column in a database. If a user logs into the website using the standard login controls, I want the drop down list to automatically select there name from the list.here is the code that doesn't work

[Code]....

The error orrcurs here:

[Code]....

Which intellisense says "Property Access must Assign to it's property or use it's values". Do I have the code all wrong?Also, as a side question, I don't understand why I have to use the TryCast find control option to find every control to use them. Even in the Page_Load if I type in DropDownList1 it says it's not declared.

Posted: May 26, 2010 08:28 PM

View 3 Replies!   View Related
Conditionally Trigger A Full Page Postback From A Link Button Inside Update Panel
How do I conditionally trigger a full page postback from a link button inside of an update panel?

I have a custom control that contains its own updatepanel with a link button nested inside of it. When the link button is pressed I want its event handler to have the option of either letting the control update as normal or doing a full postback on the page.

Here is the control hierarchy:

Page
Custom Control
UpdatePanel
LinkButton

Event handler Pseudo code:

LinkButton Click Handler Begin
If is a partial post back AND a full postback is needed
Page.DoFullPostback
End If
End Handler

Note: I aways need the partial postback to happen. I was considering injecting a __DoPostback in the controls markup but this seems hacky to me.

Posted: Nov 29 10 at 23:10

View 2 Replies!   View Related
Web Forms :: Drop Down List Dependant On Selection In Another Drop Down List?
I have a drop down list that has the initials of about 12of our sales guys.How canI make it so thatwhen they select their initials from the list, the next drop down list only shows their customers.In my databasethere is a column for customer name and salesman.

Posted: Mar 30, 2010 08:16 PM

View 6 Replies!   View Related
Give Full Control To User?
My global.asax is not being triggered on errors on my production server..It's works fine on my dev server but I can't figured out why. my app is using asp.net 4.xxxx and iis6. I've read on web about PrecompiledApp.config but I don't see that anywhere on dev or rod..what are some things to look for..also, On my dev server the error is written cleanly to eventlog but on prod I get message below. The description for Event ID ( 0 ) in Source ( Application ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: ........

Posted: Mar 02, 2011 04:56 PM

View 5 Replies!   View Related
AJAX :: Reorder List To To Allow User To Drag N Drop Via Column Cell?
is it possible for reorder list to to allow user to drag n drop via column cell.

For example,

Column1 | Column2
------------------------------
Value1 |Value5
Value2 |Value6
Value3 |Value7
Value4 |Value8

Value 1 was drag n drop to the position of Value5. And Value5 ,Value6,Value7,Value8 position are reorder like Reorderlist in row.

Posted: Mar 08, 2010 05:47 AM

View 3 Replies!   View Related
Switch From Async PostBack To Full PostBack In An Update Panel?
Is something like this possible?

Dim iCounter as Integer
Dim iQuantity as Integer = 10
Protected Sub btnFoo_Click Handles btnFoo Yadda
For i as Integer = iCounter to iQuantity - 1
//do something with AsyncPostBackTrigger until iCounter = iQuantity - 1
//then trigger a full postback
Next
End Sub

I am new to the concept and feel like there must be something really easy that I am missing.

Posted: Aug 20 10 at 18:13

View 2 Replies!   View Related
How To Add Horizontal Scrollbar To Drop Down List Control
I have one Drop down list box like following :

[code]....

when drop downlist has item string too large then i want to give it horizontal Scrollbar ..

Posted: Jan 28 10 at 12:12

View 1 Replies!   View Related
How To Get Full Path Which User Selected In File Upload Control
I want to get full path which user selected in file upload control.

how can we do it.

Posted: Jun 29 10 at 8:27

View 3 Replies!   View Related
User/server Control With Custom List Items / Create A Simple Menu User Control
I'm attempting to create a simple menu user control just as outlined here.

The attached code results in an "Object reference not set to an instance of an object" error, but I can't figure out why.

<%@ Master Language="VB" CodeFile="MySite.master.vb" Inherits="MySite" %>
<%@ Register src="Controls/Menu.ascx" tagname="Menu" tagprefix="my" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">......

Posted: Feb 18 at 20:13

View 1 Replies!   View Related
Return The Select Value From The Drop Down List To A Different Page?
I have a drop down list, how to return the select value from the drop down list to a different page.

Posted: Jun 30, 2009 12:21 AM

View 3 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved