.NETGURU
ASPFriends.com 'aspngcontrolsvb' list
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    Composite Controls and ViewState (8 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    what does it take to get a listbox in a composite control to save its view state? I've been round and round with this and just cant seem to get it to work, and cant find any samples. Does anyone have a sample of a compsite control that does simliar? or can tell me what i am missing? component code Imports System.ComponentModel Imports System.Web.UI Imports System.Web.UI.WebControls DefaultProperty...
    Custom web control (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Moved from [aspngvs] to [aspngcontrolsvb] by Tim Musschoot Tim.musschoot@rug.ac.be Hi, I have created a custom web control that renders html script. I call as this from my aspx to run the custom control like tagprefix:mycostomCtrl id "ctrl" title "something" b Hi /b /tagprefix:mycustomcontrol I want to display the information inside the custom control i.e a Hi /a in my html rendered web control, f...
    HTML table Custom Control (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I would like to make a custom control that I can use from within VS.NET. All I want is to create a HTML table with some pictures already set in some of the cell and then I would like to be able to easily put what ever I like in one of the cells. I want to be able to drag in controls etc into the cell in a web form in VS.NET. 20 I found a nice article that does almost what I want but this contr...
    VB.Net Custom Controls (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Moved from [aspngcommunity] to [aspngcontrolsvb] by Tim Musschoot Tim.musschoot@rug.ac.be Hi All, Can someone point me at some good tutorials for learning how to create Custom Web Controls using VB.Net I am also particularly interested in methods to build commercial grade custom controls, and would like to know some methods for building licensing into the controls (ie. Best practices for storing r...
    Controls updating (4 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi all I have been trying to make a custom control. What I wanted to make was a menulist(maybe it is already made, but this development is only to increase my knowledge, not to use the component). What I was trying to make is whenever the mouse moves over an item in the menulist the item becomes highlighted(just as if you are moving your mouse over a cell in a table(webpages) and the cell is chang...
    I am trying to move a control from one application to another (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    I am trying to move a control from one application to another The existing ascx control Module/searchmodule.ascx file in Duwamish7 application project name is web the default.aspx register %@ Page Language "vb" Inherits "Duwamish7.Web.PageBase" EnableSessionState True % %@ Register TagPrefix "Module" TagName "Search" Src "modules/searchmodule.ascx" % searchmodule.ascx . . . %@ Import Namespace "Du...
    Defining the alt texts in IDE (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    I'm wondering how to make the self explaining text in one's own component, in the intelligence description of a component's properties, once browsed in design time. Anyone?
    Tree Control File Explorer (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi all, Anyone have some sample code binding a Tree Control to a Folder/Sub Folder and Files with filtering capabilities. Thanks, Paul
    Web Custom Control Events and Collections (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi I'm trying to build a menu Web Custom control. basically this WCC will be rendering menu items, that can be added in runtime or design time. Each item its composed by 3 values. MenuIndex, MenuCaption and MenuPicture What I need to do, is to be able to give the option to the developper to add new items in design time, as well to be able to add those items in run time. My first aproache was to cr...
    Custom Controls (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Has anyone got any examples on custom controls in WinForms, nothing sopectacular, just something that gives the basics. There is currently a nice knob control ( ahem, ahem) at CSharpCorner.com. I haven't looked at it yet but am about to, it should be helpful. That one is obviously going to be fully owner drawn. The measly single example (the one I can find) in the VS net help don't really do anyth...
    Control not firing Click (4 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    I have developed a really simple custom control. I am inheriting from the ImageButton. I basically added a property and then add a couple of attributes during the OnPreRender sub. It appears that my control is not firing the click event (or at least my "client" page isn't picking it up). In my code behind of my aspx page, I do have Handles .... after my sub that is suppose to handle the click even...
    control question (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Copied from [aspngfreeforall] to [aspngcontrolsvb] 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...
    Problems with "external" enumerations (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I have a custom web control that exposes two properties. Both are enumerations. One work and one doesn't. The enumeration of the one that works is declared in the same assembly as the control. The one that doesn't work uses an enumeration declared in a system assembly. The main problems are the following: At design time: The drop down list in the property explorer displays neither all nor the ...
    Localized custom control (9 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I have been looking at the tutorials at asp.net, regarding localized customs controls. The senario is like the following. I place my custom control on a webform and based on the current set CurrentUICulture the text on the button or the label is shown in the right language. Se the localized control here: http://www.dotnetjunkies.com/QuickStart/aspplus/default.aspx?url /quicks tart/aspplus/doc/...
    Custom Server Control / Collection Property (4 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Greetings, I am creating a custom user control in a new Web Control Library project. My control exposes one public readonly property called "Groups" which returns a Collection. This is really cool because when the user puts my control into his web form in design time, he can see the "Groups" property in the properties window and that little button with the three dots on it. When he clicks that it ...
    Creating a Bound DropDown (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Copied from [aspngcontrolscs] to [aspngcontrolsvb] by Mitch Denny mitch.denny@warbyte.com Moved from [aspngfreeforall] to [aspngcontrolscs] by Mitch Denny mitch.denny@warbyte.com Due to included copywritten material, I need to segment my customer population according to counties. I have a states table and a related counties table that contains the county names of all states. I want to "multi form"...
    Custom Control Problem in ASP.NET (2 replies, VIP)
    ASPFriends.com 'aspngcontrolsvb' list
    Moved from [aspclient] to [aspngcontrolsvb] by Charles M. Carroll charlesmarkcarroll@yahoo.com So I believe to have crated all of this correctly, but my machine has made it clear that I haven't. The Following Is my Custom Control code(It has been compiled into a dll and put into a subdirectory name "bin", the filename is WebCustomControl1): Option Explicit On Option Strict On Imports System Import...
    usercontrole question(unanswered) (2 replies, VIP)
    ASPFriends.com 'aspngcontrolsvb' list
    hi all i am giving completecode here: .aspx code: body MS POSITIONING "GridLayout" form id "Form1" method "post" runat "server" table id "Table1" cellSpacing "0" cellPadding "5" borderColorLight "#3399ff" border "1" runat "server" tr td vAlign "middle" noWrap align "middle" bgColor "#669999" b font face "Arial" size "3" Test Name /font /b /td td vAlign "middle" noWrap align "middle" bgColor "#6699...
    user controle (5 replies, VIP)
    ASPFriends.com 'aspngcontrolsvb' list
    hi all i have one user controle(x.ascx) which contains one HtmlAnchor controle. for this HtmlAnchor controle i have onserverclick event and in that event i am initializing some variables...and i registered that x.ascx in y.aspx web page....here my problem is i am not able to access variables which are initialized in onserver click event from my y.aspx web form....i don't know why... please help me...
    dynamically loading usercontrols (9 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Copied from [aspngfreeforall] to [aspngcontrolsvb] by Mitch Denny mitch.denny@warbyte.com morning all, i'm trying to dynamically load a usercontrol onto a webform. the usercontrol is essentially a search function and contains the code required to display the form, process the search request and display the results. the problem is that when i try and dynamically load the control, the id of the cont...
    user control property not passed to page (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Moved from [aspngvb] to [aspngcontrolsvb] by Marcie Jones marciejones@yahoo.com Hello all I created a user control based on a button and calendar control. When the date is selected from the calendar control, I want it to persist and passed to a text box on the page. However the page where the control is loaded cannot get the selected date. I know the control works because response.write from the c...
    user control problem (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    hi all i have to create one user controle with 3 hyperlinks. after that i want to use this user controle in loop for 20 times so that i will have 20*3 hyper links in one page. i want to specify different unique names and ids for 20*3 hyperlinks.how can i do this..please help me... Thanks siri Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
    Saving user control output to a file (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, Is there a way to pull the HTML from a User control written in an ascx file? I want to save it to a file for later use. Thank Yoav
    newbie Custom Control problems.. (6 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi All, I created a custom control. Given below is the .vb file , which i compiled. When i try to use it in a .aspx page, i get the following error. Compiler Error Message: BC30560: 'CustomControl1' is ambiguous in the namespace 'MyCustomControls' I have not been able to figure out the problem..Anybody please help me. Also in the aspx file i would like to know what exactly is ACME:customcontrol1 ....
    Custom Control (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I have created a .vb file which contains the following text. How do i create my Custom Control. Imports System Imports System.Web Imports System.Web.UI Namespace MyCustomControls Public Class CustomControl1 : Inherits Control Protected Overrides Sub Render(Output as HtmlTextWriter) Output.Write("This is my Custom Control ! The Time is now " & DateTime.Now.ToString) End Sub End Class End Namesp...
    NET Positioning controls programatically (3 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    I need to attach different (self created) user controls to my web form at run time, and I want to specify their position when/after they are loaded. The only way I have managed to do this so far, is by drawing a control container (like the Placeholder control) at designtime, but I need to do it all at runtime. Does anyone know how to do this? * * * Steve Schofield * steve@aspfree.com * * Microsoft...
    Custom Control Parser Error (7 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Any help on the following would be appreciated. I am assuming the base class is my codebehind?? Why would the types be incompatible if the are referring to the same custom control? Thanks, Joe Parser Error 20 Description: An error occurred during the parsing of a resource required to service this request. 20 Please review the following specific parse error details and modify your source file appro...
    Save a Table web server controls dynamically added rows to the ViewState? (3 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Is there a way to to save a Table web server controls dynamically added rows to the ViewState? This would save dynamically recreating these rows on postback? * * * Steve Schofield * steve@aspfree.com * * http://www.aspfree.com * http://www.mrcsharp.com * *
    user controle problem (4 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Moved from [aspngwebservices] to [aspngcontrolsvb] by Charles M. Carroll darthcarroll@asplists.com hi all i developped one small user controle which contains 4 tables. i want to set up one of the table's height through property. i created that property as writeonly.i registered this user controle in my web form. but when i run my program(.aspx), i am getting following eerror. i am including my .as...
    Compiling Custom Web Controls (3 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Moved from [aspngdata] to [aspngcontrolsvb] by Charles M. Carroll darthcarroll@asplists.com Hello, I have a strange problem I need help with. I have created a custom control with VS.Net as per examples found at msdn. I have a Control Library Project with one .vb file in it. When I build and try to run an .aspx file which uses the control I get an error "Could not load type SimpleControlSamples.Sim...
    No button click in datagrid with RC1 (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    I have a datagrid that is always in edit mode. It contains one column with a textbox and one column with a button. Prior to RC1 I could press the enter key while focus where in the textbox and the ItemCommand event would be fired. In RC1 the page is still posted but I don't get any ItemCommand event. If I click the button with the mouse I do get the event. Also, if I add a textbox outside the data...
    Seeing common properties of custom controls in loop through page collection. (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    hey .net gurus I have created a few custom web controls that inherit a regular web control (textbox, checkbox, etc.) and gave them a few extra properties. Now I want to be able to loop through all the controls on a web page, and if a given control is any of my custom controls, I want to access a property I have created in each. How do I accomplish this? If I do a: Dim ctl As Control For Each ctl I...
    Problem with custom server control (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Copied from [aspngreuse] to [aspngcontrolsvb] by David L. Penton lemans70@home.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. NextPart 001 01C17440.0361EBC4 Content Type: text/plain I am having problems with custom server controls that use some of the VB built in functions (e.g., UCase and LCase). I have c...
    Looking for specific control behavior (2 replies, VIP)
    ASPFriends.com 'aspngcontrolsvb' list
    I hope I'm not violating any rules by posting this to multiple places. One of the great things about the new VS implementation is the new pinnable, "fly out" panel. The examples I am thinking about are the Server Explorer and Toolbox on the left or the Solution Explorer and Properties on the right. If pinned, they remain in sight; if unpinned, they fly out of sight. Hovering on the appropriate tab...
    DataGrid inheritance and schema (3 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I have a web control that inherits from DataGrid. As far as I know, everything works fine. Except for one thing. In Visual Studio, when displaying the HTML, I get problems with inner tags, such as Columns, TemplateColumn etc. The problem is twofold: 1) I don't get any intellisense when I'm to key in these tags. 2) Once keyed in, the tags are underlined (by little red waves) due to that "the ac...
    Looping thru controls on a page (5 replies, VIP)
    ASPFriends.com 'aspngcontrolsvb' list
    I'd like to loop thru all controls on a web form, but cannot find a collection that I can enumerate thru (kind of like the old classic ASP "for each x in Request.Forms" functionality). Moreover, it would be nice to know the object type (TypeOf kind of functionality to determine "user control" versus "web control" versus "html control"). Once I knew the type of object, I could cast the object and i...
    Maintaining State on Control Property (4 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hey guys I am trying to do a simple custom web control. I want a textbox with a tag property that maintains it's tag (if programmatically changed) between page requests. How can I get the tag property to maintain its state? Imports System.Web.UI.WebControls Public Class TagTextbox Inherits TextBox Private strTag As String Public Property Tag() As String Get Tag strTag End Get Set(ByVal str As Stri...
    Stylesheet settings within a custom web control (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Copied from [aspngvb] to [aspngcontrolsvb] by Sheik Yerbouti This is a multi part message in MIME format. NextPart 000 000F 01C158C5.665BAC10 Content Type: multipart/alternative; boundary " NextPart 001 0010 01C158C5.665BAC10" NextPart 001 0010 01C158C5.665BAC10 Content Type: text/plain; charset "us ascii" Content Transfer Encoding: 7bit Hi, Does anybody have any idea how to pick up stylesheet set...
    Display DataGrid when no data (3 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, Does anybody know if it is possible to have a DataGrid display itself (atleast a header) although it does not contain any data? I suppose I have to write my own control, have it inherit the DataGrid, and do some trick when rendering, right? Thanks in advance, Anders Vikstr F6m SW Engineering, BANQIT AB http://www.banqit.com mailto:anders.vikstrom@banqit.com Phone: 46 8 7594737
    Custom formatting of data in a DataGrid (3 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Once again I cry out for help: Does anybody know if it is possible to format data read from a bound dataset before it is displayed in a DataGrid. For example, I would like a Boolean value to be displayed as "Open" or "Closed". I could of course create a special "display DataSet" from the values of the original DataSet, but with all the extensibilities in .NET I suspect that a more elegant solution...
    Use the Browser object in design time (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I'm developing a control that inherits WebControl and overrides the Render method. Depending on the capabilities of the browser I would like to output different stuff to the HTMLTextWriter. I've tried to use the Page.Request.Browser object, but the use of the Request object in design time seem to cause an exception. I draw this conclusion based on that the control is only rendered correctly wh...
    How to persist data in child controls? (3 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I've made a composite (web) control consisting a textbox, a button and validator. These are all exposed as directly as class properties, which make it possible to expand them to show all their properties in the Properties pane when selecting the composite control on the page designer. While expanded I can change the child controls properties as any other property. However, only properties dire...
    inheriting from a datalist (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hello It seems to me, I read somewhere that you can inherit and customize an asp control, such as a datagrid, to add functionality, etc. I would like to extend the asp:dropdownlist control, because I just want to add some common database code to it. Is there a way to do this? When I try to Inherits System.Web.UI.WebControls.DropDownList it gives me an error saying that the control has to inherit f...
    DataBinding to CheckBoxList Control? (5 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    I can't seem to find a way to complete databinding for a CheckBoxList control. With RadioButtonList controls I can use the DataTextField and DataValueField properties to bind both display and datastorage values to the controls. However, this is ignored by the CheckBoxList control and I see nothing in the docs that say much about this. Any help would be appreciated. Below is a simple page that I wo...
    Codebehind Web Control (3 replies, VIP)
    ASPFriends.com 'aspngcontrolsvb' list
    I'm taking a page from beta1 beta2. It worked in beta1 without using codebehind. I now have a codebehind user control I'm using in a codebehind page. The control exposes a function: public function Brand() as string Return cellBID.Text end function It's registered and declared in the html code: bbk:navbar id "Navbar2" ForeColor "Silver" WidthPct "100" BackColor "LightSteelBlue" runat "server" /bbk...
    User Control / Codebehind (8 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    I have a user control registered like: %@ Register TagPrefix "bbk" TagName "navbar" src " navbar.ascx" % and then used in my HTML as: bbk:navbar id Navbar2 runat "server" ForeColor "Silver" Width "100%" BackColor "LightSteelBlue" /bbk:navbar So far so good. Now I want to use a property of my navbar called "brand" in my codebehind. I have this: Protected WithEvents navbar2 As System.Web.UI.UserCont...
    Can't set text in inherited control (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Hi, I'm trying to create my own radio button and check box control through inheritance. However, there seems to be a problem overriding the text property. If I set the text in design mode the controls becomes invalid after I compile. If I remove the Text attribute from the HTML it becomes valid again. What could possible be wrong with the following code: Public Class RadioButton Inherits System.We...
    Toolbox bitmaps (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    Does anybody know how to providing a toolbox bitmap for a control? Regards, 20 Anders Vikstr F6m SW Engineering, BANQIT AB http://www.banqit.com mailto:anders.vikstrom@banqit.com Phone: 46 8 7594737
    Referencing custom controls in VS.net? (7 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    This message, which was originally sent to "aspngvs", has been moved to "aspngcontrolsvb" mailing list by the List Master I'm at my wit's end... I've made a custom server control in Visual Studio as a .vb file, put it in its own namespace, and attempted to reference it in an aspx file. Every time I attempt to do this I get a parser error. I am using the following syntax in the top of my aspx file:...
    WebControls Vs HTMLControls (2 replies)
    ASPFriends.com 'aspngcontrolsvb' list
    This message, which was originally sent to "aspngbeta", has been moved to "aspngcontrolsvb" mailing list by the List Master Hi, I am trying to decide between using WebControls and HTMLControls. Some of the questions I am having are 1) Why do we have the two families of controls? 2) Are there any scenarios where only of them can be used. 3) If both provide the same functionalities, which control fa...
    Visit the archive for messages from this site.
  • May 2001 (1 item)
  • July 2001 (1 item)
  • September 2001 (1 item)
  • October 2001 (10 items)
  • November 2001 (7 items)
  • December 2001 (1 item)
  • January 2002 (5 items)
  • February 2002 (8 items)
  • March 2002 (1 item)
  • April 2002 (2 items)
  • May 2002 (2 items)
  • June 2002 (6 items)
  • July 2002 (3 items)
  • August 2002 (1 item)
  • August 2004 (1 item)
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification