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 > april 2006

Toolboxbitmap Attribute for custom control
Posted by studen771 at 4/29/2006 1:25:01 PM
THanks in advance to anyone who can help :) The only way I'm able to add my custom 16x16 toolbarbitmap image is by using the ToolbarBitmap constructor: ToolbarBitmap(//path to imagefilename) I'm unable to get it to display embedding it has a 'resource' in the assembly the control's class...more >>


Open htm and asp pagen inside an .NET aspx project
Posted by Erik at 4/26/2006 8:01:22 PM
Hi guys, someone know how could be possible open an htm page or asp page (created for example using frontpage) inside an aspx page (created using ..NET 2005)? I have a populated list box on the left of my aspx page and any time that the user chose an item on it I have to change the htm/asp pa...more >>

Accessing hidden controls on ascx page
Posted by krallabandi NO[at]SPAM gmail.com at 4/26/2006 12:36:27 PM
I have a hidden control <input id="FieldSortOrder" type="hidden" name="FieldSortOrder" runat="server"> in a ascx page. I want to store some value in this control in the code behind page. FieldSortOrder.Value = "xyz" I am getting compilation errors - 'FieldSortOrder' is not declared. The...more >>

How to Display an image, from a DB, into the Gridview (ASP.NET 2.0)
Posted by Auto at 4/26/2006 11:36:56 AM
Hello, I would like to know how do display an image into a Gridview (ASP.NET 2.0) taken directly from a DataBase, NOT using an URL, like described in this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/GridViewEx06.asp I have NO URL, i have the binar...more >>

DataGrid Buttons Appearance
Posted by MrsLeigh at 4/26/2006 5:55:02 AM
I have been trying to figure out how to change the color of the Button on my datagrid. And when I try to change the back color it changes the color of the border and when I change the fore color, it changes the color of the text. Can someone tell me how to change the color of the BUTTON its...more >>

How to "Imports Resources" into compiled custom controls?
Posted by Samuel at 4/25/2006 2:41:01 AM
Hi, I am building a custom control for a Web Application in ASP.NET 2.0 that makes use of the name space "Resources" for localization (app_globalresources) by adding this to the top of the customcontrol.vb file in the app_code directory: Imports Resources However, when I move the file...more >>

Iterate through page controls
Posted by Avon at 4/23/2006 10:33:56 PM
Hi friends, I need of some help, I have this code: For Each t As TextBox In Page.Controls ' here is the error t.Text = "test" Next But I am getting this error: Unable to cast object of type 'ASP.masterpages_maindesign_master' to type 'System.Web.UI.WebControls....more >>

FileSystemWatcher does not seem to be working
Posted by Nathan Sokalski at 4/21/2006 7:15:50 PM
I have a directory on my site that I keep a bunch of text files in (this directory is "/poetry/poems/"). The Application keeps the first line of each of these files in an HttpApplicationState variable as a SortedList. When I add or modify a file in this directory, I want to delete this HttpA...more >>



converting varchar to double
Posted by Frederik Vanderhaeghe at 4/20/2006 4:04:45 PM
Hi, I try to cast/convert a varchar into a double but it doesn't work, i get an error that it isn't possible to convert. What can I do? The code is: whereSQL += "cast(bedrag as numeric(10,2)) > '" & Double.Parse(txtdocbedrag.Text) & "' and " Fré ...more >>

CompositeControl and Toolbox
Posted by CMM at 4/18/2006 6:24:36 PM
This has been asked repeatedly many times and no one has been able to answer it. Now, I have the problem too..... why are CompositeControls so hard to make show up in the Toolbox? Why do they show up sometimes and then disappear? What's magic combination of tricks need to happen in order for ...more >>

VS 2005 & Web User Controls
Posted by Alex Maghen at 4/18/2006 3:03:02 PM
Hi. When you create a Web User Control using VS.NET 2005, it creates something that looks quite different from what was created in previous versions. Is there a documetn anywhere that expalins specifically how ASCXs have changed in this version? Alex...more >>

User control init event in C#
Posted by cheloman12 at 4/18/2006 5:41:02 AM
Hi everybody I’m using user controls in a web application, and i’m triyng to make use of its init event. This is the sample code I’m using in the user control using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Sec...more >>

problem whil adding user control dynamically multiple times
Posted by parulrgupta NO[at]SPAM gmail.com at 4/17/2006 10:13:56 PM
I have two buttons add and save on my aspx page as and when i click on save button ,i want to load user control on form it works fine but when i click on add button then that previously loadded user contol goes away i dont kow why this happnes ... if anybody have any idea abt it then plz ...more >>

ASP.NET 2.0 - How to build a Monitoring Application
Posted by Auto at 4/17/2006 8:59:17 PM
Hello to everybody, I would like to know how to build an ASP.NET 2.0 Application that show me some data from a SQL Server Table and refresh it every one or two seconds ? With autorefresh ? May be it is not so elegant... I heard somthing about "Client Callback Manager", could this be good for ...more >>

Custom Panel
Posted by CMM at 4/17/2006 8:56:36 PM
Can't figure this one out... seems like it should be a no-brainer. Is it possible to create a UserControl that can act as a container a la the Panel control?... not a "naming container" or anything fancy.... just a simple container. Basically I have a pretty custom table that I'd like to reuse...more >>

Collections properties in custom controls
Posted by Roberto Ferreira at 4/17/2006 3:57:41 PM
Hi, How I can create collections properties in my custom controls in ASP.net (C#), I need create properties inside other propierties. Thanks! My english is bad, excuse me! ...more >>

Reg: Showing default data in DropDownList
Posted by Sagaar at 4/17/2006 2:01:01 PM
Hi I have a datagrid with 2 DropDownList controls...I am binding data to these controls on pageload event. I wanted to show some default text in these controls like "Select Drodown1" but this value is not present in dataset... How can I add this to those controls in datagrid without a...more >>

Usercontrol always needs a second postback
Posted by Stef at 4/17/2006 6:45:41 AM
I folks, I have a simple page with a user control dropped on it, a textbox and a submit button. That usercontrol should display the value entered in a textbox after I've clicked the submit button but it doesn't on the first click! I must click a second time to get the textbox value display...more >>

Code your asp.net page to pay by visa
Posted by Panda^ at 4/17/2006 5:33:58 AM
Hi can anyone help me please! I’m building an asp.net page and I need to make an online transaction so the client could pay his fee online by visa. Can some one distribute me an e-book or something or tell me which main functions I have to handle. I’m new to the forum and new to asp.net. I’m c...more >>

Anybody actually building controls?
Posted by CMM at 4/14/2006 7:41:41 PM
This NG is rather empty and breezy. It's no wonder.... Man, I thought the ASP.NET team would have addressed the blatant lack of support for good encapsulation and code re-use in ASP.NET. I honestly don't think they have A CLUE as to how people build web sites... or good applications. 1) ...more >>

CompositeControlDesigner -
Posted by Sebastian at 4/14/2006 6:18:01 PM
Does anyone has an Idea how to render content edited in CompositeControlDesigner ? This page shows nice example of editing content in design-time: http://msdn2.microsoft.com/en-us/library/system.web.ui.design.editabledesignerregion(VS.80).aspx , but Text entered in Views is not renderig at ru...more >>

[C#]My first CompositeDataBoundControl
Posted by fekih_mehdi NO[at]SPAM yahoo-dot-fr.no-spam.invalid at 4/13/2006 5:29:17 PM
Hi, and thanks for this forum I'm trying to build a new control composed of an Image and dropdownlis First I succed to build the control extending from DataBoiundContro this my fast code and it works perfectly [ToolboxData("<{0}:Picturelis runat=server></{0}:Picturelist>") public cl...more >>

Custom template in a LinkButton
Posted by eebster NO[at]SPAM newsgroups.nospam at 4/9/2006 1:08:01 PM
Hi, Im trying to create a custom template in a control derived from a linkbutton. I want someting like this: <uc:SortButton id="sortId" runat="server">Column Name <SortUpTemplate><img src="up.gif"></SortUpTemplate> <SortDownTemplate><img src="down.gif"></SortDownTemplate> </uc:SortButto...more >>

Help Required in Repeater Control.
Posted by deepak.surana NO[at]SPAM gmail.com at 4/9/2006 5:28:43 AM
Hi, Can someone please help me out with the following problem. I have a couple of custom controls , on runtime i decide which all controls are to be place in repeater control. Now i am facing this problem of adding the particular controls in repeater controls. And how to repeat that particul...more >>

How to build a HierarchicalDataBoundControl derived control?
Posted by Tom Green at 4/8/2006 8:45:01 PM
Im trying to find information on how to build my own Hierarchical Data-Bound Control using the new classes in .NET 2.0 as the TreeView and Menu don't provide the functionality Im looking for... if anyone know of any sources or samples of this, please let me know....more >>

OnPreRender not getting called in control
Posted by Winista at 4/6/2006 11:07:42 PM
[ASP.Net 2.0] I am creating a composite control. It contains another custom control. There is some implementation in OnPReRender event of the contained control. When my composite control is rednered, OnPreRender event is not getting raised in the conatined custom control. What do I need to ...more >>

Default toolbox tab for custom control?
Posted by Arthur Dent at 4/6/2006 9:57:43 PM
Is there any attribute i can add to a custom control class, similar to <ToolboxData()> which would allow me to set a default tab in the toolbox whihc a control should be added to? Id like to make my controls so that they automatically add themselves to a tab for my own controls, named after my...more >>

Adding controls to EditableDesignerRegion/ITemplate in code.
Posted by Christophe Peillet at 4/4/2006 1:05:01 AM
I have a base custom control called 'WebBox' that contains a single EditableDesignerRegion. The contents of this EditableDesignerRegion are stored in an ITemplate via a property name 'Content', and serialized as an InnerProperty. This all works as expected, renders properly, etc., but I ca...more >>

Window Control in IE
Posted by Fitim Skenderi at 4/4/2006 12:00:00 AM
Hi, I am trying to place a Window Control on IE. I have created a windows control inheriting from UserControl. Then I place the control using <object> tag like : <object id="MyControl1" height="200" width="200" classid="Bin/TestCtrl.dll#TestCtrl.UserControl1"> </object> When I test th...more >>

Subproperties
Posted by Justin Friel at 4/1/2006 8:18:56 AM
Hi, I've been learning how to create custom web controls and have been having problems with subproperties. The first problem is that you can not see subproperties using intellisense. You can type the subproperty attribute in the tag and it will render correctly, but the source view of the ...more >>


DevelopmentNow Blog