I have simple UserControl where is defined property ItemsSource public static readonly DependencyProperty ItemsSourceProperty = DependencyProperty.Register("ItemsSource", typeof(Dictionary<string, object>), typeof(UserControl1), new Framew
I have a UserControl with many fields on it. In the ascx I have a document.ready() function where I hide some of the fields with JQuery. On a regular page when the page is loaded the fields are hidden and the JavaScript works. Lets say when the user
im looping on 24 picturebox on groupbox for displaying something, but it doesn't loop in the right order, it may start at the 18th picture box and here is the code im using foreach (var pb in groupBox1.Controls) { if (pb is PictureBox && previewIn
I feel a bit stupid but I can't get my button to fire within my User Control. I have created the user control with the button and I have added the event handler in it's code behind. This user control reference is added to the parent and there is an i
I apologize if this has been asked and answered before but I was not able to find an answer. I know how to walk through the controls collection and get a listing of all the controls including child controls. void printControlTree(Control ctl, int ind
I am having trouble getting this button (with an image in its content) to correctly change the ImageSource on click. Here is my Xaml and Code Behind. XAML: <Window.Resources> <Style x:Key="NoChromeButton" TargetType="{x:Type Button
I have defined a user control, ExpressionControl, under the namespace: TriggerEditor.UserControls I have a form, "IfEditor", under the namespace: TriggerEditor.Forms When I add an instance of my control to the form (naming it expCondition), the
Let me just preface this with: I Googled high and low for this, and found many examples and solutions, and I still can't figure this out. In a .aspx.cs code behind file, I have the following: NewsArticleList listall = NewsArticleManager.GetListAll();
I have an ASP.NET usercontrol that implements the ValidationProperty attribute. This attribute successfully makes it possible for me to use a RequiredFieldValidator for my custom control, however on validation it causes a full postback rather than us
I need to create an Auto search control which will show the results as rows as this one http://www.devexpress.com/Products/NET/Controls/WPF/Editors/lookup-editor.xml. However, I dont need the graphics and checkboxes here. A simple listview like appea
What is the ideal way to enable asynchronous... Ajax-like callbacks in a asp.net user control. The current design has an asp.net page using multiple user controls with intermittent post-backs and page reloads. I am trying to incorporate a no page rel
Im making a userControl named [File_Manager] and i was wondering if i can add a button to this custom control that i can set its job later after adding this custom control to another form .. something like File_Manager fManager = new File_Manager();
I have created user control which contain TextBox and PasswordBox. RestrictedBox.xaml <UserControl.Resources> <Converters:BoolToVisibilityConverter x:Key="boolToVisConverter" /> <Converters:BoolToVisibilityConverter x:Key="bo
I had recently moved a "DataList" control in to a UserControl and referenced it on my ASPX page. The DataList contains checkboxes with checked properties assigned by the data source initially. <asp:DataList ID="dlspec" CssClass=&quo
I want to create a user control DerivedUserControl.ascx that derives form another user control BaseUserControl.ascx. The base user control derives from System.Web.UI.UserControl as required. These user controls are defined in different folders. Becau
I'm trying to access a user control which is inside the control template of a content control. Specifically: <ContentControl x:Name="MyList" > <ContentControl.Template> <ControlTemplate x:Name="MyControlTemplate"> <
I am new to asp.net, My problem is I have one TextBox and user control Button in default.aspx ,After clicking the Button I need change the text value of TextBox(some default value from user control). Is that possible?If Yes,where i need to write the
I have the following sample code in WPF. It is working well when I put the xaml and corresponding C# code inside windows, but when I am using a user control, the databinding doesn't work. why? Here is the code: User control XAML: <UserControl x:Class
is it possible to get the ID assigned to User Control from the control using javascript or jquery. ThanksWhat ASP.NET normally does is prefix your control's ID with a string that it uses to determine where in ASP.NET's control tree your actual contro
Maybe I'm having a brain fart or something because it seems like this should be pretty simple but how do you update a User Control from another User Control via Ajax? I have an ASPX page with two user controls and when I trigger a server-side event o
I'm creating a dashboard application that shows hundreds of "items" on a FlowLayoutPanel. Each "item" is a UserControl that is made up of 12 textboxes or labels. My app queries a database and then creates an "item" instance f
I have a Window1.xaml main Window; and after some event, I display a UserControl EditFile.xaml. The code behind is: public static int whichSelected = -1; private void button1_Click(object sender, RoutedEventArgs e) { //searchEditPanel.Children.Clear(
I have a complex Windows Forms GUI program that has a lot of automated control generation and manipulation. One thing that I need to be able to do is add a custom UserControl to a newly instatiated TabPage. However, when my code does this I get autom
I have several similar user controls which display listviews of respectively different data entities. In the code-behind files of these controls there is quite a bit of common business logic. How can these common methods be combined in a single "supe
I am relatively new to WPF, and some things with it are quite foreign to me. For one, unlike Windows Forms, the WPF control hierarchy does not support IDisposable. In Windows Forms, if a user control used any managed resources, it was very easy to cl
I would like to make an application where there is no form, only controls, this way theuser can see what they are doing on top of their work. How could I for instance put a textbox on the screen, just like form1, but without it being a parent of form
how can i call a VB function - deleteevent() in usercontrol.ascx.vb from a javascript function in clickhandler(e) in usercontrol.ascx. The call should cause a postback because I need the usercontrol to display the changes. I am currently trying to do
I have a UserControl that contains an UpdatePanel which wraps some other controls. The UserControl will be used on some pages that already have a ScriptManager and other pages that do not have a ScriptManager. I'd like the UserControl to automaticall
I am designing the (G)UI of a program, and have stumbled across a problem; The program will convert a number into different units, and the layout of a unit been converted to is: [Unit name (when clicked gives information)] [Special status, if any] [O
I'm building a Web application with rougly 30 pages, 12 user controls and 3 masterpages. I've centralized all the CSS in a Theme called Default. The application will expand in the near future. What is a best practice in separating css files? Should I