I have a tab which loads a usercontrol dynamically and this usercontrol has 2 other usercontrols. One on the left loading treeviewA and one on the right treeviewB.I am using update panel for aspx and the ascx too. But, I am not able to control to page state and moreover when I click on one control, it get its child item, by the time I click on other control, it would refresh other control too and will lose its value.I am using below code in aspx and I have embeded update panels in usercontrols too
using http://msmvps.com/blogs/luisabreu/archive/2006/11/16/adding-removing-updatepanels-dynamicaly-from-a-page.aspx
as reference
I have 2 - DropdownList controls, which i am filling at severside when page loads. After the user selection in DropdownList1, i am changing the contents in DropdownList2 values. This validation (i.e. changing the contents of Dropdownlist2 values) am doing in Javascript Clientside. But on postback i am not getting the values in DropdownList2. When i say "DropdownList2.Items.Count;" getting "0". I tried to put the contents of DropdownList2 in ViewState on pageload. But i am getting Serialization error at runtime "Viewstate["PersistValues"] = DropdownList2;". I am using html input hidden control to pass the values from server side to clientside for my validation. Now, to meet this requirement i am Binding the DropdownList2 at postback again with first DropdownList1's selected index (This is repeat of logic which i have done in Clientside).
I am trying to add UserControl dynamically to the page. UserControl is added only once (when the page loads) but on postback it doesn't add again (Only one control is alwasys there).I want to add user control Whenever user clicks "btnAddUCWingControl" so when the page loads for first time, there will be only one control, on postback there must be TWO controls and so on
I was trying to disable button after it is clicked once. But I am not sure where I was going wrong. On click of Ok, I am trying to navigate back from ascx to aspx page.
I've got an issue with the postback property. I have a chart (Code below) which has two series pulled from a datasource.
Both series display fine but I've enabled the bars in the chart to respond to the click event and when items from the first series is selected, everything works fine. However, I try to pull the x value for the second series, which is supposed to be a date, but all I get is an interger.
I have a page (page1) with 4 controls that serve as the parameters for a report. The submit button does a cross page postback to another page (page2) that contains a ReportViewer control.Unfortunately, I cannot read the values from page1 once I get to page2. Here is the source to page1:
[Code]....
Here is the handling code on page2 (rvProjectStatus being the ReportViewer control): [Code]....
In other situations I have passed such values in the query string and then assigned them to the parameter collection, no problem.Also, please note, I have tried using the @PreviousPageType directive to get at the types on page1, but have met with no success there either.
I'm working on an asp.net app and I have some controls that are created dynamically on the OnInit event. One of that controls is an asp button that has been working fine until now. When I add a ScriptManager to my page, that same button is unable to postback. It's only working if a take the ScriptManager out. Has anything like this ever appened to somebody else? Am I invalidating the page somehow? Edit: This is my script manager tag:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnableScriptGlobalization="true" EnableScriptLocalization="true"> </asp:ScriptManager> //My Dynamic Button: Button button1 = new Button { ID = "button1", Text = "Ok" }; button1.Click += new EventHandler(Button1_Click);
public abstract class AStateManagement : WebControl, IVFSStateManagement { protected PersistScope _StateManagement = PersistScope.ViewState; protected System.Web.UI.StateBag _ViewState = null; public virtual PersistScope StateManagement
[Code]....
I have create a custom textbox which will validated the data depending upon the business logic defined at run time. But currently i am not able to catch the update the value inside a textbox (entered by the user). I have implemented LoadPostData but i am unable to get the updated value.
I had a little project is create dynamic control. My project had get detail of content and replace in sign string, Add control in sign. After click button I will find in control, I had added on page load in panel. I can't get value in child control panel, Don't have control in panel. My source is
Am using a ascx page i want to add a textbox control but its giving me the error like " Control 'TopFront1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.
I have a user control the exposes several public properties. I added a reference to the usercontrol to my page and I added an instance of the control:
[Code]....
One of the properties exposed by my control is called "Text". I have used this control in many different projects and I am ordinarily able to do this:
string x = mtPrintPlatform.Text;
However in this project I am unable to use the control as a MetaTextBox...I only see the properties of UserControl, from which MetaTextBox is derived. So my Text property is not accessable.
I am, however, able to cast the control and access the property like this:
string x = ((MetaTextBox)mtPrintPlatform).Text; // this works
This problem occurs with all user controls in my project, I am using just one control as an example.
I have a panel and am loading a user control into it. I am trying to set its Visible property to true. But when I say controlFoo.Visible = true, it is not becoming visible. When I add a watch to controlFoo.Visible, it shows False.I have already made sure that its parent control's visbility is set to true. My code is as follows:
I have a web application that shows a page containing between 6 and 20 AJAX UpdatePanels, contained with Custom Web (.ascx) Controls.
You can see an example of such a page here:
[URL]
The problem I'm getting is that when the user FIRST clicks any of the radio-buttons on any of the controls in the page, ALL the radio buttons that have an active selection ALSO fire an rb_CheckChanged event (see application log below). On subsequent radio-button clicks, only that RB fires the event (as expected).
This behaviour is having a dramatic impact on performance. The page loads quickly, and a "normal" RB click provides an AJAX update correctly within 1 second. The problematic first RB click, however, takes up to SIX seconds to process, which is unacceptable from a user experience standpoint.
Developed in VS.NET 2008, ASP.NET 3.5. Also I converted the "Web Site" solution to a "Web Application" (pre-compiled) and got the same performance (still too slow). Release builds run only marginally faster than debug builds.
Why would a single RB selection change cause all RB's that have a "selection" set on them to also fire? (The "selection" is determined through database settings every time the control is populated, which is called from within the parent page control's Page_Load function. This selection is determined also at first page load, since all the controls get populated then, so why would the clicking of an RB cause them all to fire an event, and only once? That's what I don't get...)
Not sure if this is an AJAX issue, or general ASP.NET UI issue, so I'm posting in two forums on this one.
I have used calender web user control inside my project where i took textbox,button and calender...but after dragging onto my aspx page..i am unable to access this textbox,calender and button on aspx page..
I am using asp.net 3.5 with C# to build web application. I am using master pages. I had a label in masterpage. I want to set some text in that label from content page. I have written following code for that