usercontrols

Raise ItemDataBound Event from Repeater Within User Control to Page

I have a user control that contains a repeater. We have added some paging and sorting into the user control and it all works well. What I need now is a nice way to catch the OnItemDataBound event of the inner repeater and then bubble it up to be accessible directly from the user control from within the page. We have tried catching it ...

Why does the text property overridden in user control is not showing at design time

I have a usercontrol which overrides the property Text. But this property is not shown at design time. If I rename it to caption or value it is shown in properties at design time but Text is not shown. public Class SomeControl Inherits System.Windows.Forms.UserControl Public Overrides Property Text() As String Get ...

FindControl() from UserControl inside a for loop

I'm creating a usercontrol that will have a series of LinkButtons. I've declared all of my link buttons at the top of my class LinkButton LB1 = new LinkButton(); LinkButton LB2 = new LinkButton(); //... LinkButton LB9 = new LinkButton(); now I'd like to be able to create a loop to access all of those link buttons so I don't have to w...

Passing data to the listbox in usercontrol

Hai am creating a usercontol with two textblock and one listbox. i can able to pass data to textblock in my usercontorl. but i cannot pass the data to my listbox in usercontrol. how to pass my data in the usercontrol public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } ...

Text property in a UserControl in C#

I have a control with a inner TextBox. I want to make a direct relationship between the Text property of the UserControl and the Text property of the TextBox. The first thing I realized is that Text was not being displayed in the Properties of the UserControl. Then I added the Browsable(true) attribute. [Browsable(true)] public override...

C# - Silverlight - Custom control or UserControl ?

I need a button that is visually completely customizable, but has custom logic to publish events and manage it's visual state based on events it has registered for. When I say visually customizable, I mean I should be able to both create the button in xaml and set it's style by binding to the supplied style. Or I can create an instance ...

Missing Intellisense While Describing Custom Control Properties Declaratively

So, I've been working on this project for a few days now, and have been unable to resolve the issue of getting intellisense support for my custom-defined inner properties for a user control (ascx, mind you). I have seen the solution to this (using server controls, .cs mind you) many times. Spelled out in this article very well. Everyth...

.Net : Need for a tutorial about how to create a Wpf user control (multi - column combobox) which can be binded to Database in other project

.Net : I'm new in Wpf so need for a tutorial about how to create a Wpf user control (multi - column combobox) which can be binded to Database in other project (windows application)? ...

ajax delay load UserControl asp.net

regarding ajax delay load of usercontrols (or any controls) on Post at Encosia.com : http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/ I tried to implement it , but I noticed that it can be done only for simple controls or UserControls that Have simple asp.net controls (or html tags) . But when it...

Convert Windows forms usercontrol as a image

Hi, I want to convert or export windows forms UserControl as a image using C#. Thanks ...

Can MVVM Usercontrols have property defined in codebehind ?

Hi, I have a WPF user control ...which is in MVVM. The user control(which contains a listview) need data from the page (where it is included). I have to set a property to get this data input. Will this comply with MVVM...if not, what is the way for the same? ...

MVVM User control - where do i declare it to get data from page ?

I have a WPF user control ...which is in MVVM. The user control(which contains a listview) need data from the page (where it is included). I have to set a property in View's code behind to get this data input. Will this comply with MVVM(But MVVM pattern do not support adding code in code behind file of view as far as i know).if not, what...

Databinding in ASP.NET User Control

What is the best way to create a data bound ASP.NET user control? I have a user control that contains a drop down list and three label controls. I would like to data bind the drop down list, and have the label controls display different properties of the data source. I have Googled for an example of IDataSource and User Control, but ...

Animate UserControl in WPF?

I have two xaml file one is MainWindow.xaml and other is userControl EditTaskView.xaml. In MainWindow.xaml it consists of listbox and when double clicked any item of listbox, it displays other window (edit window) from EditView userControl. I am trying to animate this userControl everytime whenever any item from the listbox is double cli...

How can I create and call a javascript function on a dynamically loaded user control?

when i try to call a javascript function in a dynamically loaded user control, it cannot find the function specified. I have a user control for organizationDetails.ascx. In there, I am using modal popup extender to get some information from the user and then i verify the address through google and suggests the proper format. I am trying ...

How to use a VB usercontrol on a C# page?

Hopefully someone will be able to point me in the right direction. I've created a usercontrol in VB that handles paging more efficiently than the DataPager (at least for very large datasets). I'd like to use it in a C# project, but I've been having trouble getting it to work. I've tried simply adding PagingControl.ascx to the C# proje...

ASP.NET MVC PartialView generic ModelView

I have an ASP.NET MVC application which I want to dynamically pick the partial view and what data gets passed to it, while maintaining strong types. So, in the main form, I want a class that has a view model that contains a generically typed property which should contain the data for the partial view's view model. public class MainView...

Animate UserControl (When It Gets Collapsed) in WPF

I have two xaml file one is MainWindow.xaml and other is userControl EditTaskView.xaml. In MainWindow.xaml it consists of listbox and when double clicked any item of listbox, it displays edit window (EditView userControl). Whenever edit window gets displayed, it plays an animation (sliding from right to left). The EditView userControl ha...

How to work with delegates and event handler for user control.

I have created a user control that contains a button. I am using this control on my winform which will be loaded at run time after fetching data from database. Now I need to remove a row from a datatable on the Click event of that button. The problem is that how do I capture that event in my form. Currently it goes in that user control...

Multiple ASP.Net Controls On One Page

We have created a User Control for ASP.Net. At any one time, a user's profile page could contain between one and infinity of these controls. The Control.ascx file contains quite a bit of javascript. When the control is rendered by .Net to HTML, you notice that it prints the javascript for each control. This was expected. I'd like to red...