usercontrols

Get web user controls into visual studio toolbox

How can I drag a web user control (ascx file) into my page? It seems I can't put them into the toolbox. It seems I can drag them from project explorer into the page, but this only works in design mode. How can I make this work in source code view? ...

Apache Security Default Install Permissions

Hi guys, ive recently installed apache2 on my Ubuntu machine and have a few questions about security and user permissions. I know how to listen on other ports, hide indexes with -Indexes and how to create/disable new Virtual Hosts on the same machine, but there is a lot of user options already preset in the standard install config I am u...

Loop through controls of a UserControl

I have a user control with 5 simple radiobuttons, I need ot loop through those in code-behind, but I am drawing a huge blank on how to do this. Can someone help please ...

iTemplate what is it and place where i can get GOOD example in c#

HI , I am currently trying to learn more about custom controls and how to use them etc. i have come across iTemplate interface and was hoping that someone could better explain its use and point me toward a good example implementation. From what i have found it allows you to change how an asp.net control will display items. ive tried sea...

Create custom panel control with ASP.NET

A Server based control is not good solution for me, since my panel should by default always contain a asp checkbox which will allow the user to hide and show the panels content. I created my Panel as a templated user control but now I have the problem that I cannot declare variables in it. [ParseChildren(true)] public partial c...

wpf usercontrol showdialog problem

There is a MainWindow,a usercontrol which is located in my MainWindow and a OtherForm which i am going to show from usercontrol. I sent OtherForm as parameter from MainWindow to usercontrol.And in usercontrol i am calling OtherForm.showdialog.When i show it second time ,i am getting "Cannot set Visibility or call Show, ShowDialog, or Wi...

Windows Forms: User controls and events

I have a Windows Forms user control which consists of several controls. Among others there is also gridview control. Now I want to use the user control in a form. How can I check for example if a grid row is clicked? I want to get the data of the selected row. In other words, how can I detect events of the controls, which are embedded in...

ASP.NET: Custom subtags

Can I develop a control which allows me to do something like this: <MyRadioList> <MyRadioButton/> <MyRadioButtonWithInfoButton/> <MyRadioButton/> <MyRadioButtonWithBlueColor/> </MyRadioList> That is, I can place my own control-tags inside my radio list. Can it be done with templated user controls? ...

WPF: How do I address a usercontrol that I Instantiated at runtime?

I have added a usercontrol to my project like this: Public Sub clickAutoDrillLeft(ByVal sender as Object, ByVal e as System.Windows.RoutedEventArgs) Dim LSliderItem as New TriplexAmpsControl me.LeftSlider.Items.Add(LSliderItem) End sub The "LSliderIn" object is an items control, and the "TriplexAmpsControl" is a userc...

How to use a UserControl inside the EditTemplate of a ListVIew?

Here is the situation: I have a ListView showing just a list of concatenated strings obtained from different field of the objects of the datasource. A LinkButton (with CommandName="Edit") in each row Event handlers for OnItemDataBound and OnItemEditing A UserControl in EditTemplate. Now the problem is, I don't know how to use Bind e...

How can we use required field validator on User Control in aspx page

How can we use required field validator on User Control in aspx page*strong text* I have one user control that have one drop down. I am using this control on my page. I want to use required field validator on this drop down. Please give me reply. How can I use? ...

FindAncestor does not work for UserControl in ListView.ItemTemplate

Hi Everyone, I'm having some issues when trying to bind a property of a UserControl in a ItemTemplate with a FindAncestor mode. I have the following code: <Window x:Class="TestUserControlBinding.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200...

Sending WPF User Controls over WCF or similar

I am building an application in the MVVM style where the actual views (UserControls) are stored remotely and hopefully sent via a WCF service to my main application window. I am doing this in order to avoid having the user reinstall the application each time a new view is added. However, when I try to return a User Control from my WCF ...

How do I determine which forms are using a particular VB6 user control?

I have a VB6.0 application in which I have forms and user controls. I need to know in which form a particular user control is being used. Can anyone tell me how to do this? ...

Two way binding between textbox from parent silverlight's page to another local silverlight user control's textbox.

I have used DependencyProperty to pass value from textbox at silverlight page to external silverlight user control located in same page and that works fine. But the problem is I could not bind the Textbox in page in reverse way. i.e. when i need to have changes in parent page when its usercontrol's textbox text is changed. The XAML: ...

Help creating a Control

Hello every body, I'm trying to create a Watch Control and dont realy know where to begin. My goal is to able do declare a watch like this. <Watch Shape="Round"> <WatchButton Watch.Angle="70"/> <WatchButton Watch.Angle="90"/> <WatchButton Watch.Angle="120"/> <Cadran Shape="Round"> <Needle/> <Needle/> ...

ASP.NET Repeater Control - Referencing Individual Elements

I have a repeater that displays a custom user control on a form multiple times as follows: <asp:Repeater runat="server" ID="MyRepeater" ondatabinding="MyRepeater_DataBinding" > <ItemTemplate> <a name='<%# Eval("[\"Key\"]") %>' style="display: none;"></a> <uc1:MyControl ID="Control1" runat="server" ...

Multiple ContentProviders in one UserControl

Hi Silverlighters. I have problem where I'd like to design a UserControl containing two ContentControls. Imagine the old fashioned explorer that has a treeview on the left and a list on the right. I need the users of my control to be able to add their own controls to each ContentControl - say the left and the right. Unfortunately the Con...

Precompiled user control crashes VS

I have created a precompiled user control. The basic steps are to create a Web Site project then publish to generate the DLL. Then I created a Web Application project and added a reference to the DLL. In my page I registered the DLL and was able to access the control as <prefix:control_ascx ... />. If I run without debugging Ctrl+F5,...

Can we create a 1-D array of UserControl. ..?

hi, I just created a "Usercontrol" in WINFORMS- it just contains 1-Button with some style. And i need to use the same as array(10) and load it to a form. Ex: Dim myButton() As Button = New ucSpecialButton(dataset4Category(i).Tables(0).Rows.Count - 1) {} Here my usercontrol name is ucSpecialButton can we create a ONE-Dimensional Arr...