ASPFriends.com 'aspngcontrolsvb' list Archive - October 2001
Messages
Page: 1
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...
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...
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...
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...
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...
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...
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...
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...
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
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...
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