| GACing a component (6 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I've created a component and would like to place it in the GAC. I followed the steps at http://support.microsoft.com/default.aspx?scid kb;EN US;q302340 to create a key file and recompiled my component with a key. Next, I used the gacutil command line tool (discussed at http://msdn.microsoft.com/library/default.asp?url /library/en us/cptools /html/cpgrfglobalassemblycacheutilitygacutilexe.asp) to i... |
|
| firing methods before CreateChildControls() (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I trying building a grid in which I edit all the fields at once. I seem to be having problems with the timing of when things load. I have a composite control that contains three fields which represents a row in my database (myRowControl). I have another control (myRowGroupControl) which contains a group of the previous control for all the records in my query which is databound and creates the myRo... |
|
| Collection of Controls (2 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a control that creates a groups of other controls based on a datasource. The group of controls are editable so I need to be able to pull the values out of the groups to update my database. At the moment, I'm looping through the root control's Control collections and pulling the values out like that which works fine. My problem is now I want to add additional controls (such as buttons) to my... |
|
| Controls with Forms Frenzy!~~~ (5 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a single page that has 2 controls in it, each control having its own form tags. Ofcourse the page did not render as you are only aloud ONE form tag per page. How will the compiler know which section to post to? In the main page w/2 controls in it, can I refrence which control to post to in the 'WEB Form Designer' section...or is this what I have to do (i'm just guessing by the name?). thank... |
|
| Creating your own server control (5 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Looking for a tutorial on creating your own server control. |
|
| Trickle display of a web form (turning buffering off) (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| For demonstration purposes, I want to turn off buffering and have a page render incrementally. My experiments so far have involved turning buffering off in Page Init and overriding Page.Render to manually render the output stream and flush it where appropriate. I assume there is a better way, but I just haven't found it yet. Unfortunately though, the browser does not render the result until the wh... |
|
| context? (5 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| My files are organized as such: Components directory Controls Directory Web Directory All my web files are empty, I simply drag and drop my controls in them. I attempted to code write into the web file this time in the code behind, I am recieving this error when compiling (my code behind is creating classes from my Components.) 'ABC.User' denotes a 'class' which is not valid in the given context W... |
|
| Events in web apps (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Is there a control or a way to create one that on the client can receive an event from the server? Is this at all possible without reverting to polling? Regards, Anders Vikstr F6m SW Engineering, BANQIT AB http://www.banqit.com mailto:anders.vikstrom@banqit.com Phone: 46 8 7594737 |
|
| Reflection and AddEventHandler method (9 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Moved from [aspngfw] to [aspngcontrolscs] by Charles M. Carroll darthcarroll@asplists.com Relevant code: Control MyControl Page.FindControl("myControl"); Type MyType MyControl.GetType(); System.Delegate x new EventHandler(this.myEventHandler); MyType.GetEvent("SomeEvent").AddEventHandler(MyControl, x); } public void myEventHandler(object sender, EventArgs e) { Trace.Write("event handler","Event oc... |
|
| composite controls and postback (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have a control that is composited from a number of other controls. I want to ensure that the contents of each of these controls is persisted between postbacks just like TextBox, etc do normally. My understanding leads me to believe that to do this I need to: 1. Intercept the postback by implementing IPostBackDataHandler and LoadPostData() and RaisePostDataChangedEvent(). 2. In LoadPostData, pull... |
|
| Custom Controls : Jubin (5 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Greetings I have created my own custom control. While rendering I want to change some value. For example I wanted to render 3 times stars if a person passes one star as below. With which property of the class is the star associated. Any examples would be appreciated. asp:RegularExpressionValidator ID "abc" ValidationExpression "aaa" ControlToValidate "bbb" ErrorMessage "ccc" * /asp:RegularExpressi... |
|
| Checkbox.Attributes.Add (3 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| Why when I add an "onclick" attribute to a CheckBox, does ASP.NET wrap the checkbox in a span and assigns the onclick to the span tag? i.e.... this... checkbox.Attributes.Add("onclick","function()"); ...gives this: span onclick "function()" input id "..." type "checkbox" name "..." / /span Rather than what I expected, which is this: input id "..." type "checkbox" name "..." onclick "function() / /... |
|
| Get server form id? (11 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I'm writing a control that needs to know the ClientID of the server form control. Is there a nice little method or 2 that'll do that? Andy Smith |
|
| Creating a databound control (8 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| In the quickstart examples, they is an example of creating a custom server control using a Repeater. IN the code, they have a property called DataSource of Type ICollection which is used to get the datasource of the control. In the example, they use an ArrayList. I have tried to modify this example to use a DataSet, but I keep getting a compiler error saying it can't convert a type DataSet to type... |
|
| persisting properties (3 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I'm having trouble saving a property within a child control. Here is an example of what I'm trying to do. I'm created a control which has fields for a record in my database (myTestRow). This control also has a property which stores the ID of the record so I can retrieve it later. I have another control (myGroup) which contains the myTestRow controls for each record in my query. The myGroup control... |
|
| ViewState and Init event (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| This is more of a general, academic question aimed at people familiar with the inards of Web.UI.Control's I've read that controls only persist to viewstate those properties which were set after the Init event or after the control is added to the control tree. I can understand the why... it'll reduce the amount of characters in the ViewState. However, how does this work? |
|
| Using CodeBehind in a pre-compiled control (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I have created a simple custom control which I have registered in a web form, like so: %@ Register TagPrefix "myComp" TagName "Header" Src "controlz/myheader.ascx" % and given it the tag: myComp:Header id "ctlHeader" PageTitle "The Home Page" runat "server" / The control contains the directive: %@ Control Language "c#" Codebehind "myheader.ascx.cs" Inherits "TestWeb.controlz.myheader"% The control... |
|
| set a server control toolbox icon? (6 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| how do I set the toolbox icon of some server controls i'm developing? Andy Smith Chief Code Monkey Andy Smith Chief Code Monkey |
|
| NOT ANSWERED BEFORE set a server control toolbox icon? (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I've gotten awesome answers on how to do this with vs.net, but how do I properly include the image file into my assembly with just the command line? Andy Smith Chief Code Monkey asmith@mactec.com 01/16/02 18:51 PM how about if we don't have vs.net? how do I embed a resource on the csc command line? Andy Smith Chief Code Monkey |
|
| RenderChildren (4 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hi! I'm writing a WebControl which has to render the content between the control tags. for instance myControls:PanelExpa id "ss" runat "server" Hi! some inner text and html /myControls:PanelExpa So I created a WebControl which overrides Render method like this protected override void Render(HtmlTextWriter writer) { writer.Write("Something to add up"); RenderChildren(writer); writer.Write("Somethin... |
|
| Inner text of custom server controls... (9 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Hello everyone, I've had numerous people ask me the following question, and I have yet to find an answer. How do I access the inner text of a custom server control in the following manner? CustomControl:MyControl runat "server" I want to retrieve this text here /CustomControl:MyControl If anyone could provide an example of the required code, I would be very grateful. Thanks, Ted Ted Glaza tedglaza... |
|
| NOT ANSWERED: HeaderTemplate of the Repeater Control (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Greetings. I am facing a strange situation with repeater control in .NET. I am using C# and based on the user clicking a Image Button Control I want to change the image( Replacing it with a colored image as I want to show the field on which sorting is taking place ). Also if I place the ImageButtons outside the headerTemplate of the Repeater control the images are being changed properly. Could you... |
|
| Custom controls in ASP.Net (2 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| Can anyone help me in this please? Lakshmi Original Message From: Lakshmi [mailto:lakshmip@aptech.ac.in] Sent: Friday, January 18, 2002 5:02 PM To: Aspngfreeforall Subject: Custom controls in ASP.Net I have developed a custom control in ASP.Net. I want to incorporate timer functionality into this web server control which will accept a interval and execute a function on the client side when the sec... |
|
| ATTN Microsoft, Please Explain (3 replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| System.Design 20 The public class System.Web.UI.Design.WebControls.TableDesigner () is a recent addition to the .NET Framework class library. Because this member is a recent addition, it is not listed in the .NET Framework documentation. The syntax is provided here for your information. 20 Method: public override string GetPersistInnerHtml () Thanks in advance, Paul |
|
| Control order of attributes? (2 replies, VIP) |
| ASPFriends.com 'aspngcontrolscs' list |
| I'm having a problem w/ the following control.(oh, and feel free to use the code ;) The issue is that the first attribute needs to be rel 3D"stylesheet" otherwise netscape doesnt understand the tag. But instead it is the ID attribute. Is there a way to control the order of the attributes that gets output? 20 TIA, Seth Berger sberger@estco.net % @Control Language 3D"C#" % script runat 3D"server" la... |
|