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 > october 2005 > threads for october 15 - 21, 2005

Filter by week: 1 2 3 4 5

Fixed Size Text
Posted by Thom Little at 10/21/2005 1:46:00 PM
How can I set the text in a control to be a fixed size that can not be changed by the IE browser? -- -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd. -- ...more >>


TextBox:IValidator and a star (*)
Posted by Shark Bait at 10/21/2005 1:25:05 PM
I have a TextBox the implements IValidator and most everything works fine (it performs validation on the TextBox. Now I'd like to stick an "*" next to the TextBox when validation fails. Is it even possible? I'm starting to think I'm hosed. Here's the code... using System; using System.Dr...more >>

page numbers rendered differently in 2000 and XP
Posted by ZWeng at 10/21/2005 12:31:07 PM
I have a datagrid set up working correctly with custom paging of numeric values. I tested it in WIndows XP and the page numbers are rendered nicely with the current page number is not clickable and the other page numbers are underlined in blue color. However, in windows 2000, the current pa...more >>

webcontrol.attributes
Posted by Abraham Andres Luna at 10/21/2005 10:34:50 AM
i tried to set an attribute on a webcontrol: tbName.Attributes["onBlur"] = @"javascript:setTimeout("RDK_HideDiv(divOfNames)", 3000);"; but this is the rendered html page: onBlur="javascript:setTimeout("RDK_HideDiv(divOfCusIds)", 3000);" how can i get it...more >>

Reading control values from viewstate
Posted by bryanjhogan NO[at]SPAM gmail.com at 10/21/2005 3:02:41 AM
Hello, I have a page with three textboxes and a submit button - TextBox1 TextBox2 TextBox3 SubmitBtn After loading the page for the first time, I enter some values into the textboxes TextBox1.Text = "aaa" TextBox2.Text = "bbb" TextBox3.Text = "ccc" and click the SubmitBtn. The...more >>

"If" statement in repeater
Posted by Peter Kirk at 10/21/2005 12:00:00 AM
Hi I have a textbox generated in a "repeater". The repeater is looping over an array of Port objects, and displaying various of its attributes. One attribute is a DateTime object which I want displayed in the textbox. But how do I present an empty string in the textbox if the DateTime is Mi...more >>

cbOperation_SelectedIndexChanged not invoked when a ComboBox was changed
Posted by Richard Lionheart at 10/20/2005 10:18:25 PM
Hi, I've got the following control defined in my .aspx file: <asp:dropdownlist id="cbOperation" style="Z-INDEX: 102; LEFT: 162px; POSITION: absolute; TOP: 77px" runat="server" Width="38px"> <asp:listitem text="?" value="0" /> <asp:listitem text="+" value="1" /> <asp:listitem text="-" ...more >>

clientid
Posted by Abraham Andres Luna at 10/20/2005 5:09:59 PM
i have a control on a content page which protected method of the control should i use to get the clientid? ex: ctl00_cphMainContent_tbCusId i started with OnInit but it only returned "tbCusId" thank you for your help. if you need me to show my code let me know ...more >>



alternate view for a drop down list
Posted by RALF at 10/20/2005 12:56:31 PM
I have a drop down list that I have populated with values such as customer names. This is what shows up in the textbox part of the drop down list. When I hit the arrow for the drop down, I want each row that drops down to have additional info appended to the customer name. Something like, J...more >>

Retrieving value from Repeater in SelectIndexChanged event
Posted by Mike Robbins at 10/20/2005 11:26:25 AM
In a repeater, for each row, I have a <td> with a Site Name, an invisible Label Web Control with the Site ID, and a DropDownList that allows the user to select a name of a person registered at the site. In the SelectIndexChanged event for the DropDownList, I retrieve the person's ID from th...more >>

Unable to Get Text from Textbox Control
Posted by John Walker at 10/20/2005 7:39:08 AM
Hi, On the postback I am trying to get data from a TextBox control in a Datagrid. This works fine except when the textbox has been disabled using JavaScript. Here's the code to reference the control and get the text: Dim txt As TextBox = CType(dg.Items(iMisc).FindControl("txtCustomer"), ...more >>

selectedindexchanged
Posted by mkiger at 10/20/2005 7:39:07 AM
Hey guys, When I use the selectedindexchanged event of a listbox web control I would like to be able to to reference the previously selected item. Is there a way to do that?...more >>

CheckBox Itemplate column in a Datagrid
Posted by Kulwinder at 10/20/2005 12:09:03 AM
Hello, I've got a checkbox column in a datagrid. In the HeaderTemplate I've got a checkbox that, when clicked, should go and and replicate it's checked state to all other checkboxes in the same column. To facilitate this I've created a wrapper classfor the header checkbox, that implements...more >>

F1 not working
Posted by George Hardy at 10/19/2005 2:08:32 PM
knowlegeable people: i uninstalled msdn completely, and also deleted every registry value i could find for msdn, and also deleted the directory in c:\program files\msdn. this should give me a clean install, right? no. F1 help still does not work. I found a knowlegebase article that says t...more >>

Failed to load viewstate
Posted by R Reyes at 10/19/2005 12:02:04 PM
Hi, The question I'm asking revolves around what is needed to load a viewstate. 1) I am using Regular Expression Validators to validate text fields on a page. --Let's say I have a form set up. After I type in "bad data" in a date field and click submit, the validators will show up correctl...more >>

System.Web.UI.WebControls.Repeater and multiple templates
Posted by Robert at 10/19/2005 11:22:04 AM
Hi, if I create a class A with some properies, then create classes B and C derived from A, later create and ArrayList filled with some B and C items. This list I would like to use as a datasource for a repeater control. Is it possible to add more than one <ItemTemplate>? I would like to have ...more >>

Issue with embedded datagrid.
Posted by ylockhead at 10/19/2005 10:39:05 AM
I have a couple of problems with a datagrid (dgDetail) that is embedded on another detagrid(dgMaster). On dgDetail, I have a dropdown listbox (ddlbDecision) that I am trying populate. I put code in dgDetail_ItemDataBound to populate the listboxt but it's not working. My first problem is ...more >>

ASCX User Controls and DDL.SelectedValue
Posted by runtoofar NO[at]SPAM gmail.com at 10/19/2005 9:30:13 AM
I have an ASCX user control with a drop down list inside an ASPX (C#) page. The user selects an item from the DDL, clicks a button, and the DDL.SelectedValue is supposed to be sent to another function. However, the SelectedValue is always the first value in the DDL. I have tried several metho...more >>

Hide DataList Item
Posted by STech at 10/19/2005 8:06:04 AM
How can I hide a DataListItem from a datalist. I have tried the PreRender, ItemCreated, ItemDatabound to hide the item but it does not work. I have tried both: e.Item.Visible = false; and DataList1.Items[0].Vislble = false; Thanks. stech...more >>

CustomValidator issue -- Maybe better location here to post the following:
Posted by jmclej NO[at]SPAM hotmail.com at 10/19/2005 6:10:34 AM
Here is what I have : <asp:templatecolumn HeaderText="HrBegin"> <itemtemplate> <asp:Label id="lblHrBegin" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "HrBegin") %>' Width="100%"> </asp:label> </itemtemplate> <footert...more >>

Datalist SelectedItemTemplate problem
Posted by Kim Søvsø Pedersen at 10/19/2005 12:00:00 AM
Hello I have a small problem with a DataList control and SelectedItemTemplate. It works fine except that I have to click twice on an item to select it. Or if I click an item, this item is only selected when I click another item. What do I do wrong? <asp:datalist id="DataList1" runat="se...more >>

brain has stalled datagrid checkboxlist
Posted by cindy at 10/18/2005 12:40:03 PM
I am using asp template columns. I display box values from a lookup table. The datagrid displays field "bookid" and the checkbox displays "category" field for the book. The category field is a string concatenation of category values such as CT,MR,NM or just CT When the grid goes into edit ...more >>

Change Column Template Dinamically
Posted by TCORDON at 10/18/2005 10:24:25 AM
I have a user control that contains a DataGrid and handles custom paging, etc (All the functionality I need) how can I make this so I can change dinamically the column template si I can Use this control to display many different types of information, this should include a dynamic query string ...more >>

Make User Control
Posted by TCORDON at 10/18/2005 9:18:49 AM
How can I make my UserControl's properties be visible to all other controls in a web page? TIA ...more >>

OK button doesn't work properly with multiple validator controls
Posted by Sally at 10/18/2005 9:04:53 AM
I've created an ASPX page with 2 textboxes and an OK button. The 2 textboxes each have 2 validator controls, a RequiredFieldValidator and a CustomValidator. Both CustomValidator controls link to JavaScript validate methods at the top of the ASPX file (HTML view). With only 1 textbox and its ...more >>

managing controls
Posted by Ricardo Furtado at 10/18/2005 3:53:02 AM
I'm using visual Basic .Net to make a web site and i'm having problems on managing the controls contained in the web pages. For example, i have an image who's ID="Img0", when i try to run a script that refers to Img0, like the following: Img0.src="BoxForn.bmp" this doesnt work, and an error...more >>

Unexpected behaviour of Listbox MultiSelect
Posted by Martin at 10/18/2005 1:13:02 AM
I have an unbound Listbox which is filled with ListItems. MultiSelect is set to true. However, if the ListItems do not have unique text/value pairs, then if a multi-selection is done, the Selected properties of the ListItems are not set correctly. Is this expected behaviour? As an exampl...more >>

User Control Events
Posted by Jose Rodriguez at 10/17/2005 11:33:42 AM
I am running inito a strange problem. I created a default page that hosts 3 user controls: navbar, header and footer. Inside the default page I have a panel where I dynamically load other user controls based on the clicks on the navbar. The navbar has a delegate and it raises a custom event. T...more >>

How to embed a datagrid inside another datagrid.
Posted by ylockhead at 10/17/2005 9:59:01 AM
I would like to be able to dynamically add a datagrid embeded inside a second datagrid. Both datagrids must be editable and I must be able to handle saving the data entered by the user. My problem is that I don't know how to even begin doing this. I have the first datagrid working and re...more >>

ASP.NET Popup Windows
Posted by Mario at 10/16/2005 10:46:30 PM
Need help with creating a popup windwo in ASP.NET when I load a page? This is what I have so far <SCRIPT language="javascript"> function OpenWindow() { var x = window.open('MRFilingStatus.aspx','FS','width=425,height=200,resizeable=yes,menubar=0,toolbar=0') x.focus } <...more >>

Comment on an ASPX page
Posted by Andrew Chalk at 10/15/2005 5:28:22 PM
In the HTML section of an ASPX page, how do i comment out a line? I thought it was <! but that doesn't work. Thanks! ...more >>


DevelopmentNow Blog