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 > november 2005

Filter by week: 1 2 3 4 5

Checkbox inside listbox
Posted by pradeep_TP at 11/30/2005 6:58:13 AM
Hi all I would like to know whether anybody has any ideas about how to create a listbox with checkbox appearing besdies all the option text. I thought it would be easy, but it seems there is no such control in ASP.net. any ideas? Regards pradeep...more >>


Textbox2 control that inherits from Textbox
Posted by Warren Patterson at 11/30/2005 12:00:00 AM
Hi Guys, I have a huge problem....I think. I have created a control called Textbox2 which basically inherits from Textbox. Now my problem is this. The Textbox2 retains its state when I submit a form and it posts back. However when I place a Textbox2 in the footer of a gridview, it lose...more >>

User Controls
Posted by larry at 11/29/2005 9:22:14 PM
Hi, I'm a newbie at ASP.NET programming so I apologize if the answer is apparent. I am having trouble implementing UI elements using the Web User ControI template in Visual Studio.NET 3.0. The tags and functions that are provided by intenllisense don't include basic tags like tables and t...more >>

Help with creating a new control
Posted by WAkthar at 11/29/2005 2:01:14 PM
Hi I am trying to create a new web user control which will allow me to display a map with icons on it. My idea is to have a image control on in a web user control and then draw some icons on it at different positions. When the user mouse the mouse over one of these icons I need to be able to ...more >>

clienside validation for user controls
Posted by cplatzer NO[at]SPAM solus-software.de at 11/29/2005 12:05:36 AM
Hi, I have created a custom control that represents a date-input. It consists of a textbox and a button which opens a popup calendar. Now when I have two of those date-inputs, I want to ensure that the user doesn't enter a date in the second input that is smaller than that in the first. I am us...more >>

ViewState and posted back data
Posted by Tumurbaatar S. at 11/28/2005 12:00:00 AM
I'm adding a template column to a DataGrid dynamically: private void CreateColumn() { TemplateColumn col = new TemplateColumn(); ...//set some col properties col.EditItemTemplate = new MyTemplate(); MyGrid.Columns.Add(col); } The MyTemplate class implementes InstantiateIn...more >>

Load Image Dynamically
Posted by Mr.Cyber at 11/27/2005 10:56:01 AM
Hi, brothers :) I'm rather novice in this area. I mean web programming and control building and though. I create UserControl: public class ucParsedPNG : System.Web.UI.UserControl { ... blah-blah-blah ... } My UserControl has to contain image and this one should be loaded dynamic...more >>

Custom Templated Databound Control or derived control?
Posted by MattC at 11/23/2005 12:00:00 AM
Hi, I want to create a control that performs much like a datalist but I want more control over how the <ItemTemplate> contents is set out on the page. For example I have a 4 by N grid of images to set out on the page, how the first row is slightly different in taht the first image is twice ...more >>



Dynamically adding a custom control
Posted by Terry Holland at 11/23/2005 12:00:00 AM
Steven Im getting in a bit of a mess with this. What I want to end up with is a set of controls for editing / displaying fields on a webform. I would like to be able to dynamically add these controls to webforms as and when I need them. Initially I need three types of fields ctlFieldRe...more >>

Dynamically Loading User Control in PlaceHolder
Posted by Ugur Ekinci at 11/22/2005 12:00:00 AM
Hi , I load dynamically a user control in PlaceHolder with the number of fileds in db. When loading user control there is no problem, if returning field number is 2 then 2 usr controls load in plcholder. But problem is that , after page postback plcholder says that I have no control, ...more >>

Missing code example
Posted by gizm0 at 11/22/2005 12:00:00 AM
Hi! Am I blind or there is no code example for this article?: http://msdn2.microsoft.com/en-us/library/d0etxzd8.aspx It's very important to me to have these sources Thanks, Radek ...more >>

Why the properties of web user controls which inherted from my custom base UI controls MISSED?
Posted by ABC at 11/20/2005 12:00:00 AM
Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable? ...more >>

ASP.NET 2.0 User Control that implements a template
Posted by Wes at 11/18/2005 3:00:02 PM
I have created a user control in ASP.NET 2.0 that utilizes ITemplate. The control has no issues (displays fine in a browser) until I try to go into design mode on the aspx page that is implementing the control. The aspx page says "Can not switch views: Content is not allowed between the opene...more >>

Object of type 'System.String' cannot be converted to type 'System
Posted by Robert at 11/18/2005 1:49:06 PM
I'm trying to get a control from metabuilders.com dual list)to work under ASP.NET 2.0. It worked find under 1.1 and then when i migrated my application to 2.0 I ran into problems with it. However, I'm getting an error on a particular line as follows: Exception: System.Web.HttpUnhandledExc...more >>

How to Provide a list of DataSources and Fields at design time
Posted by Oliver Petry at 11/18/2005 1:17:02 AM
I'm developing an WebControl in ASP.NET 2.0. The control inherits from DataBoundControl, so it can be bound to a DataSourceControl by it's DataSourceID property. When I declare a property with the attribute [TypeConverter(typeof(DataFieldConverter))] a drop down list of all fields (respectiv...more >>

Dynamically adding custom control
Posted by Terry Holland at 11/17/2005 9:28:24 PM
Im trying to dynamically add a user control for a webform but it is not appearing when I run the form. I have pasted the code that I am using. Can someone advise what Im doing wrong. My user control (ctlTextBox) contains one textbox. When I dragged this onto the control, the line ...more >>

Help on user controls?
Posted by serge calderara at 11/16/2005 2:37:58 PM
Dear all I have build a simple Web user control, that I have draged on a web form. When executed my applciation I get an error mesage saying : "A page can have only one server-side Form tag" What does that means? The HTML code has been generated automatically by dragging the control, I c...more >>

Base designer class missing in 2.0
Posted by Randy at 11/16/2005 11:22:25 AM
Hi, I cannot find the base ControlDesigner class in 2.0. All of the documentation I have found points to System.Web.UI.Design.ControlDesigner but this class is not there in 2.0. Any help would be appreciated. Randy ...more >>

Migration for asp.net 1.1 to 2.0
Posted by Joe at 11/15/2005 7:36:14 AM
Dear all I am new to asp.net 2.0, and i have two questions about this 1.) If i migrate 1.1 to 2.0 , is it easy, since if migrate from 1.0 ->1.1, it is not difficult , but i dont know how about from 1.1 t o 2.0? 2.) Is it difficult to learn if i have 1.0 and 1.1 experience. How many percentage...more >>

form onload multiple problems
Posted by Joe at 11/15/2005 7:31:12 AM
Dear all if a html page have included two html pages which have also have form onload, however one html page can only have one form onload. What can i do...more >>

ASP.NET 2.0 Web Custom Control example
Posted by Amelyan at 11/13/2005 4:38:23 PM
I need to create web custom control that can contain any type of control as a child (similar to asp:Panel control). However, when I try to include children in my web control on aspx page, it says 'Content is not allowed between the opening and closing tags for element'. Does any one have a...more >>

.Net 2.0 - WebResource attribute with css file
Posted by Vesa Juvonen at 11/11/2005 11:01:08 AM
Hi, I'm developing a custom control using VS2005. The control has embedded resources with it (js, images and css) and when control is rendered to page, it uses the GetWebResourceUrl funtion to get correct address for the resources (resources are streamed directly from assembly using WebRe...more >>

ASCX made on VS 2003 didn't work on 2005
Posted by Alberto at 11/9/2005 8:26:20 AM
Hi All, I have a web user control which simulates a message box, made on VS 2003. I used to call it inside my Web Form declaring it as: Protected WithEvents MensagemBox1 As MensagemBox And inside the code I used to call my ascx as: MensagemBox1.Show("Blablabla", MensagemBox.MensagemBoxStyle....more >>

Property Greyed Out in VS
Posted by jcteague NO[at]SPAM gmail.com at 11/9/2005 7:07:14 AM
I have a Server Control that inherits from DataGrid. I've added an object type property called DataMethodParameter, but this property is greyed out in the properties list in Visual Studio. private object dataMethodParameter = null; [Category("Data"), Description("Parameter to Pass to the s...more >>

Calling an Ascx from w/i Aspx codebehind
Posted by SABmore at 11/8/2005 11:14:50 AM
I have an aspx that I would like to "dynamically" display a user control on. When the user clicks (LinkButton) on "Find Existing Trip" within the aspx page, it calls the codebehind for the onClick event, which in turn would call my ascx page. The ascx page would then populate a drop-down list ...more >>

Sending a datagrid's column
Posted by keal75 at 11/7/2005 4:57:02 PM
Does anyone know how to sum a datagrid's column & display the total in the footer of the datagrid. Thanks -- Koljas...more >>

Building a calendar within a DataGrid Edit Control
Posted by keal75 at 11/7/2005 4:46:03 PM
I'm currently build a calendar functionality into a datagrid that opens a new web page. Once the user selects the date in the new page, i'll need to be able to post that date back into a textbox located next t o the calendar gif image. Any ideas for VB.net Or C# Thanks -- Koljas...more >>

Repeater + RadioButtonList
Posted by Guldo K at 11/5/2005 5:30:31 PM
Hello I need some help... I have a repeater; its source is a dataview based on a datatable of a dataset. The aspx page creates a radiobuttonlist for each item in the repeater: <asp:Repeater> <ItemTemplate> <asp:RadioButtonList ... DataSource='<%# GetDataView(Databinder.Eval(Container....more >>

Update property from within a control
Posted by Andrew Robinson at 11/3/2005 3:54:25 PM
I would like to build a server control that updates (at design time) one of its own properties. This property would then be embeded in the HTML of the page and then saved. Later at run time, the control could retrieve this property. <xx:mycontrol id="abc" runat="server" myproperty="zyx" /> ...more >>

Usercontorl in a placeholder
Posted by Pradeep at 11/2/2005 1:20:11 PM
Hi, I am having this wierd issue. I have a usercontrol in a aspx page. Basically this user control has some labels and thats it. It has a printer friendly link and when we click on it a pop up window open with the text the user control. Everything works good except for in hte labels, where ...more >>

CompositeControl and ViewState
Posted by BjornColtof at 11/1/2005 1:00:06 PM
I'm trying to create a CompositeControl derived class to implement a control that will enable people to edit an account object. The properties of an account like email, name, etc. should be edited with textboxes. A CompositeControl-derived class should fit this scenario. The problem I'm runn...more >>


DevelopmentNow Blog