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
May 2008
June 2008


all groups > asp.net building controls > december 2004

Filter by week: 1 2 3 4 5

Browsable Attribute
Posted by Thiruppathi S at 12/31/2004 2:22:31 PM
Hi All, Could any body plz help me. I want to set the browsable attribute value of "property2 " according to the value of "property1" i could able to change the value of that property but not the attribute plz help me Regards S.Thiruppathi, ...more >>

TemplatedControlDesigner - how to refresh design view
Posted by Mike at 12/30/2004 9:35:19 PM
Hi all I have a simple templated control (the one from ASP.NET quickstarts, little modified -> http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/ctrlauth/templates/Template1.src). I tried to add design-time support, and found "SimpleTempl...more >>

Cannot keep selected value in control?
Posted by Francois Soucy at 12/29/2004 9:16:52 PM
Hi all! I've begin my first webcontrol with asp.net. I've not build everything but the first part is done except that the dropdownlist did not keep is selected value between postback. I've reed many tutorial but no one can explain me what's wrong with my code. Someone could give me ...more >>

New control from scratch....
Posted by Chris Fink at 12/29/2004 12:15:03 PM
I am curious...how do you go about building a new control from scratch? Just for example, suppose you want to rebuild an asp:textbox control just like the one provided in the framework, but are not allowed to use the textbox base class. Is this even possible? This would involve drawing the ...more >>

saving text values of dynamically created textboxes
Posted by YunusEmre at 12/28/2004 3:48:07 AM
I have many textboxes that are created dynamically as child controls of my custom control. I know that I must recreate them after each postback and also know that I can use the ViewState property to save the state of my controls. What I dont know is when to save the values into viewstate. ...more >>

PrepareControlHierarchy
Posted by Faizan Ahmed at 12/27/2004 5:04:15 PM
Hello All, I have yet another problem, I've derived a control from Datagrid, Now in the OnInit() method i Created a button control, added it to a HtmlTable and added the HtmlTable to my Composite control's Control collection. The heirarchy is something like this CustomControl C ...more >>

Warning Messages...
Posted by Irfan Akram at 12/27/2004 2:45:03 PM
Hi Guys, I was wondering if you can help me with this question. I am trying to display warning messages on my web-page, prompting the user to check his action, and confirm what the current action would do. What is the best way of doing that in asp.net. I know that we can do that easily in w...more >>

Getting the page to focus on the right place.
Posted by Irfan Akram at 12/27/2004 2:19:04 PM
Hi Guys, Wondering if you can provide me with some assistance on this one. I have dynamically generated radio buttons on my screen, which autopost back when selected. The problem is that each time the page loads, it ends up at the top of the screen and not where the interaction is taking pl...more >>



Extending a 3rd party control
Posted by Randy at 12/27/2004 6:56:48 AM
I'm trying to extend the Infragistics Webcombo. I create my own server control and set all the properties that I want to standardize on in the constructor. However, drag my control onto the design view of my aspx page, it puts all the original properties in the html. For example, I wan...more >>

Adding validator to simple server control
Posted by Ron Strong at 12/26/2004 1:27:09 AM
I have some trivial server controls, derived from various WebControls (TextBox, DropDownList, etc). The server control wraps the web control and its label in a number <div>, <span> and <label> elements, with appropriate class or style to facilitate proper positioning within a form. I would l...more >>

How to handle events of controls created at run time?
Posted by Lalit at 12/22/2004 8:29:16 AM
Hi, My application has two methods which creates buttons at runtime. In one method I am able to handle the events of the buttons created at run time, but in other I am not. The code structure is as follows: page_load { ...Do something CreateFirstSetOfButtons() } private Crea...more >>

Creating a control that pops up a window
Posted by Faizan Ahmed at 12/22/2004 2:02:38 AM
Hello all, I am developing a custom grid control. I want to add the filter feature in the columns of the grid, lets say when the user clicks the column header(or any image on header) a new form pop-ups asking the user of the filtering criteria.. when the user enters the criteria and press OK o...more >>

Newbie IPostBackDataHandler Question
Posted by Solel Software at 12/21/2004 11:09:01 PM
Hi, I am having a problem with a custom server control I'm working on and put together a skeleton example to demonstrate the problem. Basically, I have a custom server control with two RadioButton controls added in CreateChildControls. They work great and all is well except for some reaso...more >>

How to access the owner Page from within a component
Posted by Ingvar Nilsen at 12/21/2004 8:19:30 PM
I have a component (System.ComponentModel.Component) and want to access the Page that "owns" it, during runtime. Yes, I can write a public property and set that property in the designer, and thereby get access to it at runtime, but I want to be smarter than that. Somehow the component has t...more >>

update of custom control
Posted by John Bankhead at 12/21/2004 8:19:01 AM
I created a user control that displays different subsets of data depending on the value of its public property "Folder". I placed the control on my page along with four asp:buttons to represent the four different folders. The clicking a button fires off the folder_click function which in tur...more >>

CustomDataGrid Child controls event problem - weird!?!
Posted by YunusEmre at 12/21/2004 1:50:47 AM
Hi, I am trying to build a Custom Web Control that extends the DataGrid control but I am having problems with the events of the child controls. As you can see in the following code I have four ImageButtons that I am willing to add to the grid. They will function as page navigators (First, P...more >>

Help in composite control
Posted by Faizan Ahmed at 12/20/2004 9:05:20 PM
Hello all, I've been stuck in this problem for a couple of days now and could'nt get any closer to the solution.. any help will be highly appreciated.. I have a server control that i derived from DataGrid control. This custom control also has a Microsoft IE Toolbar control which contains some ...more >>

Open Window with Javascript from WebUserControl and return values
Posted by Jorge Ponte at 12/20/2004 1:31:03 AM
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for that), the popup window will have also a text box and a button. when the User click on the button...more >>

How to make changes made to a component be updated immediately
Posted by Ingvar Nilsen at 12/19/2004 8:26:54 PM
I have two projects in the same solution. One of them contains a component, that is finished, and added to the toolbox. In the second project I have put this component on the webform. The problem arises when I make changes to the component. These changes are not immediately recognized in th...more >>

Breakpoints ignored in component
Posted by Ingvar Nilsen at 12/19/2004 8:22:21 PM
I have two projects in the same solution. One of them contains a component, that is finished, and installed in the toolbox. In the second project I have added this component to the webform. All works fine. Problem is, I am not able to set breakpoints in the source code for the component so...more >>

Not Able to trigger event in Composite Control
Posted by King Kong at 12/17/2004 7:28:44 PM
i have a datagrid and toolbar and have integrated them in my composite control(inherited datagrid) toolbar items are shown as for e.g <HeaderToolBarItems> <iewc:ToolbarButton Text="werwer"></iewc:ToolbarButton> <iewc:ToolbarButton Text="werwer"></iewc:ToolbarButton> <iewc:ToolbarB...more >>

Datareader, Datagrid and hyperlinks
Posted by Grant at 12/17/2004 1:24:54 PM
I am filling a datareader and then assigning the reader to the datagrid as follows: SqlDataReader reader = ADOConnect.populateDatareader(); AllResultsDataGrid.DataSource = reader; AllResultsDataGrid.HeaderStyle.Font.Bold = true; AllResultsDataGrid.DataBind(); My question is how do I speci...more >>

dynamic userControl can't be accessed during page load
Posted by Allan at 12/17/2004 11:59:02 AM
I have a userControl that I create based on how many rows I retrieve in a dataset. I add the control to my page but can't access it during the page_load. I assume this is due to the control not being actually created yet, the code is as follows... For Each row In dt.Rows Dim travelRow...more >>

dynamically work with datagrids
Posted by et at 12/17/2004 10:35:05 AM
How can I dynamically get the type of control in a datagrid. I have several columns that when editing a row, one column may be a dropdownlist, the next column may be a text box, the next column may be a label, or something else, depending on what the datagrid is for and whether the user has a...more >>

how do I access controls from a static class?
Posted by Grant at 12/16/2004 5:07:39 PM
Hi, I have a page with about 40 text boxes for capturing data and need to get the values of these text boxes to a static class for processing. I can go through individually and add to an arraylist but there must be an easier way.. In the aspx I can directly access these control values bu...more >>

Capturing Click Events in Buttons
Posted by King Kong at 12/15/2004 4:35:58 PM
i have three buttons in my custom web control and im not able to capture click events on em. how to do this in custom control. buttons are webcontrols too. Please Help ...more >>

Adding controls to a server control.
Posted by Wade at 12/15/2004 11:47:10 AM
Hi all, Question regarding server controls. I have built a server control that creates two listboxes and a few buttons. Here's a snippet to show how I've done this (from AddAttributesToRender sub): ' Available listbox writer.AddAttribute(HtmlTextWriterAttribute.Class, A...more >>

Setting values of UserControls used multiple times on a page
Posted by Grant Ord at 12/15/2004 10:13:04 AM
I have a pages which use the same UserControl multiple times on the same page - they have different IDs though. The UserControl contains a number of select lists. After databinding each select list in each control to a datasource, which happens correctly, I then set the Value property for e...more >>

New Control won't drop on designer page
Posted by jsh02_nova NO[at]SPAM hotmail.com at 12/14/2004 11:11:03 AM
Made new control as perscibed by MS web documentation, added control to toolbar, but control can't be dragged unto new web page. What ComponentModel Designer property tags did I forget to include?...more >>

serialization problem - eventhandling by control
Posted by Ralf Müller at 12/14/2004 9:46:28 AM
Hi folks! I am developing a custom TreeView and I have got a problem with the serialization of my TreeViewModel: [Serializable] public class NavigationTreeModel : ITreeModel { public event EventHandler DataChanged; private Folder _rootFolder; private IList _rootElements; ...more >>

dynamic controls in asp.net....Please Help...
Posted by Irfan Akram at 12/13/2004 11:41:04 AM
Hello People, I would appreciate your responses on this. I am writing an asp.net web-application involving C#. I am actually building a test hierarchy at the moment, which involves producing dynamic controls, depending on user response. To be more precise, I prompt the user for the num...more >>

Designer class missing
Posted by Troy at 12/12/2004 8:31:07 PM
I am missing the System.Web.Ui.Designer class from intellisense. When I debug it the IDE also indicates that it is missing. I'm referencing it in this statement: Editor(GetType(System.Web.UI.Design.ImageUrlEditor), GetType(System.Drawing.Design.UITypeEditor) Any ideas why I'm missing thi...more >>

Debugging at design time
Posted by G Dean Blake at 12/12/2004 4:59:56 PM
It appears easy using vs.net to debug servercontrols during runtime but how can I step through code that gets executed at design time. for instance when properties are set. Thanks, G ...more >>

Rendering an UserControl inside a mail body without any page object reference
Posted by Henri at 12/11/2004 11:14:03 PM
Hi I would like to use a User Control to render the body of the mail I send. I know how to do that using Page.LoadControl The problem is that my application is not an ASP.NET page so I can't use any Page object reference to call LoadControl What should I do ? Thanks Henri ...more >>

SelectedIndexChanged event is not fired
Posted by BentleyInc at 12/10/2004 2:25:23 PM
I've created a Web user control that contains a DropDownList and this DropDownList gets created and loaded in init() everytime. I set AutoPostBack=true and registered the event. I'm using the same user control at 2 different places. When running in the ASP.NET web form, the DropDownList is wor...more >>

composite control: how to assign initial values to child controls?
Posted by Ralf Müller at 12/10/2004 2:16:56 PM
Hi all, I've got a question concerning composite controls: As you can see, in my CreateChildControls method I have two custom child controls, each of them using a model. This model should be assigned to those controls only once in their lifetime since they keep it in their viewstate. But how ...more >>

Templated properties in composite control containing a datagrid
Posted by glevik NO[at]SPAM gmail.com at 12/10/2004 8:54:53 AM
Hello, I'm new to this. I have a composite server custom control that contains a datagrid, and can't quite figure out an easy way to make it configurable from an ASPX page - the same way datagrids are configured, with columns section etc. I know ITemplate is involved, but I am not sure how to...more >>

Event not firing in usercontrol inside usercontrol
Posted by vatech1993 NO[at]SPAM yahoo.com at 12/10/2004 6:21:01 AM
I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these child controls is linked to a commandeventhandler, has command name and argument attached and is assigned a unique id. If I use this control on a web...more >>

Event not firing in usercontrol inside usercontrol
Posted by vatech1993 NO[at]SPAM yahoo.com at 12/10/2004 6:20:59 AM
I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these child controls is linked to a commandeventhandler, has command name and argument attached and is assigned a unique id. If I use this control on a web...more >>

TagPrefixAttribute Question
Posted by G Dean Blake at 12/9/2004 5:03:03 PM
I'm going through this book on asp.net server control development. I wrote a control using the namespace: ESS.ServerControls The book says that if I put the following in my control's AssemblyInfo.vb file that my controls will be prefixed by an "ess" tagPrefix: Imports System.Web.UI .....more >>

Problem using dynamic Datalist templates - Newbie
Posted by dresde from NYC at 12/9/2004 1:39:19 PM
Hi there! Hopefully somebody can help as I am getting desperate. I am using C# to develope a web user control containing a DataList and I want my DataList to look different depending on some control properties. To achieve that I use "Page.LoadTemplate (myTemplateName)". I do this on my ...more >>

Syntax reference for ASP.NET
Posted by Nathan Sokalski at 12/8/2004 9:04:59 PM
I am looking for an online reference that shows the following: Syntax for ASP.NET using VB.NET and ADO.NET I want a reference of the syntax of any methods, functions, and/or properties but not any tutorials. If tutorials are on the site, that is OK as long as they are in a completely separ...more >>

Enumerating Controls Collection in Control.Render() causes System.InvalidOperationException - Why???
Posted by Ralf Müller at 12/8/2004 1:41:24 PM
Hi all! any ideas why this code... protected override void Render(HtmlTextWriter writer) { Table table; TableRow row; TableCell cell; table = new Table(); foreach(ListElement e in Controls) { row = new TableRow(); cell = new TableCell(); ...more >>

Event Hander Question
Posted by Chris Fink at 12/8/2004 11:51:04 AM
I have a question about the following code. I don't understand how and where the delegate gets created that allows for the calling of the OnClick when the button is clicked? For example, // Invokes delegate registered with the Click event. protected virtual void OnClick(Eve...more >>

Template Control with Sub Controls
Posted by gdeswardt NO[at]SPAM gmail.com at 12/8/2004 6:24:58 AM
I am trying to create a Control that will serve as a template for all my asp.net pages. The one requirement is to be able to add controls to the template and make them accisble to with in the Page and not being grouped as child controls under the template. The main drive behind this is that VS...more >>

Request object not working
Posted by Dave at 12/8/2004 5:05:34 AM
Hi, I have a weird problem. I have a user control, included in a page. This UC does authentication and tracking. I developed the code in the page_load event and it works OK. I then moved it into its own event, CheckUser() and it stopped working. I added "sender, e" into the paramet...more >>

Events from a UserControl within a PlaceHolder
Posted by Matt Weber at 12/8/2004 4:55:07 AM
Brief background: I have a page that loads n UserControls into a PlaceHolder control, where n corresponds to a number of inputs by the user. Each UserControl consists of a couple of labels, a TextBox, an ImageButton, and a DataGrid. I'm trying to fire an event from within the UserControl t...more >>

Access ASCX controls from the Code Behind file?
Posted by Willy at 12/7/2004 2:14:17 PM
Hi All! I'm using Code-behind model for my ASP.NET pages. But to skip the compilation step, I reference my code-behind pages as follows... <%@ Page Language="VB" Debug="true" Src="~/code/MyTestPage.vb" %> It works beautifully. But how do I access the User Controls (non-compiled ASCX files...more >>

usercontrol that raise a javascript event
Posted by rom at 12/7/2004 9:50:55 AM
hi, is it possible to raise a javascript event when something happen on a user control field? i created a calendar user control which contains an asp.net textbox server control and a calendar control. now i want to do something on the mail aspx page then the textbox in the ascx page chan...more >>

I need to run a vb.net or aspx.net file every 10 seconds.
Posted by Steve Jacobs at 12/6/2004 6:48:33 PM
Hi, I need to run a vb.net or aspx.net file every 10 seconds. The Task Scheduler in Windows 2003 Server can only do it every 1 minute at the minimum, but I need it every 10 seconds. Is it possible to write a small program in VB.NET that would run in the background without using much resources,...more >>


DevelopmentNow Blog