inside TestEntryView.xaml.cs
public partial class TestEntryView : UserControl
{
public ObservableCollection<TestFieldView> Fields {get;set;}
...
}
where TestFieldView is a UserControl.
<UserControl x:Class="STS2Editor.View.TestEntryView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns...
Hello,
I started using the .NET licenseProvider to add licensing for my net user control that can be used in a web page.
In my user control's constructor I check if the control is being used in DesignMode or RunTimeMode :
bool designMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime);
As soon as I start using the [Licens...
I load the content of some User Controls into my page with the use of jQuery. So I have this function that extracts the content from my User Control, and it works like a charm.
public string GetObjectHtml(string pathToControl)
{
// Create instance of the page control
Page page = new Page();
// Create ins...
Hey! I am trying to play with making my app look better and I found this and was incredibly impressed with the workspace example found here: http://expression.microsoft.com/en-us/ff624123.aspx look at the example with state timeline and props with the workspaces which switch what has focus in the window.
The code can be found here : htt...
How to Get list of controls inside a specific div in ASP.NET
...
Having a strange issue with the TabContainer in the AJAX Toolkit.
We have several views into a customer record system that we have built as ASP.net controls. These controls use UpdatePanels to load data asynchronously. We use jQuery and jquery.ui to place these controls in separate tabs on a single page.
Which all works swimmingly.
...
Hello,
Suppose I have the following model (generic example):
Person (base class)
Student (derived)
Teacher (derived)
Secretary (derived)
There are some common fields, such as first name, last name, phone nr., but several fields unique to each derived type (Student, Teacher, Secretary).
I would like to be able to display each type o...
I've created a series of usercontrols. Dragged one of the controls to the main form. It shows OK. Went back and made a change to the design of the user control. Rebuilt project. Cleaned project. manually removed all project binaries including the obj folder. Change still doesn't show on the usercontrol hosted on the main form. Drag...
I've a custom property on a user control which has multiple state/modes. If this property is set in the parent page: I would like for my control to update automatically. Using the property in the page load does not work because it is not initiated.
I can imagine 3 methods to do this:
On the property, I could add a code block that woul...
I want to display a play button (ImageView) ontop of a thumbnail (another ImageView). How can I place UI controls ontop of each other?
Programatically or in XML?
...
I have developed a simple Windows Forms User Control. I drag and drop this user control on a form. How can I achive, that now I can put further controls from the toolbox dirctly on the user control in the form?
In other words, is it possible to use a user control like a container control?
...
An exception is thrown in a user control based on a picture box, causing it to show the typical error image (red X). Since the GUI thread caught and handled the exception itself, I cannot easily find out where the exception occurred and debug.
I'm currently wrapping the whole OnPaint code in a try-catch, and was able to debug the code, ...
Hi,
Stucked in a problem???
I have a master page, containing ContentPlaceHolder. The ContentPalceHolder contains a div (inside update panel) which has to be used to load UserControls dynamically(using LoadControl). Now i have loaded the Report navigation UserControl to the div, which contains Buttons for all the reports available to th...
I am beginning to wonder if this is even possible. It just seems so simple.
I have a published web project. I want to add some .ascx files (with .cs & designer.cs files) to that published web site. These are simple custom user controls that access methods already part of the original application.
Question? Is it possible to just d...
Hi!
I created a user control called 'RibbonTabX' which contains a stackpanel named 'spMain'. What I'd like to do, is when I declare an instance of my 'RibbonTabX' in xaml, within that same xaml I'd like to specify controls which will be inside the child stackPanel 'spMain'. Here is the code which will make what I'm trying to do much c...
I have the function put here like below:
$(document).ready(function () {
UserControlNameInit();
});
The script are put in the following and the block is in the .ascx page.
<script type="text/javascript">
</script>
However, the function UserControlNameInit() does not run when the page loads. It is showing in the page source. I ...
Suppose I want to make user control which will use in other pages. What are the important points to be considered before making a user control in ASP.Net using C#?
...
I'm sure this isn't specific to the AjaxControlToolKit, but it is what is causing me issues. I've created a basic user control that essentially wraps a textbox and MaskedEditExtender because it will often be used on different pages. The designer of the control looks fine, but when I include it in a page, I see a box for the MaskedEditExt...
Sometimes my UserControl's Visible property does not get updated correctly. It happens at my app's boot time, in OnFontChanged, fired from inside InitializeComponent, probably because some other stuff has not been set up yet. I just can't find out what.
vScrollBar is a UserControl and is inside another UserControl. Apparently, this on...
Does VaryByParam also take into account the control properties and the logged in user? Let's say, I have a custom property: will VaryByParam cache based on unique values to that property?
Update:
I've added the <%@ OutputCache Duration="500" VaryByParam="*" %> to my user control. In the page the control is embedded in, I have this code...