Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > asp.net building controls > november 2004

Filter by week: 1 2 3 4 5

Building a table from within a loop
Posted by Grant at 11/30/2004 9:39:05 PM
Hi, Ive got this loop within a loop and Im trying to build a table. Problem is when I exit the 2nd foreach loop (having created a new row) I cant add the new row because it isnt in scope anymore. Basically I have this custom arraylist containing a name property which has multiple attributes...more >>

Problem with Custom Web Control Property
Posted by Dexter at 11/30/2004 1:51:32 PM
Hello all, I'm developing a custom web control that mount a webpage, but now i don't can to modify the properties of my custom web control. by exemplo: the property NumeroGuia is 0 by default, but if i try to modify to 5236, i don't can. Somebody can help-me with this custom web control? ...more >>

Control no longer "draggable and droppable"
Posted by Scott Mitchell [MVP] at 11/29/2004 7:19:24 PM
(FYI, this question is cross-posted over the ASP.NET Forums - http://asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=759339) I have created a custom control that, previously, had a great design time experience. I don't know what happened, but after Thanksgiving I returned to this project and...more >>

question about my custom control
Posted by rodchar at 11/29/2004 1:19:14 PM
hey all, i was wondering, i have a custom control that inherits from the image button. i have 2 .aspx pages. all the custom control does is open a new window for help info. well, on 1 .aspx page the new window appears fine and in focus. however, on the second window the new window opens...more >>

Extend the DataGrid
Posted by Sergio Florez M. at 11/29/2004 11:40:36 AM
I wish to extend the DataGrid control but my resulting control loses the ability to expose the <columns> and the different <style> tags in HTML mode. How do I expose them? and even better, how do I create and expose my own? -- Sergio Florez M. Medellín, Colombia. ...more >>

Can't import .OCX assembly into Web Matrix Project.
Posted by Jason Robertson at 11/29/2004 2:33:05 AM
Hi, I am using Web Matrix Project as .NET programming environment. Can you show me detailed steps how to import the .ocx library into the Web Matrix Project. I can't seem to be able to import other assembly than .dll, .exe or ..mcl . I am pretty new to the .NET programming environment, and ma...more >>

Icons in Custom Controls !!
Posted by Estratovarius at 11/28/2004 1:19:01 PM
How I can put an icon within a Web Custom Control ??...more >>

how to conditionaly add a usercontrol? (ASCX)
Posted by KK at 11/27/2004 8:40:24 PM
Hi guys I have two user controls (ascx) I want to place them conditionaly in my aspx page. How to do that? For exmple, If Request["variable"] = "1" then DisplayASCXcontrol(1) Else DisplayASCXcontrol(2) End If So, according to the users choice when the page loads, it will contai...more >>



Attribute is not setting
Posted by Thiruppathi S at 11/26/2004 6:26:27 PM
Hi All, I had created a server control inheriting RequiredFiledValidator Class to add my custom attributes.But the controltovalidate attribute is not rendering. Plz help me. Regards, S.Thiruppathi ...more >>

Problem with Build Custom Web Control
Posted by Dexter at 11/26/2004 1:30:17 PM
Hello all, I'm building a web custom control, but i hava a problem. In the Sub Render, i have a html code as output. All ok. I have a other class that has a function that return a image object, and i need to insert this image in my html of output, but it don't has a path. Protected Overrid...more >>

Styleheets on my composite control
Posted by Chris at 11/25/2004 9:36:17 PM
I have built a custom control which has several controls which have had their cssclass attributes set to a class. When I applied the class in styles.css they changed. When I modify the styles they don't change. It is like they are cached. It can't be the control as the styles worked at first. Do...more >>

Problem with web user control
Posted by oterox at 11/25/2004 9:13:11 PM
Hi! I have a user control WebUserControl1.ascx with a textbox.I want to change the text of the textbox from another page but i get the error "object reference not set to an instance of the object".The code is: protected System.Web.UI.WebControls.TextBox txtUC; public string ucTexto { set...more >>

How to FTP via VPN to sites on different IP's ?
Posted by Jason Robertson at 11/25/2004 1:13:44 PM
Hi, The VPN works fine, but I want to FTP through the VPN so the connection is encrypted. The problem is each of my IIS sites has a real Internet address specified, w.x.y.z. So when the VPN comes up using a private IP, I can't connect to any of the FTP sites using the VPN server's IP, 10.10....more >>

User control - lacking positioning on page
Posted by ken bus at 11/24/2004 8:25:02 PM
It seems that the user control I created could not be positioned using the grid positioning like other controls on my web page. It appeared to use flow layout. Is this a problem with user controls and will I have to use a composite server control instead?...more >>

Odd web control problem. Two instances of control A on different pages display each other's data!
Posted by ~~~ .NET Ed ~~~ at 11/24/2004 6:25:04 PM
I am currently using the ScottWatter (or ScottWater) Amazon Book Control in a website I am developing. Basically this is the outline: - It is a custom web control with designer support - Does not depend on any other library with the exception of a few Framework (System.Data,.XML,.Designer) l...more >>

Any Good Books on Building controls
Posted by GaryB at 11/23/2004 6:02:45 PM
I just bought a book entitled "Developing Microsoft asp.net server controls and components." It shows how to build controls using C#, with code embedded in aspx pages instead of code behind, using the SDK instead of Visual Studio. I don't think anyone really develops code that way. Are th...more >>

Problem in developing newsreader in vb.net
Posted by balu at 11/22/2004 7:11:25 PM
Hello, I am developing a Newsreader in vb.net and i am getting a problem in posting article to newserver for a particular set of newsgroups. i developin g this newsreader using nntp commands.I need vb.net code for posting a article . I getting a problem in defining a article format. Kindly ...more >>

Detect IE update version or service pack number
Posted by henry at 11/22/2004 5:32:20 PM
Hi all, I'm building a website which provides contents that only work for some browser types and versions. I know I can get most of the client browser information using HttpBrowserCapabilities class, but I can't find a way to determine IE update version or service pack number. Any ideas? ...more >>

"master" attribute not recognized
Posted by nidii NO[at]SPAM hotmail.com at 11/22/2004 2:17:29 AM
Hello, I'm trying to define a default master page in web.config for my web application lihe this: <appSettings/> <system.web> <!-- Set the default master page --> <pages master="Templates/MasterAdvertising.master"/> <!-...more >>

accessing aspx object from ascx pages and vise verce?
Posted by rom at 11/22/2004 1:12:48 AM
Is there a better way of doing it, except from using the session variables? Thanks!...more >>

Determine width for label or button
Posted by Leo at 11/21/2004 5:35:16 PM
Is there any way to determine the width needed for a web.ui.label or web.ui.button based on it's .text and .font properties? I know you can do this with windows.form controls but how could it be done for server controls. ...more >>

Detecting design mode in custom control
Posted by Naveen Kohli at 11/21/2004 11:58:37 AM
Is it pretty safe to assume that if Context is null, then its design mode? if (null == this.Context) { return true; } Naveen Kohli http://www.netomatix.com ...more >>

Debugging designer control
Posted by Serg at 11/18/2004 7:35:05 PM
Hello, in winforms, how do I debug a control (i.e. when it is being added and when its properties are being modified by the client window)? Thanks a lot...more >>

Book on Designers?
Posted by Serg at 11/18/2004 5:59:03 PM
Hello Please recommend a good book on developing custom user controls using Designer namespace, exposing properties, events, ect... NOT a book explaining ..NET fundamentals, but rather an in-depth coverage with examples in C#. I am mostly interested in doing this for WinForms, but I didn't ...more >>

DataGridCommand does not bubble?
Posted by Sergio Florez M. at 11/18/2004 2:59:23 PM
I'm creating a control which has a Button and a DataGrid among other things. I have overwritten the OnBubbleEvent() method to capture the Button's click event and it works fine. I also want to do this to capture a click on a ButtonColumn in the grid, but OnBubbleEvent() is never fired when I clic...more >>

how to get form id in a composite control?
Posted by Robin Lilly' at 11/18/2004 1:21:16 PM
Hi, I have a composite control that I need to reference the form id to build some javascript that I am pushing out several places, such as: _Anchor.Attributes.Add("OnClick", "JavaScript:popUpCalendar(this, document." & _formId & ".elements['" & _TextBox.UniqueID & "'], ""m/d/yyyy"")") ...more >>

Extending datagrid with new/insert button
Posted by Manuel Trunk at 11/17/2004 5:29:10 AM
Hi, I try to develop a server control which inherits from DataGrid and adds a new/insert button to this grid. This is no problem, but I can't get the event fired from this new button. I tried everything, implementing INamingContainer and IPostBackDataHandler, added the button to the footer...more >>

ASP.NET 1.1: Page vs. Control events
Posted by Ole Hanson at 11/16/2004 6:19:39 PM
Hi I am having a number of User Controls (ascx) on my page (aspx). The page is in my scenario only working as a dumb "container "giving life to the Controls, as these are handling my UI-logic and communicating with each other (the controls are communicating) by subscribing to each others event...more >>

Directing Domains
Posted by Andrew Bonney \(abweb\) at 11/16/2004 6:15:27 PM
Hi, I have never used ASP in my life so I NEED HELP!!! I have heard it is possible to create an asp script that when someone connects to a web server from the a domain (say www.mydomain.com), the asp script reads the domain/subdomain in the address bar and the locates the correct folder fo...more >>

User Control Populate Form after Log On - newbie question
Posted by keith at 11/16/2004 11:13:07 AM
Hi, I have a user control that contains a login element, textboxes for username and password, and a button to submit, which appears in the header of each page in my asp.net application. All of the below is done with code behind. When the user correctly logs on, it sets a public property bL...more >>

Building Nested Controls
Posted by Gaurav Vaish at 11/16/2004 10:54:46 AM
Hi, I want to have a control that can have children like: <prefix:Parent ... runat="server"> <Children> <prefix:Child .... runat="server"/> </Children> </prefix:Parent> When I try to launch the page, it gives me error that: "Children" does not have a property ...more >>

VS.NET 2003 Bug when ASP.NET control is in Design mode
Posted by ~~~ .NET Ed ~~~ at 11/14/2004 11:30:33 PM
Odd problem it is... on the design surface the web control is shown with red letters claiming that VS.NET was "Unable to create Control". But the entire assembly compiles flawlessly and even the test page displays the "damaged" controls perfectly. Looks like a VS.NET bug. ...more >>

Saving Properties from IDE
Posted by Rob Thomson at 11/14/2004 9:10:13 AM
Hi Can anyone help I have a composite control, ie text box, 3 buttons and have exposed them to the ide, but I cannot get any of their values persisted, ie if I change the value in the ide, shut the page, and reopen it, then the property value is back to its default. Im guessing that I need ...more >>

hardware arquitecture ASP.NET
Posted by smoncayo NO[at]SPAM gmail.com at 11/12/2004 5:19:21 PM
I have a question about hardware arquitecture for using in asp.net. I dont know what kind of minimum requirements I need for using an application client - server with ASP.NET , SQL SERVER and CRYSTAL REPORTS. Do you have some documentation? Thanks a lot!!!!...more >>

Doubt : ASP.NET problem
Posted by ASP newbie at 11/12/2004 4:30:57 PM
I cannot run my asp.net application in w2k server. But the program works fine under w2k professional. Can anyone tell me is there any difference in the settings? Many thanks. ...more >>

Dynamic Controls - Still!
Posted by Coleen at 11/12/2004 10:47:28 AM
Hi Jim Thanks for your help. I changed the table from an ASP.Net table to an HTML table. I am till having the problem of the control placed inside the table not triggering the on SelectedIndexChanged event. To be honest, I don't have a clue what you are talking about as to containers and pan...more >>

What Component model to use??
Posted by GaryB at 11/12/2004 8:58:03 AM
I have an ASPX page and a vb codebehind file that takes as input a passed web datagrid as input. My page has a CrystalReportsViewer on it. My page produces a PDF report of the DataGrid that was passed. I want to package this functionality into a component so that a programmer can simply d...more >>

Setting Control Properties with a Control Builder
Posted by Peter O'Connell at 11/11/2004 12:23:14 PM
I have a control that requires a custom ControlBuilder to parse certain child tags as controls, but I also want to use other tags to set properties. Is this possible? The default ControlBuilder, combined with the ParseChildren(true) attribute, will automatically assign child tags to corresp...more >>

How does one make a "designer" for a structure?
Posted by ~~~ .NET Ed ~~~ at 11/10/2004 7:56:00 PM
The configuration parameters of my web control are contained in a separate class. One can access the configuration parameters via the member names. In the control class I have defined a property to access the entire configuration class, and marked it with the following attributes: [Catego...more >>

Parser Error: Type XYZ does not have a property named 'cc3:MyItems' (complete posting) ASP.NET Web Control Error
Posted by ~~~ .NET Ed ~~~ at 11/10/2004 6:49:27 PM
I am having problems trying to get this part of the functionality working on my control and I hope somebody has a clue about how to resolve it. 1. How the relevant tags appear on the ASPX page. The @Register stuff is omitted. The control is basically a composite who also has a list of items ...more >>

An example for creating a web custom control with full design view.
Posted by Houda Tahbaz at 11/10/2004 12:16:51 PM
Hi, I know I should use the ControlDesigner class if I want to implement design mode behavior for a composition based control. However, do you know any online examples which I could start with quickly? Thanks, Houda Tahbaz ...more >>

Need Custom DataReader Loop in User Control: inline vs. code-behind
Posted by Jordan at 11/10/2004 9:05:20 AM
I'm trying to evaluate the benefits of designing user controls completely inline vs. using a code-behind file. I already have a user control designed that does the following: - gets QString values from URL - creates DataReader from Sproc - loops through datareader to display custom output (no...more >>

UserControl.ClientID
Posted by Federico at 11/10/2004 7:08:02 AM
Hi everyone, the matter is about the property UserControl.ClientID. I have an ASP.NET UserControl (called DateBox) which contains a TextBox server control, and there is an aspx page that contains an instance of DateBox. The page needs to put the focus into the DateBox; to do this I use a li...more >>

Creating dynamic Text boxes in VB .Net
Posted by Coleen at 11/8/2004 10:56:27 AM
Hi All :-) (I've posted at dotnet.languates.vb.controls, but not received any response since 11/5 - sorry for the doble-post, but I really could use some help...) I need to create some labels and text boxes dynamically, depending on the number input in a previous textbox on the page. What I ha...more >>

Error: Webcontrol must have items of type X. SubLinks is of type Y
Posted by ~~~ .NET Ed ~~~ at 11/7/2004 5:16:42 PM
Hi, I have made a web control that has two sorts of items. The first is the Links property that has a persistence attribute of InnerProperty, the other is SubLinks with the same attribute. Both are of the same collection type. The control has its own designer class (although it doesn't render...more >>

maintain viewstate in listboxes
Posted by DC Gringo at 11/6/2004 7:49:56 PM
I have an asp.net vb page with two web user controls on it. The first user control, uc1.ascx has a series of list boxes that are populated in series by each other with ONSELECTEDINDEXCHANGED. In the second control, uc2.ascx, lower down on the page, there is an imagebutton. When the imagebutt...more >>

How to access values entered in User control in the main page.
Posted by vineetbatta at 11/6/2004 3:30:02 PM
Hi Guys, i have a user control which allows the user to enter Name& Address in text boxes. I use the same user control in the main page... Is there a simple way of accessing the Name & address entered in the text boxes of the user control in the main page(Page hosting the user control ...more >>

Control and Parent
Posted by Zürcher See at 11/5/2004 4:07:25 PM
The Control class has the Parent property that is readonly. When the control is added to a controls collection of another control the Parent property refers to that control. "Who" set the Parent property? How to implement this "mechanism"? public abstract class MyControl { private MyCont...more >>

Editcommancolumn in datagrind in asp.net
Posted by venkat_chellam NO[at]SPAM yahoo.com at 11/4/2004 7:19:12 AM
I have a question. I have datagrid in asp.net page. grid will be loaded some information on page load. One column of the grid is editcommandcolumn type with edit, update and cancel options. I don't want the edit button(linktype) to be enabled for all the rows. Bases on some information, ed...more >>

Configuration
Posted by Paul Ledger at 11/4/2004 1:52:07 AM
I've written a control and I want to be able to pass certain information to it via a configuration file. I've created the config using the namespace + dll + config and I've placed it in the bin directory on the website. But when it comes to reading the information from the file using... str...more >>


DevelopmentNow Blog