Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > asp.net building controls > october 2004

Filter by week: 1 2 3 4 5

How should control images should be handled?
Posted by ~~~ .NET Ed ~~~ at 10/31/2004 8:17:09 PM
This is something that has been nagging me over and over again and I think there must be a better solution out there. Some times (usually?) user controls and custom web controls need images such as icons and other decorations in the form of images. The problem is... how do you handle that in a...more >>

How to use <asp:ListItem> as part of my own control
Posted by ~~~ .NET Ed ~~~ at 10/31/2004 3:59:53 PM
That is the question indeed. I have a user control that needs to render some content, the content is actually made of items. Because of that I would like to use <Asp:ListItem> as inner contents of my user control as follows: <uc:MyControl runat=server id=MyControl1> <asp:ListItem text="item...more >>

license an assembly
Posted by TJS at 10/30/2004 1:15:12 AM
How do I add version information to my assembly when compiling ? ...more >>

Composite Control - Event not firing in child control
Posted by Chris Simmons at 10/28/2004 2:31:55 PM
Hello: I am experiencing an issue where I have a composite control (TestOuter) composed of more composite (TestInner) controls. When I am seeing is if the TestInner control is placed on a webform, the events of the control fire. If TestInner controls are placed within the TestOuter control,...more >>

Values not persisting in extender provider
Posted by i.s.director NO[at]SPAM gmail.com at 10/28/2004 3:57:05 AM
I'm experimenting with a provider to extend WebControl TextBox validation. Everything shows up ok in the designer. However, if you close and reopen the aspx file, the values don't seem to persist. Any ideas what could cause this? Here's a snippet of the definition code. I can provide more c...more >>

Non-visual C# objects on a webpage are not marked as "safe for scr
Posted by lwickland at 10/26/2004 8:11:04 AM
Non-visual C# objects on a webpage are not marked as "safe for scripting" I'm developing .NET components in C# which are used as ActiveX-style controls on web pages that are displayed inside a custom browser which is based on the IE web browser control. On 3 of about 100 PCs that the control...more >>

HTML Intellisense for composite control (using datagrid)
Posted by piyush NO[at]SPAM fasttrackteam.com at 10/26/2004 3:02:45 AM
Hi, I am developing a web composite control using datagrid, dropdown, linkbuttons etc. Its basically an extension to datagrid control to provide more functionality. The control is derived from webcontrol. The control has a property "Columns", which is a columns property of datagrid. Its de...more >>

custom datagrid sample code
Posted by geeksgk NO[at]SPAM yahoo.com at 10/25/2004 10:18:13 AM
Folks, I have created a fully reusable, sortable, pageable datagrid as a composite control (Compiled to a DLL). It works great. I took that fully working code and tried to implement it as a derived custom control and it does not display anything on the Browser. I debugged in line by line an...more >>



Init Control when dropped on form??
Posted by A Traveler at 10/22/2004 11:49:50 PM
Hello all, I have a control i wrote which inherits from asp:label. It worked fine. It extends asp:label with a "For" property which implements the "for" attribute of an html label tag (yes i know the latest framework vers. added this, but i want ot get mine right as a learning exp.). I a...more >>

Each time I do a postback, another copy of a control is added to the page!
Posted by Simon Harvey at 10/22/2004 2:40:34 PM
Hi everyone, I'm having a really weird problem with one of my pages. Whenever I hit the submit button, it reloads the page but another side menu control appears underneath the original one. This will occur as many times as I hit the submit button. The thing that I don't understand is that I...more >>

Get Child Controls at design-time
Posted by WALDO at 10/22/2004 12:44:47 PM
I have a Webcontrol that was supposed to act like a panel control. I manipulated a TemplatedControlDesigner to make an "Edit mode". I save my template to the controls collection during design-time. Then I use GetPersistInnerHtml with ControlPersister to push the controls collection back to the ...more >>

defaultValueAttribute
Posted by Mike G. at 10/22/2004 8:41:56 AM
I have a dumb question: What does the defaultvalue attribute do? The help system says that it "Specifies the default value for a property", and provides the following as an example: Private MyVar as Boolean = False <DefaultValue(False)> _ Public Property MyProperty() As Boolean Get ...more >>

Problem with Autopostback
Posted by le_mo_mo NO[at]SPAM yahoo.com at 10/21/2004 6:40:25 PM
Hi, I have a set of Dynamic DropDownLists with AutoPostback. the problem I have is that when I select the dropdown and the page refreshes the old values in the text boxes disappear. Is there a way to preserve the values? Thanks, Mo...more >>

How to use user control's property of DataTable type
Posted by IKdev at 10/21/2004 9:31:16 AM
I have a user control (not custom control) and want to use a public property of it which is of DataTable type. contol is used in the page in this manner: <uc1:Mover id="MoverFFF" runat="server" OriginalData='<%MyAssembly.MyClass.GetMyData("FFF")%>'> I got error : "Cannot create an object of t...more >>

Help with making a control work . Please help :-(
Posted by Simon Harvey at 10/20/2004 4:44:12 PM
Hi everyone, I'm having a problem with getting a control that I'm using to work. I have a placeholder control sitting within a user control. On certain occasions at runtime I create a Textbox control and add it to the placeholder. This works well almost all the time. Unfortunately ther...more >>

how to get selected values ( vb.net )
Posted by krzysiek at 10/20/2004 1:30:30 PM
hello, i have several radiolists and checkboxlist that are generated dinamicly based on datasource. So frankly speaking i don't know names and number of that web controls cose they are always different. How can i retreive selected values from those controls ? ...more >>

How do I get the input from a user web cotnrol and build the control based on that?
Posted by Alex Stevens at 10/20/2004 10:50:08 AM
Hi, I'm building a user login control, which will accept a username and password in textboxes and a checkbox to keep logged in - pretty much your conventional login control. When the user logs in, it writes a cookie to remember them, and if this cookie exists when the control is run it just s...more >>

How do I get the url of control's page at design time?
Posted by GoogleGroups NO[at]SPAM WALDOLand.com at 10/20/2004 7:13:02 AM
I have a control designer that I am building for a webcontrol I've built. The control includes some images as part of it's design. I'd like for the designer to resolve those images so they can be shown in the designer. The control at runtime would ordinarily call ResolveUrl and get the correct p...more >>

INamingContainer has change my controls event order.....
Posted by Alex Stevens at 10/19/2004 5:02:01 PM
Hi All, I have built a composite user web control and I've NOT implemented INamingContainer. It does implement IPostBackDataHandler to retrieve information entered into the controls when the host page is submitted. In the controls LoadPostData event, I retrieve the information entered and ...more >>

browse local disk drive
Posted by Stanley J Mroczek at 10/19/2004 4:25:02 PM
I am looking to browse local disk drive to upload pictures to my web system. How do i display my local files? I am using an aspx in vb...more >>

Override UITypeEditor on class
Posted by GoogleGroups NO[at]SPAM WALDOLand.com at 10/19/2004 11:55:53 AM
Somebody asked this in August but didn't get a response. I have a control with various properties, one of which returns type Color. I have a custom UITypeEditor which brings up the advanced ColorPicker dialog. This UIType editor works fine if I change the property type to String. When I switc...more >>

dynamic linkbuttons event not raising - newbie
Posted by Matias Woloski at 10/18/2004 5:05:12 PM
Hi, I am creating a custom server control, and it dynamically creates lots of LinkButtons, and then I try to subscribe to the click event doing this: LinkButton link = new LinkButton(); link.Click +=new EventHandler(this.MyLinks_Click); When I then click on the link, it never invokes MyLinks_C...more >>

User control + relative path
Posted by Alex at 10/18/2004 12:47:01 PM
Hi. I need some help on this. I have a user control (a header) in my root directory, and all my pages use that control. Then a created a folder (in my root directory) and put a new page inside it, and that page use the same control, but this time the control can't find it's images and resources ...more >>

how to throw (raise) exception from a custom control
Posted by geeksgk NO[at]SPAM yahoo.com at 10/17/2004 9:15:16 PM
Here is an interesting situation I'm facing while creating custom controls. Problem Abstract: Unable to throw a exception from within the custom user control I developed as a DLL. Details: I wrote a simple custom user control which creates a text box dynamically. Then I added try catch...more >>

Script control
Posted by Magne Ryholt at 10/16/2004 4:25:11 PM
I have made a control based on System.Web.UI.WebControls.WebControl which override the Render method to emit a script (by using the Page.RegisterStartupScript() method) This works fine. This control does not render any HTML code except the mentioned script, therefore I would like to put the...more >>

Custom DataGrid Control !
Posted by Ankur Goyal at 10/14/2004 11:18:10 AM
Hi All! Is it possible to define a DataGrid User control for a ASP application so that all the changes made to this control could reflect to all the grids used in applications. Please refer any links to define Custom Datagrid user control. Note that all the grids will be binded to diffe...more >>

WebControl containing HTML
Posted by The_Dane at 10/14/2004 8:23:03 AM
Is it possible to make a control something like this : <SSL:GROUPBOX runat=server Title=Search> <SSL:GROUPBOXBODY> <TABLE> <TR> <TD>Text contained in controls</TD> </TR> </TABLE> <SSL:GROUPBOXBODY> </SSL:GROUPBOX> In other words i want the control to contain any kind of HMTL ...more >>

Problem: <%= %> is not evaluated..
Posted by ruskie at 10/13/2004 2:32:59 PM
I created a user control with two public properties and drop it to an aspx page as the following <uc1:myUserControl id="myUserControl1" runat="server" MyProperty1="<%= this.MyVar1 %>" MyProperty2="<%= this.MyVar2 %>" > </uc1:myUserControl> Why the "<%= this.MyVar1 %>" and "<%= this.M...more >>

Books
Posted by Griff at 10/13/2004 1:39:07 PM
I'm after suggestions for the best books around for creating, using and displaying controls in ASP.NET (by "displaying", I guess I'm talking about CSS). I'd like a book that uses VB.NET for its examples and ideally uses Visual Studio 2003. (Probably a common thread in the newsgroups, but thin...more >>

Newbie "how to" questions
Posted by Griff at 10/13/2004 11:46:28 AM
I'm a complete novice to ASP.NET and have two questions - the first is conceptual and the other is technical. Conceptual: I envisage having a web site that has a search facility displayed in the top corner of every page. Seems sensible to me to have this as a control? So, no matter what is ...more >>

I need to build user controls dinamically, is possible?
Posted by leon at 10/13/2004 9:10:05 AM
Hello everybody. I need to build user controls dinamically into aspx page. Besides of this, i need to put into each userscontrol different controls, add to every control its control validators and its events. If someone has some idea, i will say Thanks a lot. leon ...more >>

<input type="image"... based custom control
Posted by Alfred Tascon at 10/12/2004 9:08:33 PM
I have created one of these controls but arent getting any call backs. I've got the source from the MSPress book "Developing Microsoft ASP.NET Server Controls and Components" for SimpleButton.cs (off Chapter 9) and modified the "type" attribute to "image" plus added "src" attrinbute. After c...more >>

composite control and postback data change handling
Posted by Donal McWeeney at 10/12/2004 2:12:45 PM
Hi, I have a composite control that gets created dynamically and contains an array of checkbox controls and an array of drop down list controls. All the control postback and rendering works fine - however there is something that I want to do that I cant figure out how to do. In my OnLoa...more >>

Dynamically added usercontrol raised events
Posted by ujjc001 NO[at]SPAM charter.net at 10/12/2004 12:34:44 PM
I've tried and tried and this problem eludes me. I have a form called "main" which has a div tag "DeptInfo" in which I add my control "Information", here's the code. --- Dim cont As New Control cont = LoadControl("Information.ascx") cont.ID = "Information" DeptInfo.Controls.Add(cont) ---...more >>

Could not load type 'UserWebControl.DatePicker'.
Posted by sbussing NO[at]SPAM xs4all.nl at 10/8/2004 11:58:05 AM
Hi all, when trying to build a custom webcontrol I receive the above message. It's caused by the inherits attribute of de the control-directive. I have no clou of what could be going wrong. Any help is appreciated: Code of the control: <%@ Control Language="vb" AutoEventWireup="false" Co...more >>

IExtenderProvider
Posted by itsenes at 10/2/2004 2:59:01 AM
I'm trying to find an implementation of an extender provider for WebForms i've read the article in msdn about using the IExtenderProvider in WindowsForms but i can't make it work for ASP.NET. The article had the following note: Note: The implementation of an extender provider for Windows For...more >>

Global Address/Phone/SSN[Country ID]
Posted by Kamaluokeakua at 10/1/2004 12:47:02 PM
I have to write an application that deals with clients in multiple countries. The addresses, phone numbers, country id[social security number] and currency information has to be stored into a database that allows for the format of any country. I would like to be able to automatically display...more >>

How can I build a Custom Control, that isn't visible in the form, but below
Posted by Horst Klein at 10/1/2004 12:16:04 PM
How can I build a Custom Control, that isn't visible in the form, but below (like the ErrorProvider) Best regards Horst ...more >>

templated control designers and default controls
Posted by Rick at 10/1/2004 4:10:57 AM
I'm trying to develop a designer that will allow a developer to drag and drop a control onto the design surface and right click it to edit two templates, the two templates being panels for other controls to be dropped onto. This all works fine but what I really want to have is a set of default c...more >>


DevelopmentNow Blog