ASPFriends.com 'aspngcontrolscs' list Archive - October 2001
Messages
Page: 123
Getting Absolute Path in Project (2 replies)
ASPFriends.com 'aspngcontrolscs' list
I am creating a server control that internally as part of a bunch of other HTML renders an image. At design time, after the user sets an imageurl I want to go out and retrieve the dimensions of the image to properly draw the control in the designer. I can't figure out how to take the relative path at design time and convert it to an absolute one that will allow me to load the image. 20 Any hints? ...
ControlDesigner and child controls (7 replies)
ASPFriends.com 'aspngcontrolscs' list
SSBoYXZlIGEgY29udHJvbCB0aGF0IEkgd2FudCB0byBiZSBhIGNvbnRhaW5lci4gIElmIEkgZGVy aXZlIHRoZQ0KZGVzaWduZXIgZnJvbSBQYW5lbERlc2lnbmVyIEkgZmluZCB0aGF0IHdoZW4gSSBk cm9wIHRoZSBjb250cm9sIG9uIHRoZQ0KZm9ybSBJIGdldCBhbiBlcnJvci4NCiANCklmIEkgZGVy aXZlIGZyb20gQ29udHJvbERlc2lnbmVyIEkgY2FuJ3QgZHJvcCBpdGVtcyBvbiB0aGUgZm9ybSEN CiANCklmIEkgZGVyaXZlIGZyb20gUmVhZFdyaXRlQ29udHJvbERlc2lnbmVyIEkganVzdCBnZXQg YSBncmF5IHJlY3R...
great control resources (3 replies, VIP)
ASPFriends.com 'aspngcontrolscs' list
where have you seen the best resources on asp.net controls? this group and msdn are high on my list, and i am aware of a huge swathe of average materials, but where is there more fantastic information on controls? Ollie ollie@cornes.org .NET Articles http://www.squiffler.com/squiffler.aspx .NET Books http://www.cornes.org/books/
Macromedia flash server control (2 replies)
ASPFriends.com 'aspngcontrolscs' list
I've knocked up a server control to deal with Flash and its horrendous HTML requirements (tags inside tags, duplicated information, almost unreadable, etc, etc). it's got basic designer functionality in it so VS.NET can do drag and drop with it. I've been through all the properties exposed by Macromedia and implemented each of them using typing and enumerations where necessary, plus I have used Ma...
User Control problem (2 replies)
ASPFriends.com 'aspngcontrolscs' list
Hi I hope I"m in the right place for my question. I"m trying to understand User Controls and it seems that it's something that can be very handy. But ... :) I'm having some problems. I'm trying to create a user control that has its own server controls like a TextBox or a DropDownlist. Now I'm trying to get the input from a user in that TextBox but I always get the initial value back. I've tried ma...
Client Side Handler for <asp:button> and other Web Controls (6 replies)
ASPFriends.com 'aspngcontrolscs' list
This message, which was originally sent to &quot;aspngbeta&quot;, has been moved to &quot;aspngcontrolscs&quot; mailing list by the List Master I want to add client side handlers for the WebControls like asp:button , asp:textbox , asp:listbox etc. How can I do this. Thanks, Ramya Do You Yahoo!? Get personalized email addresses from Yahoo! Mail only $35 a year! http://personal.mail.yahoo.com/
DataList with Templates (4 replies)
ASPFriends.com 'aspngcontrolscs' list
This is a multi part message in MIME format. NextPart 000 004E 01C0ECDD.BB6C5320 Content Type: multipart/alternative; boundary &quot; NextPart 001 004F 01C0ECDD.BB6C5320&quot; NextPart 001 004F 01C0ECDD.BB6C5320 Content Type: text/plain; charset &quot;iso 8859 1&quot; Content Transfer Encoding: quoted printable Hi, I am having trouble creating dataList templates from c# code. I am trying to create a datalist with edi...
Access Server Variables from Control (4 replies)
ASPFriends.com 'aspngcontrolscs' list
This message, which was originally sent to &quot;aspngcs&quot;, has been moved to &quot;aspngcontrolscs&quot; mailing list by the List Master I'm trying to access a querystring value from a control. I have set up the following simple test case: //querytest.cs using System; using System.IO; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace QS { public class QueryTest : C...
Implementing IList: ISerializable etc (3 replies)
ASPFriends.com 'aspngcontrolscs' list
Can anybody point me to any good code examples of Custom Controls or whatever whch implement the heavyweight Dot Net interfaces like IList, ICollection, ISerializable, IEnumerable.? I am at the stage where I know how to create and implement my own interfaces. But when have a shot at implementing IList etc I really am finding it extremely tough going. Thanks Dick Haynes I
ASPX member control interfaces (3 replies)
ASPFriends.com 'aspngcontrolscs' list
I would like to be able to interface several member functions of a class object from an .aspx page. I'm familiar with how to use the basics like Render and CreateChildControls with Controlls.Add(text). I not sure how to reference a member function from .aspx and would like to access more then a single function from the class. The following Code Sample is a complete stand alone console app that sho...
Deciding Which ControlType To Add At RunTime (2 replies)
ASPFriends.com 'aspngcontrolscs' list
Ladies and Gents a coding question is there a better way? The following code (WHAT I HAVE NOW) adds a TextBox or Button depending upon the value of strType which would be a passed in variable. To my mind, this code is pretty inelegant and I was wondering if there was a better way like this ideal code. IDEAL CODE TypeOfControl TextBox; Control ctl new (Control)TypeOfControl; this.Controls.Add(ctl);...
Custom Server Controls (2 replies)
ASPFriends.com 'aspngcontrolscs' list
I am trying to design a custom server control the derives from System.Web.UI.WebControls.Label. My control is going to overide the text property with some new text that is the result of some logic in my code. I have no problem replacing the text, but when the text is replaced, I lose all the css style properties (text color, font, font size etc..) associated with the label control. Example aspx co...
ImageUrlEditor Root? (2 replies)
ASPFriends.com 'aspngcontrolscs' list
For some reason the UrlEditor Attribute is rendering the root project as the control's project at design time. In previous builds the default behavior was to show the root project of the Application hosting the control. I can't seem to find any property on the base class for setting the root. Am I missing something here? 20 /// summary /// Property: The url of the help page /// /summary [ Browsabl...
Caching custom server controls (3 replies)
ASPFriends.com 'aspngcontrolscs' list
I have a drop down list that populates its self from a database and has some other self management features. I would like to cache this control so that the database connection isn't made every time the control gets rendered. I've looked through the sdk but couldn't find anything for System.Web.UI or System.Web.UI.Design. I know you can set this for a user control, but this is a custom server contr...
Repeater Item onItemCreated | 2nd Time (9 replies, VIP)
ASPFriends.com 'aspngcontrolscs' list
I want to add a mouseover to the IBuySpy type navbar that ships with the portal. I've handled the itemcreated event to try and make this work but it won't for some reason. Any suggestions would help. This code won't work private void tabs ItemCreated(object sender, System.Web.UI.WebControls.DataListItemEventArgs e) { switch(e.Item.ItemType) { case System.Web.UI.WebControls.ListItemType.Item: 09 e....
DataGrid in WebForm vs. Windows form - Can't create the relations (6 replies, VIP)
ASPFriends.com 'aspngcontrolscs' list
I have two simple applications: one Windows Form and one Web Form. In both I have a DataGrid, unmodified, just by double clicking on the DataGrid in the toolbar (no modified attributes). I want the data grid to show the relationship between the Customers table and the Orders table in NorthWind. In the Windows Application, I have the code below in the constructor. In the Web Form app, I have the ex...
Using a templated control in a custom Web control (2 replies, VIP)
ASPFriends.com 'aspngcontrolscs' list
Take a moment to read this post, it is exactly what I am trying to do: http://discuss.develop.com/archives/wa.exe?A2 ind0106D&amp;L DOTNET&amp;P R17574 (I couldn't find out how to determine if there were any replies to the post) I am creating a custom Web control and I want to display a DataList Web control that is databound to a DataReader. In a user control this would be painfully simple, but I am havin...
Accessing posted back data in a composite control (2 replies, VIP)
ASPFriends.com 'aspngcontrolscs' list
Building a custom control that has a number of text boxes and a button. When the user clicks the button, the page is relaoded (assuming the control is put in a WebForm) and the event handler I wrote in the custom control is fired. In essence, I do something like: ... protected override void CreateChildControls() { // create children (a.k.a., a ton of textboxes) ... // create button Button btnTmp n...
Sample PictureList Control for testing (5 replies)
ASPFriends.com 'aspngcontrolscs' list
I posted a really simple server control, PictureList that makes it easy to display image collections in an ASPX page. You can see an example here: http://beta2.eraserver.net/controls/picturelist You can also download the control and provide feedback. It's a pretty rough version now, but I'm intersted in any comments you'd have. MCA Mike Amundsen host your .NET Webs @ www.EraServer.NET
Inheriting From System.Web.UI.WebControls.Image (21 replies, VIP)
ASPFriends.com 'aspngcontrolscs' list
I am building a custom control that inherits from System.Web.UI.WebControls.Image. I want to have the image render a dynamically created image. I create the image in the OnLoad event of the custom control. I do not want to save the image to disk, but I do want to render it as the image of this control. I have no ideas how to make this work. Right now, for testing purposes, I have: myImage.Save(Htt...
Cached DropDownList UserControl (2 replies)
ASPFriends.com 'aspngcontrolscs' list
I'm looking for tips on how to create a cached control. A typical example would be a drop down list of contries. This list itself almost never changes, so to to use a DataReader to access the database and bind it to an ASP:DropDownList control amounts to making a trip to the database every time its displayed. Instead, I want to be able to cache the dropdwown list of countries, but also add additio...
Control building - is FindControl ok? (2 replies)
ASPFriends.com 'aspngcontrolscs' list
I am working on building compiled Web controls and noticed that there are two ways to build up composite Web controls. That is, suppose I want a textbox and a label in my compiled Web control. I can do: protected override void CreateChildControls() { Label lblTmp new Label(); lblTmp.ID &quot;lblFoo&quot;; ... set properties Controls.Add(lblTmp); TextBox txtTmp new TextBox(); txtTmp.ID &quot;txtBar&quot;; ... Controls...
Caching AppSetting values? (6 replies)
ASPFriends.com 'aspngcontrolscs' list
Quick question on caching appsetting type values. I have a series of classes grouped in a namespace, Foo. I have some custom config setting values I want various classes in the Foo namespace to be able to read. So I created a Globals class in the namespace and made a series of public, static, readonly variables that are populated with the custom appSetting values, like: namespace Foo { class Globa...
determining browser level (3 replies, VIP)
ASPFriends.com 'aspngcontrolscs' list
for complex controls, I often have to do switches on browser for different renderings. usually it ends up being a switch on the browser.type and what not. is there a way, from within my control, to determine the browser level or ( more usefull ) browser capabilities ( Like css1/2, or w3cDOM ) instead of coding to browser identification strings? Andy Smith Staff Programmer Harding ESE
Validators inside of Composite Controls (4 replies)
ASPFriends.com 'aspngcontrolscs' list
I have a textbox that I want to add some validation to inside a composite control. The trouble is, the ControlToValidate property. This code is what I have so far. Any ideas? /// summary /// Render this control's child controls. /// /summary protected override void CreateChildControls() { Controls.Add( email); // Wire up validators emailRequired.ControlToValidate email.ClientID; emailRegEx.Control...
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