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 > march 2004

Filter by week: 1 2 3 4 5

debugger: cannot step into <% %> C# code...
Posted by franknewsgroups NO[at]SPAM yahoo.com at 3/31/2004 11:01:00 PM
I have a .NET solution that includes C# code and then it dynamically adds controls to dynamically created web pages. The problem I am having with the VS.NET 2003 Debugger is that I cannot get it to show the source for the breakpoints set in C# code embedded with the <% %> delimiters embedded i...more >>


Wiring events between user controls
Posted by Troy at 3/30/2004 1:21:11 PM
Hi, How can I wire a button click from one user control to a 2nd usercontrol on a parent page? The click passes a parameter to the 2nd control. The 2nd control should catch the event and execute code using the passed parameter I have both of them derived from the same custom user control class. ...more >>

Design time visibility of a Web User Control
Posted by Wayne M J at 3/29/2004 2:58:02 PM
I have seen plenty of documentation on Web Custom Controls and how to get them visible during the design stage of development, but I have not encountered anything as yet on setting Web User Controls such that they too are visible during the design stage. Is it possible? ...more >>

Help needed for renderered control
Posted by Jairo Nieto at 3/29/2004 11:17:34 AM
Hi, I developed a date rendered control, problem is when the page the control is in postbacks i get this error Value cannot be null. Parameter name: String Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more in...more >>

script works on test PC, not on ISP server?
Posted by Rudi Ahlers at 3/28/2004 11:05:53 PM
The following script work perfectly well on my PC at home, yet when I upload it, it doesn't work. if tranRS("subscriber") = "Y" then response.Write "<IMG SRC=images/tick4.gif ALT='Companies Who Care' BORDER=0>" else response.Write "<IMG SRC=images/cross2.gif ALT='Companies Wh...more >>

How do I do this?
Posted by Rudi Ahlers at 3/28/2004 9:38:35 PM
How do I add a column in a table on a MSSQL server? I got BuildSQL running, so I can enter SQL commands to do it, only problem is, I don't know the command to add a column :) -- Kind Regards Rudi Ahlers +27 (82) 926 1689 Greater love has no one than this, that he lay down his life for h...more >>

carriage return character
Posted by Rudi Ahlers at 3/28/2004 6:07:11 PM
What is the newline (carriage return) character? I have seen the following in practice: clientresponse = "Hello " & username & Chr(39) & Chr(39) & clientresponse But this creates a " sign, can anyone tell me what the newline character is? This is for inserting data into a DB, and keeping keepin...more >>

extending sessions
Posted by Rudi Ahlers at 3/28/2004 10:30:54 AM
I know the default setting for a session is 20 minutes, and this gets set on IIS. But, now the question is, how do I extend these sessions? And, is 45 minutes a good time? this is for reading articles, filling out surveys, and doing graphical analysis about company entities. -- Kind Regards...more >>



CSS Doubts/Questions
Posted by Carlos Cruz at 3/27/2004 12:26:10 PM
Hi, How can I have 2 asp:hyperlink at the same aspx page but with diferent styles ? I've tryed this: A:visited { color: #febc11; text-decoration: underline; } A.Menu:visited { font-weight: bold; color: #febc11; text-decoration: underline; } .... but can I tell each control t...more >>

ComboCalander
Posted by gurvar at 3/26/2004 10:26:10 AM
Hi I was wondering is there the combo calander control in ASP.nET similar t what was in VB6 Thanks....more >>

Maintaining variable values in the aspx form
Posted by rashiddotnet NO[at]SPAM yahoo.com at 3/26/2004 8:43:09 AM
I have 2 controls on the form one id drop down list and the other is button The OnSelectedIndex change event handler sets the value of a class variable to some integer. When I click the button and try to get the value of count in the button event handler i dont get it ... Please advice......more >>

Collection property in a Custom Server Control
Posted by Samuel Morais at 3/26/2004 5:40:40 AM
Hi, I´ve been searching for this topic the last 2 days and not found anything useful. Does anyone have the code (preferentially VB) that declares a property that is a collection of items? (Like the Itens property of the listBox) I want to create a server control which one of its properties is...more >>

textbox compare control
Posted by Kieran5405 at 3/26/2004 3:54:16 AM
Hi A bit of a newbie question I'm using Visual Studio.Net 2003 I have two textboxes on a webform and a submit button I'm trying to have it so text can only be in one textbox at any time when the submit button is clicked. In that an error appears if text is in more than one box I have been ...more >>

DataList within DataList
Posted by Jairo Nieto at 3/25/2004 5:01:46 PM
Hi, i am trying to create a data list, who has another datalist as one of its items. Can anyone please tell me how to accomplish this? Thx :) ...more >>

Removing dynamic items from dropdownlist
Posted by Dominic at 3/25/2004 4:58:16 PM
I've created a control inheriting from dropdownlist. What I need is a RemoveDynamicItems method that would remove only list items that were added programatically. Keeping all list items existing explicitly in the designer (aspx file). Any ideas? *** Sent via Developersdex http://www.devel...more >>

Works in production, not on development server
Posted by Schoo at 3/25/2004 4:19:26 PM
I have an ASP (with VB as my backend code) I wrote using .NET 2003 (7.1.3088), that works fine on my development workstation, but I copied all the files from the application directory on my workstation (c:/inetpub/wwwroot/<projectfile>/*.*), to a folder on the IIS server (W2K Server) and created...more >>

How to resize custom control in designtime
Posted by news.microsoft.com at 3/25/2004 3:48:41 PM
I created custom control that inherits from System.Web.UI.WebControls.WebControl and implements INamingContainer. But I cannot resize this custom control when I use it in my other project. Is there any one can help ???? ...more >>

dynamic creation of user controls
Posted by Jill Graham at 3/25/2004 12:53:38 PM
In the page_onInit sub of my page, I'm adding user controls dynamically using following code : newControl = page.LoadControl("~/modules/footer.ascx") page.controls.add(newControl) In what state is the control I added ? The control has been initialized, loaded, rendered ? Jill ...more >>

user control stylesheets
Posted by Jill Graham at 3/25/2004 11:06:05 AM
Hi, I have an asp .net page which includes several custom user controls. Each user control has its own template (.ascx file) Now, I want my graphical people to be able to add a link to a stylesheet file on top of the template file. This link should then be included in the head section of th...more >>

User Controls & Client Side Events
Posted by Brett Robichaud at 3/25/2004 10:23:37 AM
I have a user control from which I would like to fire events that can be handled in client side script. How do I accomplish this? In particular my user control has 2 web controls, a textbox and an imagebutton. I'd like the client script to be able to handle events when the imagebutton is cli...more >>

i cant center-align my control in table cell with netscape and mozilla
Posted by smashit NO[at]SPAM email.si at 3/25/2004 6:49:57 AM
i made a composite control than i craated a table with a cell and put my control into cell and i set alignement of the cell to center...the problem is that IE is showing my control in center of the cell, but mozilla and netscape aren't ...can anyone help me??...more >>

HELP IN DEVELOPING A KNOWLEDGE BASE USING ASP.NET AND C# PLEASE REPLY SOON
Posted by sherwinm NO[at]SPAM rediffmail.com at 3/24/2004 4:52:51 AM
See ive created an inventory for a company it has various modules , like purchasing , workstation , library, catalogue and HELPDESK , so now for HELPDESK i need to create a KNOWLEDGE BASE by which a user would be able to search for teh solution to any of his problems like "who...more >>

Dynamically created Server Controls and page postback
Posted by DotNetJunkies User at 3/23/2004 4:07:58 PM
I have a page with button and dropdownlist i want to select a number from the dropdownlist so when the page postback it'll create a number of textbox according to the number within the dropdownlist I successfully did that but i have a problem when i write text within the textboxes and submit the ...more >>

Images in webcontrol
Posted by RJDev at 3/23/2004 11:42:51 AM
Hello, I have made an webcontrol with images stored in an database. I have several subfolders importing the webcontrol. Now the images are = not loaded wel because of the place of the webcontrol. Can i chnage the tag below in the code behind place. '<td id=3D"Cel3" class=3D"Welcom" style=3D"B...more >>

Adding a style to HtmlSelect
Posted by ccallen at 3/23/2004 10:13:56 AM
How can a style, on an HtmlSelect obejct, be set in code? I tryed: HtmlSelect s = new HtmlSelect(); s.Style = "width:75px"; The compiler said the property is read only. I was able to add a width attribute to the html select tag (<select width="75px">) HtmlSelect s = new HtmlSelect()...more >>

Modal Dialog
Posted by slawek xxxxx at 3/23/2004 12:29:14 AM
Hello everyone, I hope that I'll fide the answer here ;) The problem is: If I open .aspx web form as a modal dialog and want to perform a server trip and return with a new data ( for example after selecting some value from combo) then I always have new window with form instead of reloading ...more >>

ChildProperties
Posted by Aaron Bull at 3/22/2004 9:56:14 AM
G'day All, Looking at the documentation, it looks like what I'm trying to do is possible, but I can't get it to work. Any suggestions would be greatful. I'm trying to make a server control, so the calling aspx code will look similar to this <ab:MyControl runat="server" id="blah" > <F...more >>

Output strem
Posted by slawek xxxxx at 3/22/2004 8:12:37 AM
Hello, I want to ask if there is any way to access html code of the page after rendering all asp.net controls? For example when I look at the source code of the .aspx page in the browser (on the client side) I see something like : <a href=”#”> test </a>. I want to change this link to : <a h...more >>

DropDownList where's the BorderColor ?
Posted by Duncan Walker at 3/22/2004 12:41:06 AM
I did post a thread before this one, but it seems to have been removed, which I find a little bit anoying as it seems that certain people in Microsoft are not happy with complaints about their software Once again I'll emphasis the point that Shen made in an earlier thread. The BorderColor, BorderS...more >>

Composite vrs Rendered (tradeoffs)
Posted by ccallen at 3/21/2004 12:23:00 PM
Are there any rules of thumb for deciding to go with a rendered vrs composite control? Are there times where you would definantly want to choose one over the other. What are the tradeoffs (Performance, additional overhead, etc), or is it mostly a matter of style or employer policy. ...more >>

ExtenderProvider object code persistence
Posted by PV at 3/19/2004 8:42:45 AM
I have written my own class that implements IExtenderProvider - it adds a couple of extra properties to all the WebControl controls on the page. The new property values are stored in a Collection within my extender class. In order to persist the property values in code, I wrote my own serialize...more >>

DropDownList BorderColor not working !!?
Posted by Duncan at 3/19/2004 3:51:08 AM
Hi I've spent the last 2 days searching the Net and Knowledge base for a "working" example of how to change the border properties of a DropDownList box. Can anyone tell me WHY ! Microsoft would miss out such a major thing like this ? No examples I have tried actually work, even though the option...more >>

a trigger to update frames?
Posted by Rudi Ahlers at 3/18/2004 7:59:55 PM
Can this be done? The site has a few frames, some on top, some on the side, and the middle one. I want to be able to tell the one side frame containing the menu, to change the menu contents when a user logs in, and also the change the top banner (in another frame) to something targeted at this...more >>

table joins - 3 tables
Posted by Rudi Ahlers at 3/17/2004 8:02:57 PM
Ok, I got three tables, company, comments and old_company. In company are all the current companies, in old_company are companies who have been suspended, and in comment, clients can make comments about the companies, regardless if they are current or suspended companies. I currently display...more >>

CreateChildControls(...) or Render(...)?
Posted by nobody at 3/17/2004 5:06:49 PM
Should I create controls for a composite WebControl in the CreateChildControl or the Render method? It seems like CreateChildControl is not called at design time when the control is on a page being designed. Here's my situation. I'm making a composite WebControl that has a label and a RadioB...more >>

Server Control Design-Time Image
Posted by Shawn A. Hall at 3/17/2004 2:18:51 PM
Hi All! I'm attempting to create a Designer for a Custom Server Control that I've designed. It doesn't have any interactivity, but I'm trying to spruce it up a bit by adding an image with my company logo, etc. to the design-time rendering. I've done quite a bit of research and have found ver...more >>

Problem viewstate dynamically added custom control
Posted by Henk at 3/17/2004 12:27:38 PM
Hello, I have a custom control that works fine with it's viewstate when it is placed as a tag inside the aspx (I need to read if a Checkbox, rendered by the custom control, is checked). Problem is that I want to create it dynamically (in Page_Load or the OnInit of the aspx) and than add it to ...more >>

Multiple controls with the same ID '_ctl11'
Posted by sreddi NO[at]SPAM razorhost.com at 3/17/2004 12:15:53 PM
We designed a dynamic control loading framework that loads ASCX files into placeholders in a single ASPX page that inherits from a base page class. The framework consists of a controller device that is dragged out onto the ASPX page and "devices" that are dragged out onto the ASCX files. At ru...more >>

Depending properies doesn't change aspx source
Posted by Robert Warnestam at 3/17/2004 9:38:39 AM
Hi, I have some trouble (again) with a WebControl, I've a some properties = that depends on other properties. The problem is when I change a = property which also changes another, the aspx file doesn't update the = last one. What's the trick to update the aspx file? Here is sample componen...more >>

WebControl rendering at design time
Posted by nobody at 3/17/2004 12:42:12 AM
Is it possible to make a custom WebControl reder itself at design time? I've made a WebControl that contains a Label and a RadioButtonList. It works fine at run time, but at design time it just draws a solid while box. Neither the Label nor the RadioButtonList render themself. Am I doing someth...more >>

Editing collection property from Property Window...
Posted by nobody at 3/16/2004 9:32:02 PM
If I've got a property on my web control that is a collection (of strings), how can I have it allow the user to edit those strings through the property window at design time? The property on my webcontrol is defined as: Private WithEvents m_Choices As ChoiceList Property Choices() As ...more >>

Validation controls doesn't fire on dynamically created HtmlForms
Posted by Michail Zlatanov at 3/16/2004 9:30:12 PM
Hi all, I have created one base class (which derive from System.Web.UI.Page class) from which all my web pages will derive. In this class I override the OnInit method and create a HtmlForm on the fly: -------------------------------------------------------------------- protected override vo...more >>

Using Color
Posted by Robert Warnestam at 3/16/2004 4:31:54 PM
I've problems using Color for a WebControl I've declared a property called TEST which is of the type Color. Comparing to existing Color properties, such as ForeColor I can spot the following difference; 1. Setting TEST to a custom color (#121212) then the property windows shows "18; 18; 18"...more >>

Add Control without touching ASPX?
Posted by localhost at 3/16/2004 9:03:00 AM
I have a server control that is declared in the top of the .aspx page. I want to use the control in many, many pages, but do not want to hand-modify every .aspx page template. How can I specify that a control be added/used in the codebehind ..aspx.cs only and *not* touch the .aspx page? ...more >>

Choosing a base class
Posted by Emjay at 3/15/2004 4:51:07 PM
Hi, there I'm trying to write a non-rendering component that is manipulated at design time in VS.Net By non-rendering I mean the component doesn't generate any HTML tags In fact, the component is supposed to be used both for windows applications and web applications just like the DataSet class ...more >>

Viewing WebControls in DesignTime
Posted by Robert Warnestam at 3/15/2004 1:50:45 PM
Hi, I've problems with a custom WebControl. The control has properties for letting the user set the relative path to some images and a xml file that the controls need. In runtime the images are displayed and the control can load the xml file. In design time however, this fails because the curr...more >>

Referencing a custom struct in .Net asp tags. Getting error.
Posted by Jeff Rhoads at 3/15/2004 1:00:26 PM
Hello, I created a custom struct called Automobile. This struct has various properties called "Ford", "Chevy", "Dodge", "Pontiac", .... This struct is pretty much the exact same format as the .Net System.Drawing.Color struct where "Ford", "Chevy", ... would equate to the Colors "Red", "PaleGold...more >>

How to expose collections on a usercontrol
Posted by j_a5 at 3/15/2004 11:29:06 AM
Hi, I have a custom user control. In that custom control MyControl. I am exposing a property called MyItems. The MyItems is a strongly typed collection of MyItem. I am exposing a MyItems in the user control as a public property. I want to be able to add items to the MyItems collection at design...more >>

How to find out in Page_Load which linkbutton event is fired?
Posted by Andreas Klemt at 3/14/2004 3:03:01 PM
Hello, how can I find out in Page_Load which linkbutton event is fired? Thanks for any help in advance!! Andreas ...more >>

Pending Events?
Posted by Mark Olbert at 3/14/2004 1:54:19 PM
I've noticed something in a calendar control I'm writing relating to event processing. My control has some links built into it to allow you to move forward and backward one or more months at a time. When one of those links is clicked, an event is generated that the control library processes. Th...more >>


DevelopmentNow Blog