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

Filter by week: 1 2 3 4 5

Posting cookie
Posted by Afton Wynona at 9/28/2006 5:53:34 AM
Hi. I'm looking to post an http cookie on a sql backend. I know I've read about this before, but the solution stumps me. I've tried the menu control, I even bought one for 400 dollars, but I still can't find the answer. It seems like there is a web cast that I saw that showed how to post a r...more >>

Nested Collection property in a custom control
Posted by apratimg NO[at]SPAM gmail.com at 9/27/2006 8:58:56 AM
I have the extactly the same problem.. I am creating a control where a collection property is exposed which has a nested collection object. It looks something like this once i enter data through the default editor (in the design view).. <COL_A> <A1:COL_A_ITEM Name="Test" Index="1"> ...more >>

How do you deploy custom server controls?
Posted by Brennan Stehling at 9/26/2006 9:24:37 AM
I have built custom server controls and as long as the library with those controls is directly referenced by the web application in the same Solution I can automatically see the controls in the toolbox. How can I deploy controls so that Visual Studio will display them in the toolbox without ma...more >>

HttpModule Cookie Problem
Posted by Eric Marthinsen at 9/26/2006 12:28:01 AM
Hello- I wrote a HttpModule to inspect the user's current page and to assign a source a content category to them. The problem is that when it runs, it wipes out users cookies which logs them out of the site and wipes out their basket. I can't recreate the error in any sort of test or stagin...more >>

Unload Usercontrol
Posted by Max3vil at 9/25/2006 3:50:05 PM
I Had realized a user contro ctrlContro and i load it in this way: ctrlControl c1=new ctrlControl c1.Partent=this; c1.Show(); this is right, how do i unload this controls ? c1.dispose(); c1=null is wrong tnx ...more >>

2nd attempt - post back event in server control
Posted by Jon Paal at 9/24/2006 9:14:47 AM
my code is not getting successful result. how do I get the server control to recognize a button click event ?? ========code============= Public Class MyButton Inherits System.Web.UI.Page Implements IPostBackEventHandler Public Response As HttpResponse = HttpCont...more >>

UserControls in a different directory
Posted by Nathan Sokalski at 9/24/2006 12:00:00 AM
I have my UserControls in a subdirectory called usercontrols. In the code for one of my UserControls I have the following: Public Property adimage() As String Get Return lnkAdvertisement.ImageUrl End Get Set(ByVal value As String) Respons...more >>

Using ASP.NET 2.0's ImageMap Control
Posted by Nathan Sokalski at 9/23/2006 8:58:54 PM
I am using ASP.NET 2.0's ImageMap Control to create 2 imagemaps, one directly below the other. When I do this a thin blank space appears between them. After several days of frustration I realized that the difference between what the ImageMap Control outputs and the html on the page I was try...more >>



Composite Control with Templates - DropDownList bubble events
Posted by Marc Castrechini at 9/22/2006 4:01:19 PM
I have a base composite control that uses templates. If I add buttons (image, link, etc ..) to the template we can bubble the event as an item command using the following ... Protected Overrides Function OnBubbleEvent(ByVal source As Object, ByVal e As EventArgs) As Boolean If TypeOf e Is...more >>

User control not seen on code beside (behind) page
Posted by petro at 9/22/2006 3:28:01 PM
Can someone shed some light on how to get this user control to work? I created a simple user control with several properties (I want to access these properties server side on another web form (a web control consumer page)). Then I drug the user control on to the web form where I wanted to us...more >>

ASP.NET 2.0 won't let me put my user controls in the same directory as Web.config
Posted by Nathan Sokalski at 9/22/2006 12:00:50 PM
When I put my *.ascx files in the same directory as Web.config and my user controls are registered in Web.config it gives me an error. Putting my *.ascx files in another directory is not hard, but it can cause another annoyance: relative directories. For example, that means that I need to wr...more >>

White strip showing up between two imagemaps
Posted by Nathan Sokalski at 9/22/2006 11:42:47 AM
I have two asp:ImageMaps in a table cell as follows: <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td align="center"> <asp:ImageMap ID="mapBanner" runat="server" BorderWidth="0px" Height="82px" ImageUrl="../images/top_banner.jpg" Width="1000px" ...more >>

LoadPostData and html <select> with multiple selections
Posted by studen771 at 9/22/2006 10:34:03 AM
Thanks in advance to anyone else who can help :) I've got a custom control that contains a PLAIN HTML <select> element that allows multiple selections (NOT A asp.net listbox, listcontrol or derivatives, etc.) Within the LoadPostData method I'm trying to retrieve the values that were chosen ...more >>

How to load aspx page using ajax
Posted by MS at 9/21/2006 5:47:12 PM
I want to load ASPX page using javascript ( ajax ) in an other page How can i do get it Thansks in advance ...more >>

Dynamic control creation in datagrid based on data in that column
Posted by mitramay NO[at]SPAM gmail.com at 9/20/2006 12:26:44 PM
I am creating a dynamic datagrid. The controls in some of the template columns will have to be generated based on the data contained in them (i.e. the data for that respective DataField column). For example, if I have a column called Available, the possible values for it are Yes or No. In case...more >>

post back event in server control
Posted by Jon Paal at 9/20/2006 11:40:01 AM
how do I get the button event recognized in the post back from a server control ?? ========code============= Public Class MyButton Inherits System.Web.UI.Page Implements IPostBackEventHandler Public Response As HttpResponse = HttpContext.Current.Response '...more >>

Treeview and rendercontrol
Posted by David Wiart at 9/20/2006 1:44:03 AM
Hi, I try to get the html code of the treeview by doing this : TreeView Tview = new TreeView(); TreeNode tnode = new TreeNode("Node1", "1"); Tview.Nodes.Add(tnode); Tview.ID = "Tree1"; System.IO.StringWriter tw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new System.W...more >>

How to write a control that doesn't require a closing tag
Posted by paul.hester NO[at]SPAM gmail.com at 9/19/2006 9:15:19 PM
Hi all, I've built a custom control that won't contain any inner content. If I derive the control from Control, then the VS editor will always add the closing tag when I use the control. I can derive from UserControl and it doesn't do this, but I'm not sure whether is the best way to do this....more >>

expose an event
Posted by Max3vil at 9/19/2006 12:48:40 PM
I had write a usercontrol ctrl1 with a textbox and two button, button1 and button2. I had drow ctrl1 in a windows form. I would like to know when i click button1 e when i click button2. Any ideas tnx ...more >>

UserControl has no DataBound event?
Posted by crpietschmann at 9/19/2006 9:17:01 AM
I have a UserControl that is used inside a datalist and I am databinding a could of the UserControl's properties to the data displayed in the datalist. My issue is I need to have some code run once all the properties are databound, but the UserControl class doesn't have the DataBound event. ...more >>

user control problem access value from user control to a page
Posted by gauravkg via DotNetMonster.com at 9/17/2006 4:00:55 PM
Thanks a lot for paying attention to my problem , i tell u the problem i have a main form in which i gave a login label that points to a usercontrol login.ascx in login.ascx i have user has to enter username and paaswor if it is correct i want that login label in the main page should be chan...more >>

Architectural design question - please advise
Posted by Griff at 9/15/2006 12:24:46 PM
Hi I'm not sure of the best way to go about achieving my goal and would appreciate any advice. What I would like to do is to generate a control that can be dropped onto a web page. For example, a control that provided catalogue information. As I envisage this, the control would be given...more >>

ListItemCollection for a listbox within a composite control
Posted by studen771 at 9/15/2006 6:45:02 AM
Thanks in advance to anyone who can help :) First, you'll have to pardon my very 'beginner' status on custom controls.. I'm creating a composite control that includes a listbox, and i want to be able to add/remove items within it both in design time and runtime, just as the default listbox...more >>

Composite Control as Template ...
Posted by Marc Castrechini at 9/14/2006 5:17:37 PM
Currently I have a composite control that has some base functionality that I want to use for the base of a number of different controls. It has a multiview to manage a display state and an edit state and a number of buttons (Edit, Save, Cancel) to drive the display. Furthermore, I've imple...more >>

How do I stop this javascript from being emitted?
Posted by paul.hester NO[at]SPAM gmail.com at 9/14/2006 4:06:45 PM
Hi all, I have a fairly basic page with some text boxes, validators and submit buttons. I have "EnableClientScript" set to false for all the validators and "enableEventValidation" set to false in the pages section of the web.config file. Whenever a validator is present on the page, the follow...more >>

How to implement interface's method in aspx?
Posted by yp.yean NO[at]SPAM gmail.com at 9/13/2006 12:36:09 AM
Hello, I have a ASP.NET control with interface called "INamingRule". The interface structure as follows: public interface INamingRule { string GenerateName (); } Now I want to let ASP.NET application developers to develop their own naming rule by implement GenerateName() method ...more >>

Global Events that all instances of a control handles
Posted by Phil at 9/11/2006 5:03:52 PM
I have a user control (called MyControl that inherits from CompositeControl). This control will raise an event when the user changes the color of the control. (MyControl.ColorChange). Inside the code for MyControl, I also listen and handle the event (ColorChange). - This actually implement...more >>

Newbie, how to display a messagebox always on top
Posted by verci at 9/11/2006 10:14:33 AM
Hi, sorry if this seems stupid, please have patience. I'm running Win XP sp2, VS 2005 Tem, SQL Sever 2005, I've been using a gridview to display my DB information, on the Gridview_RowUpadating event handler I validate if the value entered already exist en the DB using the following. Prot...more >>

- Dynamic controls question
Posted by nickname at 9/11/2006 9:36:23 AM
I have a Table in my page. I must load some webcontrols dynamically into this table, after the click of a button. These dynamic controls can fire events. They also must keep their viewstate (so I must add them in the Init phase). Ok... after the button is clicked I am able to load the dynamic ...more >>

image resources
Posted by Jon Paal at 9/10/2006 9:25:53 AM
1] how can images be stored as resources in a dll and 2] how to retrieve them for usage in a custom assembly ? ...more >>

ugly exception messages
Posted by Jon Paal at 9/9/2006 11:07:26 AM
how can I get a better looking exception error message to display, instead of the standard error page from asp.net when throwing an exception like: If allowExceptions And license Is Nothing Then If errorMessage Is Nothing Then Throw New LicenseException(...more >>

"Text is not allowed between the opening and closing tag"?
Posted by Dave at 9/8/2006 8:21:01 AM
Here's my custom control (taken and modified from ASP.NET Unleashed 2.0)... <cc1:ImageRotator ID="ImageRotator1" runat="server"> <cc1:ImageItem AlternateText="first item..." /> <cc1:ImageItem AlternateText="second item..." /> <cc1:ImageItem>abc</cc1:ImageItem> <--...more >>

Limit what controls are allowed within another control?
Posted by Dave at 9/7/2006 8:20:02 PM
In buidling custom web controls, what do you have to do to restrict what controls are allowed inside the parent control and so only the allowable nested ones appear in intellisense (i.e ListBox is the only thing displayed in a DropDownList control). Anything to illustrate in the right directio...more >>

Problems with button control containing text and image
Posted by David at 9/6/2006 11:17:43 AM
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an input button that would allow for both text and an image on it. I am attempting to accomplish this ...more >>

please help me with a Dropdown selectindexchange event into a custom control
Posted by KMILO at 9/5/2006 1:19:35 PM
Hello, Im inserting a dropdownlist into a custom control, I fills it up, change = the autopostback property to true, and finally assign the handler to do = this event into the control, but in runtime I change the items and = nothing happends, any ideas about how to do that correctly, what Im =...more >>

Validator for server control inside user control
Posted by superman at 9/4/2006 7:42:01 PM
Hello, I am facing a strange situation and have already spent a lot of time on this. I have a user control 'U' that consists of a server/composite control 'C'. C consists of a textbox 'T' and a datepicker 'D' and implements INamingContainer. The user-selected date from D appears in T. The ...more >>

Calendar webcontrol Implementation
Posted by KMILO at 9/4/2006 5:28:40 PM
Hello Everyone, Im currently making a implementation of the calendar, making available to be datasourced for scheduling proposals, but Im encountering with a dilemma, when the client changes the month in the calendar the RaisePostBack of my control answers and kills the continuity of the ...more >>

Newbie, how to validate data in cells in a gridview
Posted by verci at 9/3/2006 1:20:03 PM
Hi, sorry if this seems stupid. :( How can I validate the values in each cell after editing and the update button/link has been press?, is this done trough JS? client side? Thanks and best regards ...more >>


DevelopmentNow Blog