Groups | Blog | Home


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
May 2008
June 2008
all groups > asp.net webcontrols > july 2004

Filter by week: 1 2 3 4 5

CustomValidator control BUG
Posted by ken bus at 7/31/2004 7:05:01 PM
If this is intended behavior the documentation is rotten! One customvalidator in an error state with one or more other noncustom validators in a like state will cause unexpected behavior. One would think that this customVal would act like the other val controls but this doesn't occur. The customVa...more >>


CustomValidator control not executing handler
Posted by ken bus at 7/31/2004 3:21:01 PM
I've done everything to get it to validate but no luck: HTML: <asp:TextBox id="TextBox1" style="Z-INDEX: 152; LEFT: 39px; POSITION: absolute; TOP: 68px" runat="server"></asp:TextBox> <asp:CustomValidator id="CustomValidator1" style="Z-INDEX: 153; LEFT: 201px; POSITION: absolute; TOP: 74px" ...more >>

TreeVew Web control not supported?
Posted by Bob Rundle at 7/30/2004 8:31:14 PM
On the MSDN website there is a tutorial and other material regarding the TreeView WebControl. There is also a bright red line at the top of the document that says the IE WebControls are not supported. Why are they not supported? Is there something I should know about them before I try to use...more >>

Is there anyway to get the previous selected item in a drop down list
Posted by klj_mcsd NO[at]SPAM hotmail.com at 7/30/2004 12:34:53 PM
Is there anyway to get the previous selected item in a drop down list when you change the selection?...more >>

Web Client timer technique(s )
Posted by c_p_b26 NO[at]SPAM hotmail.com at 7/30/2004 10:37:57 AM
I would like to put together a webcontrol (or page) that refreshes content on an interval with no user input. I am pretty confident I can write this into an applet, but I am wondering if I am overlooking something obvious. Is there anything like a timer that works on a browser client? I hav...more >>

Dynamic Control Creation and ViewState: what is the ASP.Net way?
Posted by bburtonpa NO[at]SPAM yahoo.com at 7/30/2004 10:08:54 AM
I am dynamically adding rows to an asp:table as a result of a database query. The row consists of a label, a textbox and three checkboxes in that order: LABEL TEXTBOX CHECKBOX1 CHECKBOX3 CHECKBOX2 name1 email1 checked checked checked name2 email2 not checked check...more >>

Dependent dropdownlists without an auto postback
Posted by chester NO[at]SPAM anticommercial.com at 7/30/2004 7:03:34 AM
I have two dropdownlists, the first is populated with a fixed collection, and the second has no listitems. When the first dropdown is selected the second one will populate accordingly. Is there a way that I can have the list items in the second dropdown populate without using an auto postback?...more >>

Replace a text by a control
Posted by gokulrajad NO[at]SPAM yahoo.com at 7/29/2004 9:42:10 PM
Hi There, Iam in the process of creating a very small content management system. The need is.... I have a page displayed taking data from the database , both for the template and the content. I use a dropdown list box to display a list of countries. The hitch is I have to display the dropd...more >>



Problem with ControlDesigner and GetDesignTimeHtml
Posted by Nicolas LeBlanc at 7/29/2004 5:16:44 PM
Hello, I'm trying to do a control that does an html table around other controls, it works 100% fine, but I have decided to implement design time viewing, now I'm in trouble. It works, but it does not render any nested controls inside my control (which inherits from a Panel), so no child con...more >>

textbox height = containing cell height - x
Posted by ujjc001 NO[at]SPAM charter.net at 7/29/2004 12:50:54 PM
Greetings all. I would like to know how to make a textboxs height = the height of the cell it's in - 10 px or what ever number.. Using 90% for height does not work as I need it to be exactly so many px less than the total height and with %'s it's too dynamic from small to large screens. Than...more >>

Guru's challenge: How to place multiple instance of a control on a page with abnormal capabilities
Posted by .Net Newbie at 7/29/2004 11:39:13 AM
I am relatively new to .Net and have been coding an intranet site for my employer for a couple of months. I am currently stuck coding in a text-editor called EditPlus without access to the VS.Net IDE, and coding pages with the script directly in each page (not using the codebehind method) as mo...more >>

How to set button.text Align to left?
Posted by boy0612 at 7/29/2004 1:44:15 AM
How to set button.text Align to left? ...more >>

How can i add title to the parts in catalogpartzone
Posted by DotNetJunkies User at 7/29/2004 12:40:30 AM
HI all, Hope u got the question in the subject itself. Here it is again. I added a catalogzone to my asp.net page and then i added a declarativeCatalogpart . Now i can add the controls in that but how to title these controls i mean how to give names. It gives untitled[1] untitled[2] sort of thing...more >>

Accessing an embedded UserControl "<object" in javascript
Posted by Mombiatch at 7/28/2004 6:00:40 PM
Hi I'm trying to set a property on a UserControl that I've embedded in my ASP.NET web page. At first, I had the following in the <form> section: <object id="mediaclient" classid="mediaclient.dll#NeuralFramework.MediaBroker.MediaClient"></object> When I tried to use custom javascript to se...more >>

Firefox - Mozila - Netscape - Opera Rendering
Posted by Thom Little at 7/28/2004 2:39:01 PM
I have an application that contains many (16) Drop Down Lists that are all the same width and many Buttons (40) that are the same width. They are arranged in columns. This is rendered perfectly in Internet Explorer. It is a jumbled mess in Firefox, Mozilla, Netscape, and Opera. These brow...more >>

Problem with CompareValidator control
Posted by Andres Aguiar at 7/28/2004 1:45:44 PM
Hi, I'm using the CompareValidator with a DateTime field using the dd/MMM/yyyy format (example "07/Jun/2004" ) . The compare validator seems not work with this format. It always says that the date is invalid. I'm using the CompateValidator with Operator= "DataTypeCheck" and Type="Date"....more >>

Web Custom Control having error on ID field
Posted by Steve Mauldin at 7/28/2004 10:23:46 AM
I get the following error when trying to view in browser an aspx page that has my simple Web Custom Control. If I remove the ID=Controlname from the ASPX then the page and control displays correctly but I need to have id fields to reference my web custom controls in code behind. Can someone tell...more >>

How can I get the IE WebControls component ?
Posted by ivan at 7/28/2004 7:03:34 AM

Passing some info to a control at runtime.
Posted by Simon Harvey at 7/27/2004 4:13:08 PM
Hi all, I've made a user control and I need to pass it some information so it knows what it should display. Can anyone tell me what i need to do to pass it information via html attributes. eg: <asp:mycontrol myproperty="true" runat="server"></asp:mycontrol> I know I can pass it informatio...more >>

Record not being deleted in dbase, even tho the display on datagrid is deleted..
Posted by springb2k NO[at]SPAM yahoo.com at 7/27/2004 9:17:22 AM
IN my code behind .vb page for a delete records script (this also does a deletion confirmation with a javascript popup, this gets called on my front .aspx page with the datagrid), I'm not sure if he row.delete() in my Delete_Row sub is correct because when deleting a record from the dbase, it do...more >>

FormControl from string
Posted by Jack at 7/26/2004 2:31:52 PM
Hi, I have a webform with Panel. In callback, I have a string: "<asp:textbox id="text1">" I want to "parse and compile" this string. After that textbox should appears on panel. Is this possible? Thanks, Jack...more >>

Custom compound WebControl accessing elements on postback...?
Posted by kw at 7/26/2004 10:56:44 AM
I have a custom WebControl that creates an array of textboxes (naming them dynamically), for example: <INPUT id="c0r0" type="text" runat=server value="Item A" ><INPUT id="c1r0" type="text" runat=server value="100" ><br> Now let's say the user changed the value of c1r0 to from '100' to '200' ...more >>

2nd Try: CSSStyle and Server Control
Posted by Scott Simes at 7/26/2004 4:04:26 AM
Do control authors ever need to process CSSStyle references in server-side controls? For example: I am writing a control that creates an on-the-fly image. If the control has a property called "CSSBackColor" and the end-user sets that to "myBackColor" (assume that's a style name available from ...more >>

Persisting collection
Posted by kw at 7/25/2004 12:20:31 PM
The following WebControl contains a collection. On Page PostBack, the collection is lost. I'm not sure how to persist this. Any ideas? public class Grid: System.Web.UI.WebControls.WebControl { .... public ColumnCollection Columns{get{...}} .... } public class ColumnCollection : IDiction...more >>

Making FindControl find dynamic controls
Posted by mengshun NO[at]SPAM hotmail.com at 7/24/2004 9:35:38 AM
Need some help trying to read values from web controls - specifically *finding* the controls (like a drop down list) - that are added dynamically added within an asp:panel control. The page contains multiple panels within the form. The panels appear at different times - for our argument, let'...more >>

Dynamicly Add Controls
Posted by gilly3 at 7/23/2004 5:05:33 PM
I need to be able to add form inputs to a form. A user can enter one item and then click a link to add another. So far I have a linkbutton the calls this function: private void linkAddRow_Click(object sender, System.EventArgs e) { HtmlTableRow oNewRow = new HtmlTableRow(); HtmlTa...more >>

Text Between Tags
Posted by Scott Simes at 7/23/2004 5:03:20 PM
In many tags, HTML text appears between the begin and end tag. For example: <b>This is bold text.</b> Is it possible to have a user control that uses this syntax? For example: <mycontrol:b>This is bold text.</mycontrol:b> If the answer is that you must use a server control, then my quest...more >>

Book on creating web controls
Posted by steve-o at 7/23/2004 4:03:17 PM
Hi everyone, Can anyone recommend a book or a website on creating webcontrols in ASP.NET? TIA, Steve-O ...more >>

Reset Drop Down List
Posted by Thom Little at 7/23/2004 3:12:44 PM
I have a Drop Down List with names and matching URLs. When I select an item the handler issues a redirect to the specified URL. If I hit "back" on the new page it takes me back to the page with the Drop Down List and the item I selected is displayed in the Drop Down List. How can I reset the...more >>

Treeview expendLevel
Posted by Eilsa NO[at]SPAM Office at 7/23/2004 9:29:38 AM
May I load the entire treeview node but expand 2 level only? Thanks ...more >>

How to disable button's response to CR?
Posted by Jeff Mason at 7/22/2004 1:42:33 PM
Hi, It seems that a (the first?) webforms button control on a page is set as the equivalent of the WinForms AcceptButton property. That is, hitting ENTER on a page which contains, say, a few text boxes, and a web button will by default cause the page to postback, regardless of anything else t...more >>

Designer Control
Posted by David Brandenburg at 7/22/2004 10:29:04 AM
I have created a ASP server control with my own designtime support. When I add the control to a web form I am getting the error 'Failed to create the Designer" I have checked to make sure my namespace and class names are correct in the Designer Attribute. I have changed the designer to make ...more >>

temp files on server
Posted by Paul Hilton at 7/21/2004 8:28:23 PM
Hi All, I am referring to this article for exporting a report to pdf file . http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crtskexportingwebbasedreports.asp The issue is that I am not able to delete the temporary files generated on the server. As per this art...more >>

Mutiple server forms in single asp.net page
Posted by Lakshmi Narayanan.R at 7/21/2004 6:25:03 PM
Hi experts http://msdn.microsoft.com/msdnmag/issues/03/05/CuttingEdge/default.aspx the above said link says the usercontrol idea for multiple form type withing usual server <form> control. Its interesting. But i need the solution, how can add the validator controls for the controls separately...more >>

How to wire a button click event in a composite control?
Posted by Russ at 7/21/2004 5:47:02 PM
I just can't seem to do it. In my composite control I add a button: Button Db = new Button (); Db.ID = "DedButton" + i; Db.Style.Add ("Position", "Absolute"); Db.Style.Add ("Left", "300px"); Db.Style.Add ("Top", "290px"); Db.Text = "Edit Deductions"; Db.Click += new System...more >>

CustomValidator added at runtime --> server-side validation dropped
Posted by peshrad at 7/21/2004 5:32:24 PM
Hi ! I'm using Visual Studio 2000, Win2K, IE 6, .NET 1.1. I'm experimenting with an extremely simple ASP.NET web application. When I add a CustomValidator to the designer by drag&drop, I can accomplish both client-side and subsequent server-side validation. At run-time, when I press my s...more >>

Tabbed interface?
Posted by Peter Aitken at 7/21/2004 4:11:34 PM
I understand that a tabbed interface control is coming with ASP.NET 2.0, but I have a project in the current version that needs this. Does anyone know of any resources to create a tabbed interface? -- Peter Aitken Remove the crap from my email address before using. ...more >>

Triggering Events on <asp: RadioButton Help.
Posted by jason NO[at]SPAM mojohoney.com at 7/21/2004 12:52:26 PM
Please help…I saw your posts and even found one directly linked to what I am having problems with…however, it seems as though I am doing everything the same…and I cannot get my events to fire. Thanks so much for any advice. jason using System; using System.Collections; using System...more >>

Set html table width at run time (in code)
Posted by ruca at 7/21/2004 11:35:39 AM
Hi How can I get a html control in my code? I have a html table that I want the width is defined in code at run time, i.e., I have this table and I have a datagrid. This datagrid have a variable width because the number of columns depends of something that I have (that is not important for th...more >>

ComboBox??
Posted by G. Dean Blake at 7/20/2004 1:49:54 PM
Why no combobox in asp.net? Are there any available? TIA, G ...more >>

Using Cystal Reports in ASP.NET
Posted by Don Wash at 7/20/2004 12:00:27 PM
Hi All! I'm very very new to DotNet and doing my first Report project. I'm planning of using VS.NET built-in CrystalReports to create reports. I'm probably really navie and ignorant to ask this but here's goes. I want to know if there are any client compatiblity issues need to be considered wh...more >>

Required Field Validators Not Validating
Posted by Nathan Truhan at 7/20/2004 10:00:01 AM
Hello, I am building a web form to submit a problem. It has various text boxes for name, extension, office, comment, etc.. it also has a couple of Drop Down Listboxes for Subject and Priority. Each TextBox and Drop Down has a RequiredField Validator associated with it and I have a Validation Su...more >>

Datagrid is not visible at design time when placed in/on a Multipa
Posted by Craig at 7/20/2004 2:41:01 AM
Hi I have placed a datagrid on a multipage control but it is not visible at design time. At runtime it works fine. To work with the datagrid I have to move it to another area on the page temporarily. Any suggestions? -- Regards, Craig...more >>

Button Doesn't Work on Panel with Validation Control
Posted by wshackne NO[at]SPAM yahoo.com at 7/19/2004 4:43:32 AM
I have noticed that within my application my button controls do not work when there are validation controls on the panel (even if the validation controls are not visible, i.e. not showing an error with the control they are validating). When I click the buttons they enter the depressed state, bu...more >>

Center Table Horizontally
Posted by Thom Little at 7/19/2004 4:04:34 AM
I need to have a table centered horizontally on an aspx page. I would assume that setting the HorizontalAlign property of the table to Center would do what I want. It does not. After fiddling with it for quire a while (without success) I have to ask ... What's the"trick" for centering ...more >>

Center Alignnment
Posted by Aitham alama at 7/18/2004 3:05:13 PM
How can i make a dynamically created web label control to to be Center allignment Thanks ...more >>

=?ISO-8859-1?Q?Custom_Validator_for_a_checkbox?= =?ISO-8859-1?Q?list_control_=96_Strange_behavior.?=
Posted by itaitai2003 NO[at]SPAM yahoo.com at 7/18/2004 7:42:57 AM
I am attempting to create a Custom Validator client script for a checkboxlist control. My goal is to limit the total number of selections to be 1 - 5 at most. My problem is that I get a null reference when I attempt to retrieve an object for an individual list item, which of course results in ...more >>

Simple .NET Chart Control
Posted by Don Wash at 7/18/2004 1:21:01 AM
Hi There! Is there any simple .NET Chart Control (free) to produce simple bar graphs? Pointers will be very much appreciated! Don ...more >>

Repeating section control in ASP.NET
Posted by Christoph Boget at 7/17/2004 7:26:38 PM
When building a form using Infopath, you can define a repeating section and stick form fields in that section. I'm curious if ASP.NET has a similar control to make it easy to design something similar using just ASP.NET (and not Infopath)? I'd hate to think that I'll need to write all the javas...more >>

Custom validator for a pair of controls
Posted by Erik Cruz at 7/17/2004 7:13:57 PM
Hi. I have a page that uses 4 textboxes where my user can input dates. Before submit data, I need to test to see if the user filled at least two of these textboxes. I can easily test this using simple javascript, but I am trying to do this using a custom validator control. But as far as I know...more >>


DevelopmentNow Blog