all groups > asp.net building controls > january 2007
Custom Control: Style Subproperty Changes Not Updating Display at Design-time
Posted by Mark Olbert at 1/31/2007 8:25:49 PM
I have a custom composite (databound) control with the following property:
[Category("Styles")]
[DefaultValue(null)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[Description("The style for the single character sel... more >>
Design-Time Support for Composite Server Control in a Table
Posted by brian.chandley NO[at]SPAM gmail.com at 1/30/2007 8:32:38 AM
I am creating a Composite Server Control (.NET 1.1), the Control is
comprised of 3 Table Rows.
It works perfectly well during run time, and when it is webform alone.
The problem arises in the VS.net designer when the control is placed
in a Table.
<table >
<CC1:TerritorySearch id="SYRTerri... more >>
Access controls inside GridView template at designtime
Posted by jdlwright NO[at]SPAM gmail.com at 1/25/2007 9:22:24 PM
Hi, I need my control to access other controls that are located in the
ItemTemplate of a GridView - at designtime.
I had success in the past with DataGrid, doing this by calling
FindControl at design-time - however it doesn't work with GridView.
So basically in the EditValue method of my UIT... more >>
Expresion Expected Error - VS 2005 - Migrated from VS 2003
Posted by John Banks at 1/25/2007 2:13:47 PM
I have an asp.net project that I have migrated to VS 2005. The product
had zero errors in vs2003 and for the most part functions properly in
2005 except for one complicated page where I am receiving an Expression
Expected error on some very simplistic code. Please forgive the fact
that the... more >>
Tpyesystem problem with ASP.NET UserControl.
Posted by Michael Lierheimer at 1/25/2007 4:48:43 AM
Hallo.
After migration from ASP1.0 to ASP 2.0 I have the following problem. The
migrated code does not compile. I get an error: "Cannot implicitly convert
type 'NetView.WebUI.ctlSubDevice' to 'ASP.distributor_ctlsubdevice_ascx'.
An explicit conversion exists ...."
The line in the code... more >>
Using ITemplate as property of a custom control
Posted by yawarady NO[at]SPAM gmail.com at 1/24/2007 8:39:26 AM
Hi,
I am using ITemplate as property of a custom control in order to get
the following struct:
<test:mycontrol>
<myTemplate>
<asp:TextBox..........
</myTemplate>
</test:mycontrol>
The only thing that I want to add now is a property to the myTemplate
tag, in order to be able... more >>
Designing UserControls in VS2005 Pro using stylesheets (css)
Posted by ts NO[at]SPAM ck-de.net at 1/23/2007 12:40:10 PM
Hi experts,
when trying to design a UserControl (ascx) using the designeditor of
VisualStudio2005 Pro:
How can I embedd a stylesheet to make a perfect layout ?
Until today I've designed some kind of html-template using another
editor (for example dreamweaver) and then I copied and pasted th... more >>
Setting Inner Tag Content at Design Time programmatically
Posted by Nathaniel Greene at 1/19/2007 10:57:00 PM
I am creating a web control. At design time I would like the designer to
inspect the control being hosted, to see if there is any inner content and if
there isn't then programmatically set the server control's markup.
for example <My:Control runat="server"></My:Control> would be changed to
<... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Control with no closing tag
Posted by Peter Zolja at 1/19/2007 9:42:17 AM
Hi,
I'm trying to build a custom control that doesn't have a closing tag. For
example, right now when I create a control from the IDE I get this:
<cc1:MyControl runat="server" ID="SomeId"></cc1:MyControl>
I'd like it to be:
<cc1:MyControl runat="server" ID="SomeId" />
This control w... more >>
Custom webcontrol with reference to another one
Posted by iontichy at 1/18/2007 12:18:16 PM
Hi,
I've been working on a custom webcontrol with a property that
references another webcontrol from the same page.
In my special test case I have a Person_firstname1 control and a
PersonSource1 control. The Person_firstname1 have a property of the
type PersonSource. Now i want to assign the th... more >>
Compilation of UserControls
Posted by Nathan Sokalski at 1/18/2007 2:23:12 AM
In several of my UserControls I add properties. If I access these properties
in the CodeBehind of the pages that use the controls, I recieve an error
when compiling. The reason for this is because the compiler tries to compile
the pages that use the UserControls before compiling the UserContro... more >>
AutoComplete in ASP:TextBox control in ASP.NET 1.1
Posted by rbg.net NO[at]SPAM gmail.com at 1/17/2007 3:03:25 PM
I know that there is a autocomplete property for the HTML "INPUT
type=text" control which if set to OFF, disables autocomplete of the
input textbox (doesn't remember previously entered values)
However there is no such corresponding property for the TEXTBOX ASP.NET
Webcontrol in ASP.NET 1.1.
... more >>
User Control access fails in debug mode, works in release mode
Posted by rbg.net NO[at]SPAM gmail.com at 1/17/2007 2:53:57 PM
I have a custom usercontrol in ASP.NET 1.1 named BreadCrumb.ascx which
contains another control also called BreadCrumb.ascx within itself.
Thus the parent BreadCrumb.ascx control is simply a container of the
real (child) Breadcrumb.ascx control.
When I use this parent BreadCrumb.ascx user co... more >>
strip span tag from text-only templates
Posted by Samuel at 1/16/2007 10:59:00 PM
Hi,
I am building a control that renders as a table, and I created two templates
for my users to "wrap" the table with whatever HTML tags they want. Like this
<topWrapperTemplate></topWrapperTemplate>
<table>.....</table>
<bottomWrapperTemplate></bottomWrapperTemplate>
whatever goes int... more >>
Collection Property in web custom control
Posted by Class at 1/16/2007 6:07:49 PM
Hi all,
I'm building a custom control. I would like that on the control you can set
some 'rights'
For that I have an enum:
public enum GroupRights
{
Group0 = 0,
Group1 = 1,
Group2 = 2,
Group3 = 3,
Group4 = 4,
Group5 = 5,
}
In design time I want to set these right (can be multiple... more >>
GetPostBackEventReference - dynamic argument
Posted by Monty at 1/15/2007 12:21:53 PM
Hello,
I'm building a sever control that is essentially a container that holds a
bunch of DIVs. I want the click event on any of the DIVs to bubble up to the
container which calls the __doPostback procedure as given by the server-side
call to ScriptManager.GetPostBackEventReference(Me, sArg... more >>
Page seems to be remembering HttpSessionState
Posted by Nathan Sokalski at 1/14/2007 8:50:20 PM
I have a page that determines some of what to display based on
HttpSessionState. When I go to it the first time, it displays everything the
way I would expect. Then I go to another page on my site (by clicking links,
so I am still using the same browser window), which calls Session.Abandon()
... more >>
Object reference error in UserControl's Load event
Posted by Nathan Sokalski at 1/6/2007 2:28:25 AM
I have a UserControl that I declare programmatically as follows:
Dim userctrl as New rightside_portal()
The codebehind file for this UserControl looks like the following:
Partial Public Class rightside_portal : Inherits System.Web.UI.UserControl
Protected Sub Page_Load(ByVal sender As Ob... more >>
Custom Control - Collection Property
Posted by Synced at 1/4/2007 6:43:01 PM
Hey gang. I am taking the task of trying to learn how to write custom web
controls.
I have started with inheriting from the VS 2005 default which is UserControl.
I am implementing collection and just basic properties in my control and
they are compiling and running so far but when I try an... more >>
Connection Problem in Publishing Website
Posted by Hassun at 1/4/2007 1:41:02 AM
Hi,
I have a site with several pages and most of them have SqlDataScource
controls that connect the page to my local SQL Server.
How can I copy a Website to a remote server and change all the
connections to the remote SQL server? Changing the connections before
uploading all pages is not ... more >>
Custom control is naming it's components differently
Posted by Nathan Sokalski at 1/3/2007 7:00:05 PM
I have written a custom control that uses AJAX (it implements
IPostBackDataHandler and ICallbackEventHandler). I have tested it, and it
seems to work the way I want. However, when I used it in another application
of mine it named the components as ControlID$ComponentID instead of
ControlID:C... more >>
|