This should be a very simple case, but I am pulling hair trying to get it to work. Here is the setup:
I am designing an app that will have an read-only mode and edit mode for some data. So I created a User Control which is a textbox and textblock bound to the same text data and are conditionally visible based on EditableMode property (s...
So, I create an array:
TorrentItem[] torrents = new TorrentItem[10];
The TorrentItem control has a method called SetTorrentName(string name):
private void SetTorrentName(string Name)
{
label1.Text = Name;
}
I'm using a for loop to populate 10 TorrentItems like so:
private TorrentItem[] GetTorrents()
{
TorrentItem[] torrent...
I'm creating usercontrol. This control use javascript <script src='js/my.js' type='text/javascript'></script>
My web directory location is here>>
App_code\myusercontrol.css
User\aa.aspx
bb.aspx
aa.aspx And bb.aspx is use my created usercontrol.
My problem is
when i calling aa.aspx, successfully work
when i calling bb.aspx, javasc...
Hello all,
I'm writing a control that may have some of its parts transparent or semitransparent. Basically this control shows a png image (with alpha channel). The control's parent window has some graphics on it. Therefore, to make the png control render correctly it needs to get image of what the parent window would draw beneath it. Par...
Hello,
So I've got some serious problems with removing a Control from a Form of my application. It's kinda messed up but I can't change anything. I have a form and I have a separated user Control. The control opens an exe file and shows a progress bar while loading it's bytes. And here comes the problem. I do all of it with a BackgroundW...
Lets say I create a user control with a button for a silverlight navigation app. I want to use this user contol on several pages. Each of the pages has a function called
void changecolor()
{
//process request
}
When the user clicks the button I want it to call the changecolor() function. Any ideas on how to do this?
...
How to load/render a usercontrol using jquery?
I have some menus on header of the page and the usercontrols for each menu. On click of the menus i need to re-load the content with the corresponding usercontrol.
How can i achieve it using jquery which avoids page refresh?
...
I have a number of LINQ to SQL tables with the same fields (CreatedDate and CreatedUser).
I would like a usercontrol to display the values from these fields if the data is passed in as an IQueryable<T> or IEnumerable<T>
For example:
public void UpdateStatus<T>(IQueryable<T> data)
{
DateTime? theDate = data.Single().CreatedDate; /...
We need a special user control for our web application.
It should ideally look and work exactly like typical <select> element but with additional feature that would allow user to select multiple choices.
I imagine it like drop-down list of items with checkboxes. User can either select one and only item by clicking it (just like normal ...
Hi,
I have a custom user control called ErrorNotificationBox. To place that on my page I do the old...
<%@ Register Src="~/PathTo/ErrorNotificationBox.ascx" TagName="ErrorNotificationBox" TagPrefix="uc" %>
<uc:ErrorNotificationBox Runat="server" id="myEnb" Caption="My Test Caption" />
Is it possible to extend HtmlHelper to include ...
In a regular .aspx page, you can access public properties from the codebehind. Is there any way to do a similar thing in a user control. For example, in the following code 'List' is public property of the codebehind of the user control and yet it is not accessible.
<% foreach (TripTeam team in List) { %>
<div>
<label><%= team.Name...
I would like to have a user control where it's rendered HTML is logically divided up into sections. I would like an aspx page to dynamically load this user control that take each section and places them at specific points in the aspx page. Is this possible?
...
I have a usercontrol that contains a datalist, and I want to set the datasource of the datalist to different things depending on what page the usercontrol is on.
So, I think what I need to do is expose a public property of the datalist that will get the datasource and set it, like so:
public datasource UserDataSource
{
get { return Da...
I'm trying to use System.Web.UI.TemplateControl.LoadControl to build a templated web part for a SharePoint application, and I'm having trouble with a control that references an external assembly.
I have a user control with the first few lines like this:
<%@ Control Language="C#" ClassName="MyControl" %>
<%@ Assembly Name="AjaxControlTo...
The current project I'm working on allows UserControls to be dynamically added to a page in a number of different placeholders across what could be an infinite number of templates. So basically using a CMS.
Awesome I hear you say but what happens when I want two of these UserControls to talk to each other? i.e. A search form control and...
I make a asp.net usercontrol. its name is ucTreeview. in my page it named: uc1:ucTreeview
How can i rename uc1?
...
I want to have a common control library with a whole bunch of User Controls for dealing with common UI scenarios (login etc)
My plan was to have a separate dll for these. But this seems to mean that I lose designer support for them in the referencing application.
Is there any alternative apart from just including a separate copy of ea...
I am converting a 1.1 project to 2.0 and am having an issue with some User Controls.
In the original project, there was a class library project and the website project. In the class library project, there was a folder called UserControls and in this were several ascx files and their code behind files.
I'd like to keep the same structur...
I'm having trouble figuring this out. If I have a checkboxlist inside a usercontrol, how do I loop through (or check, really) what boxes are checked in the list?
As I said in the comment below, I'd like to expose the checked items through a property in the control itself.
...
I have legacy windows forms user control that exposses several public methods. I wrapped this control on a wpf user control and encapsulated the Methods with a relaycommand on the new wpf usercontrol.
Now my problem is how to use the mvvm pattern to execute the commands on my user control form the viewmodel that is used with the view...