| Control Builder attribute in VB? (5 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I'm translating working code from C# to VB.NET. In C# I have this: [ControlBuilderAttribute(typeof(BookCounterBuilder)),ParseChildren(false)] public class BookInquiryList : System.Web.UI.WebControls.WebControl, INamingContainer How do I translate this to VB.NET (which does not have a typeOf operator? Here is Book?CounterBuilder in C#: internal class BookCounterBuilder : ControlBuilder { public ove... |
|
| DropDownList within a DataGrid (4 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| (If there is a better list to post this problem, please let me know.) I'm building a control that contains a DataGrid control which has a Template column which contains a DropDownList. The DropDownList renders fine with it's DataSource, but I would like to add a blank row to the items and select a default item. He is a stripped down code of my control: protected override void OnInit(EventArgs E) {... |
|
| Sub control event firing (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi, I have a page that has a 'search' user control on it, with a single placeholder. Depending on some options set in the search control, hitting the search button causes one of a number of datagrids to be loaded dynamically, and added to the placeholder (Page.LoadControl). This is fine. However, the datagrid has sorting enabled, and hence hitting the header of a column causes an OnDataGridSort me... |
|
| ControlToValidate - CheckBoxList (4 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hello I have created a CheckBoxList validator which ensure that the max and min # of items have been checked. Everything works properly, but I would like to be able to select a CheckBox List within the ControlToValidate section in the VS.Net properties window. Currently, the list that is displayed will only show TextBox's, ListBoxes, ..., but not CheckBoxList. I assume this is inherrited from the ... |
|
| Where does Combobox's Itemdata Property go? (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| In VB6 it was really easy to load a ComboBox with data and then use the ItemData property to associate a key value or something with the item in the list. There looks to no longer be an ItemData property... So, how do you load manually (for example) Customer Names and Customer ID's into a ComboBox showing the Customer Names but when one is selected, use the Customer ID? Again, I want to do this ma... |
|
| collection property's items in inner tags (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| SSBoYXZlIGEgY29udHJvbCB0aGF0IEkgd2FudCB0byBoYXZlIHB1dCBpdCdzIFNldHRpbmdzIGNv bGxlY3Rpb24gcHJvcGVydHkgYXMgbmVzdGVkIGlubmVyIHRhZ3MuDQpJIHRob3VnaHQgSSBoYWQg cHV0IGFsbCB0aGUgcmlnaHQgYXR0cmlidXRlcyBvbiB0aGUgY29udHJvbCwgYnV0IGl0J3Mgbm90 IHNhdmluZyB0aGUgY29sbGVjdGlvbiBhdCBhbGwuDQogDQppcyB0aGVyZSBhbnl0aGluZyBtb3Jl IEkgaGF2ZSB0byBkbyBiZXlvbmQgdGhpcyBzdHVmZj8NCiANClsNClByb3ZpZGVQcm9wZXJ0eSgi RGVmYXVsdEJ1dHR... |
|
| Property Extender? (4 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| does anybody know how to create a Extender Provider for webforms controls? all I can find in the docs is a little note in a winforms Extender Provider page that says: "Note The implementation of an extender provider for Windows Forms controls is different from that for ASP.NET server controls." but it offers no links to this different asp.net implementation. Andy Smith Keyboard Jockey #3a7 2.78.1 |
|
| Storing data in Request object (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi, Is there a way to store some data in the Request object? I am building a control, and I need to know if other controls are present on the same page. The Page.Request.Params property is read only. Thanks Pete Freitag CTO, CFDEV.COM http://www.cfdev.com/ |
|
| Custom Icons (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hello I want to have a custom icon placed next to each custom control that I crea te. 20 Within my custom control project, I have numerous custom controls each with in their own file. How do I create a separate custom icon for each control class file? I have seen one example where you name a bitmap (16 x 16) the same as the class, then change its property to embedded resource. But this did not wor... |
|
| =?us-ascii?Q?RE:_=5Baspngcontrolscs=5D_Validator_Controls_=3F_Can't_pull_?=
=?us-ascii?Q?them_onto_the_webform...?= (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I had the exact same problem I think. I asked the question here but no luck. So my solution is to add your library to the gac, to the web project bin... I think it's a path problem, and VS.net is unable to find the good references to the library. Don't ask me why it is working at first... John. Original Message From: Robm [mailto:Robm@acl.com] Sent: mardi 6 aout 2002 23:13 To: aspngcontrolscs Subj... |
|
| Controls in my Template are not available to the code-behind (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| All, I have created a templated control as shown here: http://msdn.microsoft.com/library/default.asp?url /library/en us/cpguide/htm l/cpconcustomizingcontrolswithtemplates.asp I can use the control in my aspx page as follows: Controls:Control1 runat "server" id "test1" FirstTemplate asp:Label Runat "server" ID "lblTest1" Test /asp:Label /FirstTemplate /Controls:Control1 This works just fine, but w... |
|
| How can I detect the webform layout type? (5 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hello, 20 Sorry to sent the same question twice, but my last one was mangled. I would like to be able to have my server control be able to detect whether or not it has been placed on a webform that is using flow layout or grid layout. I have not had much luckk searching the internet so far for an answer to this, and I was wondering if anyone on this list perhaps had some insight? 20 Thank you, 20 ... |
|
| onclick attribute for CheckBox (16 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| i want to create my own clientside onclick handler for a WebControls.CheckBox in a composite control. so i code: checkBox.Attributes["onclick"] 3D "return false;"; but the rendered html has the onclick attribute in a span tag surrounding the input tag. this is certainly NOT the desired behavior. how do I force the onclick handler into the input tag? Andy Smith Keyboard Jockey #3a7 2.78.1 |
|
| OnComponentChanged/Events not fired at DesignTime with Custom Control/Designer (4 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I'm creating a custom web control to be modified in the VS designer. I'm using a very simple class to get my feet wet. The AngelPage (extends WebControl) which exposes a custom class, DefaultHeader. I'd like to modify the DefaultHeader properties at design time. In addition to these two classes, I've also created a TypeConverter and a ControlDesigner (PageDesigner) class. I have two basic problems... |
|
| Suppress Attributes (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Is there any way to get a System.Web.UI.HtmlControls.HtmlGenericControl to not render the ID given to it? Thanks, Ryan [This E mail scanned for viruses by Declude Virus] |
|
| BaseDataList (9 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Has anyone successfully create a control that inherits from BaseDataList (the object that DataGrid and DataList inherit from)?????? Supposedly you have to implement a method called 'CreateControlHeirarchy,' but this is what the SDK has to say about CreateControlHeirarchy: This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Right.... cause ... |
|
| Control Usage Order Problem (5 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a control on a page as well as a table above it. The table shows a list of records in a database table and the control below it provides an editor interface it for adding, editing and deleting records. The code I am using for loading the control and the tables is as follows: private void Page Load(object sender, System.EventArgs e) { AdminEditor Editor1 new AdminEditor(); Editor1.ConfigFile... |
|
| IPostBackDataHandler not being acknowledged (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| SSBoYXZlIGEgY29udHJvbCB0aGF0IGluaGVyaXRzIGZyb20gV2ViQ29udHJvbCwgYW5kIGltcGxl bWVudHMgSU5hbWluZ0NvbnRhaW5lciBhbmQgSVBvc3RCYWNrRGF0YUhhbmRsZXIuDQogDQpUaGUg Y29udHJvbCByZWdpc3RlcnMgYSBoaWRkZW4gaW5wdXQgZmllbGQsIGFuZCBMb2FkUG9zdERhdGEg aXMgbWVhbnQgdG8gbG9hZCBhbnkgY2hhbmdlcyBmcm9tIHRoZSBoaWRkZW4gaW5wdXQuDQogDQpo b3dldmVyLCBteSBMb2FkUG9zdERhdGEgaXMgbmV2ZXIgY2FsbGVkLg0KYW55Ym9keSBoYXZlIGFu eSBpZGVhcyB3aHk... |
|
| Initializing controls (4 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| If I create a simple asp.net test program, and add a control (e.g., a button), and put in event handlers for init, load, and pre render, the load and pre render events are trapped, but the init event never seems to fire. Code put into the event handler for init (e.g., a trace.write statement) does not execute. What am I misunderstanding? Shouldn't this code execute when the page is loaded? Jesse L... |
|
| the meaning of 100% manged code (7 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Copied from [winforms vb] to [aspngcontrolscs] by Bob Levittan blevittan@hotmail.com I have been looking for a control that can zip/unzip files and stumbled into this strange sentence: This control is written entirely in .NET. This is 100% managed code. Several other controls that actually makes the same functionality, do not claim to be such a control. What does this mean exactly. The more I look... |
|
| Design time Webcustom Control pb... (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| This is a multi part message in MIME format. NextPartTM 000 f83795d7 0cb3 43a4 a355 2038a09c11f6 Content Type: multipart/alternative; boundary " NextPart 001 01C21C37.F1F0C360" NextPart 001 01C21C37.F1F0C360 Content Type: text/plain; charset "utf 8" Content Transfer Encoding: base64 SGkgLCANCiANCkknIHZlIGdvdCBhIGxpdHRsZSBkb3VidC1wYiBhYm91dCBkZXNpZ24gdGltZSBz dXBwb3J0IG9uIGEgd2ViY3VzdG9tIGNvbnRyb2w... |
|
| timer in a custom control? (3 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| Moved from [aspngcontrolscs] to [aspngcontrolscs] by devin devinr@drone interactive.com I am implementing a "news wire" custom control. It is supposed to periodically poll a web service for new news stories. How can I do this in an ASP.NET control? If it were a Windows control, I would just include a Timer. But I need the timer to run in the browser, and trigger a postback to my control when the t... |
|
| Combo Box Z-Index/Pop-up Menu Question (4 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| This is a multi part message in MIME format. NextPartTM 000 8f009483 161b 4a58 a699 0af13daa08c7 Content Type: multipart/alternative; boundary " NextPart 001 01C21842.D57D5AF2" NextPart 001 01C21842.D57D5AF2 Content Type: text/plain; charset "utf 8" Content Transfer Encoding: base64 SGVsbG8gYWxsLA0KIA0KSSBoYXZlIHBsYWNlZCBhIHBvcCB1cCBtZW51IG9uIG15IHdlYiBmb3Jt IGFuZCB3aGVuIGl0IG9wZW5zIG9uIHRvcCBvZiB... |
|
| Databind DataList derived control in control itself (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a control where I inherit from the DataList control. Instead of databinding this from my page, I want this control to Databind itself to a source stored in the cache (or otherwise transparantly created). What I tried was overriding CreateChildControls as follows: protected override void CreateChildControls() { DataSet dsMenu Core.GetMenuData(Sitemap); this.DataSource dsMenu.Tables["Menu"].D... |
|
| Accessing Page object from static method (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a namespace containing several control classes and a class with a static method shared between the different controls, like so: namespace xyz { class abc { static internal MyStaticMethod() { //Use Page object here } } class control1 : control class control2 : control class control3 : control } From the static method I want to have access to the Page object, so I can call the Trace log and A... |
|
| Custom control design time attributes (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Moved from [aspngcommunity] to [aspngcontrolscs] by Rachel Reese rachelemilyreese@hotmail.com Hi everybody, I'd like to ask question. I'm trying to develop my first custom control. I found so many examples how to add (in VS.NET) in design time to the properties window string or numeric values that may affect the control. But I couldn't find any example how to add something like "color picker" or "... |
|
| Survey Controls (4 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| Does anyone know of any good customizable survey controls? I need to write something like this, and would like to reuse existing code if it's there. Thanks, Joe This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti virus service working around the clock, around the globe, visit http://www.messagelabs.com |
|
| Server Control Event Handling (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a C# component that basically implements Javascript Rollovers. It has been working great. I decided that I would add the option to have it displayed as normally img tags or through an ImageButton (ie input tag). I needed to use an image button for something I was doing because of the postback. This is a .cs file therefore there is no interface. In the code, I have create an Image button and... |
|
| Accessing Server Control Value from Client-Side (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi, I've created a composite server control that includes a textbox and a validator. However, I can't figure out how to access the textbox value from client side javascript. The problem seems to be that the client id that get's generated doesn't match the id that I use when I declare my server control in my aspx page. So, when I try to access the control in javascript, I get "object is null or not... |
|
| DCOM and .NET componet (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Dear all Here is a scenario for which we would like to have the best solution Assume that there are DCOM Components on an application server which is used by a desktop application We have to create a web application loaded on a web server (IIS) on a different system which requires services from these DCOM components. How to access these DCOM (not COM, I know how to use COM componets) components fr... |
|
| Persist properties for repeated use in designer? (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hello, 20 I would like to be able to persist the "state" of the properties of my server control so that a user can do something like this: 1. User drags my control on to one of their ASP.NET pages 2. User configures the control by setting properties 3. Save the values of these properties (hopefully automatically) so that when... 4. User drags the control onto a seperate ASP.NET page, the property ... |
|
| error en aspnet control (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| hi guys: i'm problem in aspnet control: tengo un problemilla al hacer un aspnet control, mi control es: MiPrimerControl.cs using System; using System.Web; using System.Web.UI; namespace pruebas { public class MiPrimercontrol : Control { protected override void Render(HtmlTextWriter writer) { writer.Write(" h1 Control ASP.NET Desarrollado en C# /h1 "); } } } mi pagina es: %@ Register TagPrefix "cc"... |
|
| Search as you type combo box? (7 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| This ? is for Andy Smith, chief code monkey. (or anyone else that knows) I saw your post asking how your cs combobox control @ http://12.255.177.172/ComboBox.html looked. I will attempt to describe it as OK, a bit skinny and the drop down arrow was a bit larger than the height of the text. However, the functionality is excellent and it is time someone created a combo box that has the Access like s... |
|
| @Page (8 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Can I add my own properties to the @Page directive? I have some custom per page configuration I want to be able to specify in the aspx file and this would be a great place to do it. Ollie http://www.RichTextBox.com The easy way to add formatted text editing to your ASP.NET web site |
|
| DataList - Embedded Controls (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi, I am interested to know how I can manipulate the properties of web form controls embedded in the header template of the datalist. I have a datalist that has label controls in the header template that i would like to change the text of according to the querystring. I am able to access all the web from controls on the page but not in the datalist control. I really have no idea where i should beg... |
|
| control question (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Copied from [aspngfreeforall] to [aspngcontrolscs] by Tim Musschoot Tim.musschoot@rug.ac.be Hi, I have created a few of my own user and custom controls and have discovered through msdn how to created databound templated controls. What I would like to know is how to create a control/class similar to ListItem where free text can go in between the open and close tag. ie blah:CustomListItem value 3D"1... |
|
| hi guys (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| where I can obtain examples of customized server controls? sorry by grammatical syntaxis i'm peruvian with bad english, sorry Atte. Daniel Chavez B RoyalSystems SAC |
|
| Child Controls Processing (3 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a control that wraps around other controls: CN:ParentControl runat "Server" SUB:ChildControl runat "Server" / SUB:ChildControl runat "Server" / SUB:ChildControl runat "Server" / /CN:ParentControl Under certain conditions in ParentControl I set its visibility to false, which of course hides the other three controls. This is the desired effect. When I look at the control tree using Trace, I c... |
|
| C# component and ASP 3.0 (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Moved from [aspngfreeforall] to [aspngcontrolscs] by Clint Barton hawkeye@aspelite.com I need information and tips about create a C# component and use it from ASP 3.0 aplication. Thanks, Lucas |
|
| Implementing a control with child controls (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hello, people: I'd like to implement a control called, for instance, "ParentControl", which in turn has a property called "ChildControls" that represents a collection (called "ChildControlCollection") of a control called "ChildControl", so that, when I add ChildControls to the ParentControl's ChildControls property through the VS.NET dialog box, those ChildControls appear as nested tags between th... |
|
| Error in Design View (4 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have built a composite control with one of its properties as an ArrayList. It works well except in Design View. Sample: public class MyControl : Control, INamingContainer { private ArrayList ArrayList new ArrayList() public ArrayList myArrayList { get {return ArrayList; } } } myArrayList is a container for this class: public class ColorHolder { private Color color Color.Empty; public Color myCol... |
|
| Can I stop this behavior (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a custom control that inherits from the datagrid. As part of my control, I add an EditCommandColumn in my controls Init event (I also set a bunch of default properties in my controls constructor). If I just leave all of the default properties alone, everything works fine. Here is what the code looks like: TAN:TABLEEDITOR id "myte" PageSize "7" MaxStringLength "100" runat "server"/ However, ... |
|
| Capturing postback events in a custom control rendering <Input type=image> (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi all.... The code below doesn't work, RaisePostBackEvent never gets called. If I change the type from image to submit it works fine, there's only a problem when the type is set to image. I've also tried implementing the IPostBackDataHandler interface instead, also with no luck. I'm just not understanding whats going on here as the Webcontrols.Imagebutton renders almost identical html and it seem... |
|
| Order is important in CreateChildControls (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I had struggled with the following issue for a while and have received an answer from Microsoft (very quickly too!) I though you might appreciate the knowledge. A ListBox control restores its Items list automatically on Post Back when that control is declared directly in the ASP.NET code. So you can write: script protected void Page Load() { if (!IsPostBack) { MyList.Items.Add("Item1"); MyList.Ite... |
|
| Unable to generate code for a value of type 'System.Data.DataSet' exception (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Well... I've posted a couple of pretty simple (dare I say dumb) questions recently, thanks Vandana for answering the last one. Hopefully this one is a little less of a flop !! I've created a control with a property of type DataSet. It compiles fine. It works fine in the designer. ie when added to a web page, after creating a dataset, I can select the dataset for my DataSource property. However whe... |
|
| Custom control ViewState problem within a DataList (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a simple control, which inherits the Button Webcontrol and sets it text to the number of times it's been clicked. When added directly to a webform it seems to function perfectly. However if it is included within a DataList there are problems. Firstly the text on the button is not being set. Secondly from inspecting the ViewState in the debugger after each round trip it seems the entry that ... |
|
| A Strange Problem with ParseControl Method (4 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi all, I have a problem with ParseControl method. When I use it to parse a string to control it throws an exception: A NULL value was referenced I tried the MSDN example and I got the same result. My code is very simple. In a PageLoad of a webform I have written: private void Page Load(object sender, System.EventArgs e){ Button b1 (Button) ParseControl(" asp:button runat \"server\"/ "); b1.Text "... |
|
| Best practices for minimising ViewState (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Does anyone out there have any tips for how control developers can generically keep control state whilst keeping the use of ViewState to an absolute minimum ? Using ViewState to record a control's settings seems to quickly become very costly in terms of the page load times/HTML byte sizes. The documentation seems to suggest that if you have properties or other state data that can be altered at run... |
|
| Building a databound Control with rows (8 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi, I've created an editable grid which allows the users to add new rows (using a Postback) on the the fly and save this information back to the database. I pretty much have my control like the one in the Docs for Creating a DataBound Templated control. Here is how I would like things to work: 1. The user adds new rows (this works) 2. They hit save and the information is stored to the database (wo... |
|
| Controls and Framesets (3 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I'm creating a messaging/bulletin board system that primarily consists of two frames a listing of messages at the top and a message viewer/editor at the bottom. I have already created a working model using code behind and now want to convert it over to being a control and would be interested to know the views of the panel here. 1. Firstly, can a single control being used on both the pages pass var... |
|