all groups > asp.net building controls > january 2006
Filter by week: 1 2 3 4 5
why the error ?
Posted by Jon Paal at 1/31/2006 9:25:54 PM
why the error ?
Compiler Error Message: BC30452: Operator '&' is not defined for types 'System.Web.UI.WebControls.FontUnit' and 'String'.
Source Error:
Line 203: writer.AddAttribute("border", "1")
Line 204: writer.AddAttribute("style", ("FONT-SIZE: " _
Line 205: ... more >>
ASP.NET 2.0 BUG with ASCX controls
Posted by Amelyan at 1/31/2006 1:31:25 PM
My application runs fine for a long while then, all of a sudden my
it starts getting this error pointing to my ascx control in the call stack
Could not load file or assembly 'App_Web_ih1xlmmx, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system
cannot ... more >>
ASCX without @Register Broken?
Posted by richard.tallent NO[at]SPAM gmail.com at 1/31/2006 12:32:19 AM
ASP.NET 2.0 has a way to centrally register user controls (ASCX) in the
web.config file, but it is poorly documented and appears to be broken.
Can anyone confirm the issue or suggest a fix?
The SDK documentation examples have bad XML case and attribute names.
The following example allows the a... more >>
Discovering CSS refs in page custom control resides during design time.
Posted by HTML at 1/27/2006 9:26:55 AM
Hi,
I have custom controls that let developers apply CSS styles depending on the
state of the control. They can do this at run-time and also at design-time
in the properties pane. They currently need to type in the style class they
want to use. I would like to give the control the abilit... more >>
MaskedEdit in ASP.NET 1.1
Posted by Alex C. Barberi at 1/26/2006 6:53:03 AM
How would I make a masked text box, like the MaskedEdit control from VB6 or
the Mask property in .NET 2, in ASP.NET 1.1?
--
Alex C. Barberi
Chief Executive Officer
VisionForce
http://www.visionforceweb.com
... more >>
Order of events called in a custom control
Posted by Eddie Chan at 1/25/2006 5:01:30 AM
Dear Sir,
I have a question on the order of event called during using a custom
control when in
1. not IsPostBack and 2. IsPostBack situation
I have an aspx file with the following code.
<%@ Page Language="C#" CodePage="65001" Debug="true"
autoeventwireup="True" %>
<%@ Register TagPref... more >>
Dynamic Control
Posted by Bishoy George at 1/24/2006 4:31:07 PM
Hi,
I made a page with a button , when I click that button ---> a new TextBox
object is displayed.
I made the following code but the bug is:
Every time I click the button ---> a new TextBox appear but the previous one
DISAPPEARS!!!!
Could you fix it for me, please?
//.aspx page
//---... more >>
Template control not displaying Container properties
Posted by fusionmaster at 1/24/2006 6:12:02 AM
I am trying to create a templated control for asp.net 2.0 using the example
found in the documentation, however when outputing <%# Container.Message %>
it always returns an empty string. Please help.
control code:
using System;
using System.Web;
using System.Web.UI;
namespace Templa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Update Property that mapped to a child control's property ?
Posted by Samuel at 1/23/2006 1:55:02 AM
Hi,
I am developing a composite control for my own use and I am not sure what
the best practice is with regards to updating child control's property from a
mapped property on the custom control.
Should I
1) update the child control's property in the Setter of the composite
control's... more >>
Refer othr properties in the contrl in getstandardvaluecollection
Posted by Venkat at 1/20/2006 1:46:02 PM
Hi
I am writing a webcontrol, that has two properties, both are strings. Based
on the value of the first property, I want set the default values of the
second property. I am trying to set the default values of the second property
using typeconverter that inherits stringconverter and overrid... more >>
How to render ControlStyle and other standard attributes?
Posted by Ken Baltrinic at 1/19/2006 7:05:01 PM
I am writing a control that inherits from WebControl. It will be rendered
as a text box, image, and an iframe wrapped in span. Now here is my
problem. I want to render the entire contents more or less myself (i.e
override the Render method) for reasons to complex to explain here.
Everythi... more >>
ViewState properties and mapped properties don't work well togethe
Posted by Christophe Peillet at 1/18/2006 6:46:41 AM
I have a CompositeControl with two types of properties:
1.) Mapped Properties that map directly to a child control's properties
(ex.: this.TextboxText = m_txt.Text). These properties are handled by their
underlying classes (such as the TextBox control), and are not persisted by me.
2.) Uniq... more >>
Calendar control to display image on Mondays
Posted by David at 1/18/2006 6:01:07 AM
I am trying to get an image to appear on all Mondays within the calendar
control. I also want that image to be a link. How can I do this?... more >>
Cache options for custom control
Posted by Henke at 1/17/2006 11:46:47 PM
Hi,
I want to develop a function which will display a menu system based on a
hieracy which is fetched from a database.
For performace reason I would like to cache the menu structure per-user for
all pages the user will visit.
The problem here is that I can not use the session object for cac... more >>
XHTML+SMIL and HTML+TIME
Posted by e_zverev at 1/17/2006 12:04:04 PM
Hi
Is the XHTML+SMIL profile supported by IE? By other popular broswers?
Is it going to be supported?
What is the place for HTML+TIME as purely Microsoft specification in future?
What I know is:
There is a W3C specification called SMIL for web animation and, as far as I
understood, Micros... more >>
CreateChildControls() always has default values for properties
Posted by Christophe Peillet at 1/14/2006 4:20:02 AM
I am trying to develop a composite control that renders in a specific layout,
depending on the value of the custom LabelPosition property. The 'layout' of
the rendered control will change depending on whether the value of
LabelPosition is set to Left, Right, Top, or Bottom, as can be seen in ... more >>
Very Strange Problem! (Derived Controls) - Help!
Posted by Sosh at 1/13/2006 12:32:12 PM
Hi,
I'm pulling my hair out trying to work this out. Pehaps I am
missunderstanding something - hopefully someone can shed some light on this:
1) I have a class library that contains a bunch of custom web controls. Two
of these controls are derived from the TextBox control, and overide the
... more >>
Design Time Support for custom User Controls
Posted by Darren Clark at 1/13/2006 12:37:02 AM
Is there any way to get the UserControl designer(or my own designer) to
create a class other than UserControl at design time? Or to find out what the
actual class of a UserControl is at design time?
Specifically the situation I have is this:
First the classes...
public abstract class A
... more >>
Is it possible to do this? Server Control Designer help needed......
Posted by Ian at 1/12/2006 12:40:11 PM
I have created a server control which relies heavily on an image
generating httpHandler. This in-turn relies on the developer adding a
few lines into the web.config / machine.config.
What I would like is to somehow test whether the config file has this
httpHandler. If not then give the develo... more >>
Intercept when my control dropped on a WebForm
Posted by Vipeo at 1/12/2006 4:46:02 AM
Hi All!
I need to intercept the event when my control dropped on a WebForm (or
manually added by changin page's source HTML). I know about
IComponentChangeService and its ComponentAdding event, but in which class
should I use it?
Thank you for any help.... more >>
Collection Property of Another Custom Server Control
Posted by Sean at 1/11/2006 1:59:02 PM
Hi,
I read more and figured out how to build what I needed:
<cc>
<item></item>
<item></item>
</cc>
when <item> is an editable control in designer and I can drag and drop
controls in it.
The problem I'm having is to preserve user values on postbacks.
I found posts that recommend IS... more >>
Custom control on html page fails after VS project created
Posted by Craig at 1/11/2006 10:35:04 AM
I created a virtual directory and in the folder created an html file
which includes an <object classid=...> tag that references a simple
windows forms control dll. This works perfectly. Control displays as
expected.
I then used Visual Studio to create a new C# Web Appliation on the
virtual ... more >>
Adding action buttons to my control's design-time properties page
Posted by object01 NO[at]SPAM gmail.com at 1/9/2006 6:38:42 AM
I've seen controls like the DataAdapter provide clickable hyperlinks
(well, maybe not hyperlinks, but blue underlined text) in the
description panel of its Properties page. I'm building a subclass of
an ASP.NET Image control, and would like a button in its Properties
page labeled "Fit." When c... more >>
building a server control using controlBuilder
Posted by mr dropdown at 1/7/2006 11:57:01 PM
A very useful answer from Mike MacMillan a few days ago helped me create the
server control I wanted. It is something like:
<Main:Control>
<Children>
<Collection1 value=1></Collection1>
<Collection1 value=2></Collection1>
<Collection2 value=3></Collection1>
<Collection2... more >>
Ajax Control Implementation Problem
Posted by madani NO[at]SPAM gmail.com at 1/7/2006 2:45:39 AM
Hi,
I'm trying to make some ajax controls, I checked different ajax
controls to find out how they works.
main problem in developing ajax controls is updating other controls in
events that occur in ajax calls.
my controls use .NET 2.0 ICallBackEventHandler Internally and present
some Meth... more >>
Using ImageMap
Posted by WAkthar at 1/6/2006 10:22:06 AM
Hi
I need to use the imagemap control to display a map of a city centre.
Using this imagemap I need to be able to load locations of certain places
and display a yellow circle on the map. I also need to be able to display a
pop up with some info for the location whenever the user moves the mo... more >>
Adding custom template to repeater
Posted by HmFireBall at 1/5/2006 10:41:51 AM
Hi,
I want to display a dynamic menu using a custom control extending Repeater.
I need a SelectedItemTemplate a bit like in DataList so that I can
highlite the selected menu item.
Basically, it would look like :
..aspx :
<myns:Repeater runat="server" id="MyRepeater">
<ItemTemplate>
... more >>
How to position a custom webcontrol relatively under vs.net 2005?
Posted by amanda.shen NO[at]SPAM grapecity.com at 1/4/2006 11:01:21 PM
When I update my webcontrol form .net 2003 to .net 2005, one question
occured.
My webcontrol can not be moved when it is put on a web form.
Its(layout / position/ relative) can not be set.
Why?
How to solve this problem?
... more >>
control refresh
Posted by AVL at 1/4/2006 9:57:02 PM
Hi,
I have a requirement in which I need to refresh a single control instead of
teh whole web page. How can I do this asp.net 1.0?
... more >>
complex properties (font) on composite controls
Posted by Gentian Hila at 1/4/2006 5:52:02 PM
I have a control that is used to get a date (dropdown calendar) and is made
up by a label and three dropdownlists. I overrided the Enabled property so
when it is true/false all of the child controls are Enabled/Disabled.
That was easy. But now I need to change the text size of the composite
c... more >>
I really need to get this working......
Posted by Pipo at 1/4/2006 5:26:59 PM
The problem:
I create a very simple custom control:
public class cLabel : System.Web.UI.WebControls.Label { }
I place the cLabel in a user control.
When I place the user control on a page I get this exception:
Error Rendering Control - cLabel
An unhandled exception has occur... more >>
Dynamic control state changes lost on Postback
Posted by Christophe Peillet at 1/4/2006 8:33:04 AM
I have been developing a set of custom controls that include several
dynamically generated controls inside them (for example, 'SupportTextBox'
include a textbox, a label, and a validation icon used if the field is
mandatory). These controls also support AJAX callbacks. Everything works
fin... more >>
Mutli Part Rollover Button
Posted by Jerry Camel at 1/3/2006 10:54:01 AM
I want to create a custom control (ASP 1.1)...
It's a variable width rollover button with text... The background is made
up of three parts: The left side image which should change during rollover,
the background which sits behind the text label and the right edge which
just finished the g... more >>
String Array Property produces Parser Error
Posted by R=E9my_Samulski at 1/3/2006 2:41:42 AM
Dear readers,
I'm having problems with creating a custom control that accepts an
array of strings as a property. First I used the following code which
produced a Parser Error
<Bindable(True), Category(_ClassName)> _
Public Property [MenuItems]() As String()
Get
Ret... more >>
control project's references
Posted by TS at 1/2/2006 4:31:22 PM
My project that creates the assembly for my custom control references
assemblies for crystal reports, etc. These get copied with copyLocal false
(I"m guessing because they exist in the GAC). The hint path in the proj file
points to the location i referenced from.
I have had issues with othe... more >>
|