| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|
| 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... |
|