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

Filter by week: 1 2 3 4 5

Error when uploading file
Posted by Nathan Sokalski at 8/31/2005 5:11:07 PM
I am trying to write code to allow my users to upload a file. The code I am using is as follows: Dim upfilename As String = "" If fileDetails.Value <> "" AndAlso fileDetails.PostedFile.ContentLength > 0 Then Dim dir As String() = fileDetails.PostedFile.FileName.Split("\".ToCharArray()...more >>


ITemplate strange behaviuor
Posted by tremway NO[at]SPAM yahoo.com at 8/27/2005 9:48:01 AM
Hi all, I've found something strange that I cannot explain to myself. See the code below: [ParseChildren(true)] public class MyControl : Control, INamingContainer { public MyControl() : base() {} private HeaderTemplateCreator _header; public HeaderTemplateCreator Header { get { r...more >>

One custom WebControl using it at several webpage with diffirent behaviour isnt working
Posted by zenone at 8/26/2005 2:56:28 AM
Dear all, I searched a lot on internet/newsgroups, without any correct answer for my problem. The problem is: ================ I have a custom webcontrol, the control is used on two pages. In design time I set the own defined property to i.e. approved_mode for one page and the second pa...more >>

Generating HTML code in the code-behind
Posted by lisa NO[at]SPAM starways.net at 8/25/2005 1:25:49 PM
Can I do this? I'm playing with AJAX, and it occurred to me that it'd be a lot easier to make changes to a control on the server, grab the HTML that control would now render, and return that to the client, where Javascript could just use outerHTML to replace the whole control. The obvious c...more >>

How to add "..." button to a property to open up "File Open"?
Posted by slow learner at 8/25/2005 9:47:08 AM
I am creating a control and thinking about adding a property to the control. I will like a "..." button shown next to the value of this property when user clicks on this property. I want to open up standard "File Open" dialog box when the user then clicks on "..." button. Any suggestion or sam...more >>

FindControl Method always returns empty string!!!!!
Posted by steroche at 8/24/2005 5:12:08 PM
Hi guys - Can somebody please help me? I'm a novice at all thisIve run into a serious stumbling block for the last few hours now and its killing me! I have a paged/sorted Datagrid setup and it works fine except for the update method - i just cannot get it to work! Now i keep getting the error :...more >>

HELP!DataGrid HyperLink Highlighting??
Posted by steroche at 8/24/2005 6:11:19 AM
I have a datagrid that passes values to one page to another - well it actually loads up the same page again with the param passed in so i can poplulate another datagrid from that parameter if you know what i mean. My question is this: How can i make the datagrids' row highlight(like the wa...more >>

UserControl DesignTime Designers
Posted by daFou at 8/22/2005 5:51:30 AM
Can someone please give me an hello world example of a UserControl that makes use of a UserControlDesigner. I'd like the Designer to be able to give a realistic representation of my user controls but the only examples I can find are on CustomControls....more >>



Command Event firing without apparent cause
Posted by John Bankhead at 8/21/2005 1:51:03 PM
I am building a control with among other controls is a datagrid. The data grid, when populated has twenty-five text columns and a single input column. The column, depending on the data in the row, is being created as either a button or a textbox. This logic is performed in the ItemDataBound...more >>

Command Event in button being magically invoked.
Posted by John Bankhead at 8/21/2005 12:55:01 PM
Top of page: Listbox and button. Listbox contains a list of products. Button says "Load". Beneath both is a datagrid. In the datagrid, 25 columns contain text and one of the columns contains a textbox or button depending on the nature of the account. Clicking a button in this column cause...more >>

Help with using a custom collection as a property for a TextBox derrived control.
Posted by Chris Crowe [MVP] at 8/21/2005 12:00:00 AM
Hi I am creating a new TextBox control but I am having problems when I am trying to add my own collection to the control and persisting the values to the asp.net web page. This is my code for the collection property [PersistenceMode(PersistenceMode.InnerProperty)] public LookupEditCont...more >>

Making sure a file exists before uploading it
Posted by Nathan Sokalski at 8/20/2005 11:15:15 PM
I have a form that allows the user to upload a file. Even though <input type="file" runat="server"> is intended to have the user choose the file using the browse button, it still allows them to change the path before it is uploaded. I currently use the following code to upload the file: Dim u...more >>

User Controls Reusability
Posted by Clift at 8/19/2005 9:07:05 AM
I have created a DHTML menu and wrapped it into a asp.net user control library. I am able to use this in any project by using <%@ Register TagPrefix="uc1" TagName="menu" Src="...%>. The Src attribute is the problem. Can anyone give me any information on how to locate my .ascx control in one ...more >>

Including files with a control
Posted by Ryan at 8/18/2005 1:02:06 PM
I am attempting to make an ASP.NET server control (inheriting from System.Web.UI.Control) and, when the control is dragged from the Visual Studio toolbox, I'd like it to automatically copy some indlude files (images, etc) to the user's web project. Is this possible? Thanx...more >>

ASP.NET 2.0: problem with CompositeDataboundControl and GetSampleDataSource
Posted by Jos at 8/17/2005 12:00:00 AM
I have a control derived from CompositeDataboundControl, which is working fine at run time, but I can't get the control to draw itself at design time. I have overridden the GetSampleDataSource method, so that my control designer can provide dummy data. The problem seems to be that the GetDesig...more >>

Design Problem
Posted by JRB at 8/16/2005 9:25:07 PM
Hi, I'm a programmer, but new to ASP.NET. I'm playing around with the Repeater and DataGrid controls. Here's the situation. I've got a MySQL database containing a couple tables. One called "games", one called "picks". picks has fields "GameID", and "PickedTeam". games has fields "GameID", "H...more >>

How to add vertical align attribute to designer
Posted by James Geurts at 8/16/2005 6:21:02 AM
Hi, I am trying to add designer support to my custom web control. It's similar to the Panel control and I'd like to allow the user to specify vertical align. I'm not quite sure what style is supported in the vs.net designer, though. So... in the OnBehaviorAttached() method of my desig...more >>

Using IFRAME in a custom control
Posted by Rushad at 8/16/2005 2:02:41 AM
I am using an IFRAME in a custom control with src="Popup.aspx" where Popup.aspx is a page in the Web control library. How can I reference this page without having to copy it down locally ? I have tried embedding it in the Web control library dll and referencing in the Assembly.inf file using ...more >>

Exposing a collection properties
Posted by Thiago H M Fernandes [BrDevelopers] at 8/15/2005 10:47:03 AM
Hi all, I am trying to create a control that expose a collection of a custom class. I did some like this: // My Custom Button [TypeConverter(typeof(ExpandableObjectConverter))] public class HTMLEditorButton : Image {} // My Collection of Custom Buttons public class HTMLEditorButtonCollec...more >>

Need to mimic Panel WebControl's design-time features
Posted by Jeff Bowman at 8/13/2005 3:31:31 PM
I've created a custom server control that inherits from the Panel WebControl, and for the most part I've gotten it to behave the way I want at run time (there're a couple of quirks, but nothing serious). At design time, however, is a different story. For some reason the native design time b...more >>

a simple custom control
Posted by Fatih ÖÐÜTCÜ at 8/13/2005 12:00:00 AM
hi. my english isn't very good. sorry for mistakes. i am using Visual Studio 2002. i installed .net framework 1.1, also i installed .net framework 2.0. but visual studio is using .net framework 1.0.( i think., ?..) now this is my question. i can make my custom controls. but i haven't been abl...more >>

add some code to the page <HEAD>
Posted by thomasamillergoogle NO[at]SPAM yahoo.com at 8/8/2005 7:44:30 PM
Is it possible that my user control can add code to the HEAD of the parent page that hosts the control? ...more >>

Newbie question...inheriting from Panel
Posted by Colin Basterfield at 8/8/2005 12:00:00 AM
Hi, I have been creating custom controls in Delphi for years, but now am using Vis Studio 2005 Beta 2 and want to 're-create' a set of controls that I had in my 'previous life'. There is a hierarchy of Panel controls, which is as follows: Panel | | abstract BasePanel /* abstract ...more >>

Help with Customized TextBox control.
Posted by Sanjay Pais at 8/7/2005 6:01:11 PM
Hi, I have successfully added my TextBox control that inherits from the TextBox. I have added a property called ApplySecurity that can be changed in the designer and is reflected in the source HTML. I want to add the TextBox icon in the toolbox and want the value to toggle in the proper...more >>

Init Handler Not Firing After Page_Init
Posted by Wylbur via DotNetMonster.com at 8/7/2005 4:17:35 PM
Hello to all of you geniuses, I'm having a problem trying to get an Init handler to fire for a Placeholder control at the initialization phase. I’ve posted this problem to 3 other ASP.NET forums, and noone wants to touch it. I tried to attach a literal control to a placeholder: <[+]>-<[+]...more >>

first click wont fire on dynamic load of usercontro
Posted by roni at 8/6/2005 12:00:00 AM
hi. what im doing is replacing user control in dyanamic way,with page.loadcontrol. after i replace , when i click on the first time on button, there is no respond. only the second click get respond. i guess it's somthing with the dynamic loading and the "connection" between the button and h...more >>

about drop down list box
Posted by pradeepreddy a via DotNetMonster.com at 8/4/2005 12:00:00 AM
i got two drop downlists when i select an item in dropdown list 1 the dropdown list 2 should be populated with the corresponding items from the database can any one suggest on this -- Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net-controls...more >>

Referencing Page properties from child control
Posted by pheisen NO[at]SPAM comcast.net at 8/3/2005 10:33:41 PM
I'm declaring public properties in a Page's code behind file (not declaratively). I would like to read and assign these from a child control's cs file. The Page's inherits attribute is _Default. So, for example, I would like to reach _Default.StudentID where StudentID is a public property...more >>

explanation of when need to repopulate control
Posted by TS at 8/2/2005 4:19:16 PM
I have a quesiton: if i have a composite control and on its intial page loading, i fill my (sub control) drop down list's items collection from the database and return. When the user hits a button to cause postback, the control is going to get initialized, then does its items collection that i f...more >>

processing postback
Posted by TS at 8/2/2005 12:29:47 PM
i have a composite control that has dropdowns on them. The page will post back on change, but their events won't raise. Can anyone tell me whats going on? I tried to use the IPostBackDataHandler to try to get a hold of the control to set values and such, but it has been no help. I'm confused at h...more >>

How to create a designer that behaves like the ASP:PANEL
Posted by Cameron Eckman at 8/2/2005 11:38:13 AM
I am creating a custom server control where the user can add any content similar to an ASP:PANEL. The custom control wraps the content in some extra HTML above and below their content. I did not use a templated property as it forces the developer to write more code in order to access any contro...more >>

why does my control retain its value after postback
Posted by TS at 8/2/2005 8:42:05 AM
i am not implementing any state mechanisms or IPostBackEventHandler in my control, but when my asp.net page accesses the control, the data that was there from the last time i loaded the control on the previous page load, is still there. Is the page handing the control's state or what? thank...more >>

Extremely basic question, please help
Posted by intrader at 8/1/2005 10:59:08 PM
In Visual Studio 2005 Beta 2 I created a web project with one file default.aspx. I wish to crete control 'Simple' in namespace 'SimpleControls'. I add it via 'Add New Item'. The IDE wants me to allow it to put the new class' code Simple.cs in the 'App_code' folder. I then make a reference to...more >>

Lot's of spam!
Posted by intrader at 8/1/2005 9:57:31 PM
How can be stop it...more >>


DevelopmentNow Blog