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 > november 2004 > threads for november 15 - 21, 2004

Filter by week: 1 2 3 4 5

Cached DropDownList has items, but won't display. Where's my error
Posted by jroughgarden at 11/21/2004 1:37:04 PM
I am trying to cache a dropdown list rather than hit the database every time this or other pages that need it load. I was going to cache the data by caching the datareader, but that did not work. Then I thought of caching the entire control, as shown below. The code runs without error, but the...more >>


Expandible Nested Repeaters
Posted by TJO at 11/20/2004 3:04:04 PM
I am trying to create a asp.net web control the nests repeater controls as well as allows the user to expand the nested repeater. Can someone point me to a good tutorial or code sample? I have followed the instructions I found on MSDN but the nested repeater is a single column databound table. ...more >>

Format Hyperlink in DataGrid
Posted by Alan Z. Scharf at 11/20/2004 1:58:05 PM
Hi, I'd like to format a hyperlink column in datagrid 1. Without underline, and 2. Change color on mouseover Are there any format settings for that or is code required. If code is required, can you refer me to some examples? Thanks. Alan ...more >>

TextArea Length ???
Posted by Samir Patel at 11/20/2004 11:44:25 AM
Hi I am using Textarea type.I want to set maximum length to the textarea. I am using following code for the same,but it is not working, <textarea name="txtDescription" cols=10 rows=3 axlength=50></textarea> <asp:TextBox Font-Names="verdana" Runat="server" ID="tforumtext" TextMode="MultiLine" ...more >>

datagrid edit box size
Posted by pleaseHelp at 11/19/2004 6:00:38 PM
I've created my first datagrid box and have all of the font set to verdana font size 7. When my editable column is selected it appears in a textbox that is smaller than the column of data I have displayed and the text is much larger - therefore one needs to scrolls to see everything in the edi...more >>

Please help with handling events in a tabstrip/multipage/user control environment
Posted by Aaron at 11/19/2004 3:51:11 PM
I cannot get an event to fire within my multipage/usercontrol environment. I have been reading O'Reilly's "Programming ASP.NET 2nd Edition" and found some information regarding handling events in user controls. Here is what I have done... I have dragged a button to my user control, Search...more >>

Dropdown list with heirarchies
Posted by Tim Mavers at 11/19/2004 10:14:12 AM
I am looking for a control (freeware or commercial) that operates like a standard ASP.NET dropdown list, but is able to display heirarchies in the actual dropdown list. This can be similar to a treecontrol, but I don't need to be able to expand/collapse nodes in the actual dropdown list--on...more >>

ListBox searching by typing characters
Posted by WM Chung at 11/18/2004 8:03:05 PM
Hi all, For a list box web control, does it support searching by typing a string of characters ? Currently I find that it only support searching by a single character. For example, if I have 3 list items "abc", "acz" and "cde". When I type "a", it goes to "abc". But then when I type "c"...more >>



Tab control validation problem asp.net
Posted by V.Balaji at 11/18/2004 11:49:56 AM
Hi, We have created a tab control for asp.net and it works fine but for one reason the validation controls in all the tab fires when i am changeing the tab. I want to have validation for each tab. Is this realy possible. Please help me in solving the problem. Thanking you, Regards ...more >>

Is WithEvents Needed for all Web Controls?
Posted by JeffRoughgarden at 11/18/2004 11:07:04 AM
In Visual Studio 2003, the Web Form Designer generated code always declares web controls with the WithEvents qualifier. Is this necessary for controls that do not actually need to fire events, e.g. textboxes that are validated and submitted using validation controls and command buttons? Wou...more >>

Aligning Particular Columns in a Data Grid
Posted by jennifer1970 NO[at]SPAM hotmail.com at 11/18/2004 9:00:12 AM
Hi! I've got a datagrid on an asp page and I'd like to set a few of the columns to center-align. The rest should be left align. The datagrid (called dgDSR) has 61 columns. It is databound using a data table. The code I was trying out to center just the columns I want is: dgDSR.Columns(...more >>

Adding ListItem to start of ListBox
Posted by andrew.wardle NO[at]SPAM cognite.co.uk at 11/18/2004 4:57:08 AM
Hi, I have a listbox which is curerntly getting its source from a dataset: TListBox.DataSource = dsTemp; What I would like to do is add a default choice to the start of the listbox which isn't got from the dataset. I have tried: TListBox.Items.Add(new ListItem(" All", "Default"); TList...more >>

listbox changes on the client side aren't reflected on the server side
Posted by Joe Abou Jaoude at 11/17/2004 11:49:53 PM
hi all, I have 2 listboxes in my web page. one listbox has 5 items when the page is loaded, the other one is empty. The user then add fields from the filled listbox to the empty listbox. this is done successfully using javascript. when the page is submitted i want to check the items that th...more >>

Access datagrid's selected row on client side
Posted by Calvin KD at 11/17/2004 6:10:02 PM
Hi everyone, I've got a search screen displayed as a modal dialog screen. On the search screen I have fields for specifying search criteria and a datagrid for search results. I'm just looking for a way of returning the selected row's details, such as an ID, back to the parent window but I don...more >>

Passing Hidden Form Variable to class .asp page
Posted by alexanderheimann NO[at]SPAM gmail.com at 11/17/2004 5:00:33 PM
Greeting Everyone! My situation is as follows. I would like to pass a hidden form variable to a classic asp page. The hiddend form variable I would like to send is a guid i created using the code below in my login page. System.Guid myguid = System.Guid.NewGuid(); Session["GUID"] = mygui...more >>

Compare Validator - Ending With A Decimal Causes Error
Posted by msajdera NO[at]SPAM ncen.com at 11/17/2004 1:58:06 PM
All - I have a couple of text boxes where users can enter numbers. The controls are set to do DataTypeChecks against a Double data type. If the user enters a number that ends with a decimal point the control throws an error. Preceeding the number with a decimal point is OK. Example: 3...more >>

DataGrid not Updating on Response.Redirect
Posted by Alex Maghen at 11/17/2004 9:44:07 AM
Hi. I have a page with a DataGrid bound to Database data. When the user clicks a Delete link on one of the rows of the DataGrid, I redirect them to a "Confirmation" ASPX. If they click YES on the Confirmation, I delete the database row and then I redirect them BACK to the page with the DataGri...more >>

Error when attempting to export Crystal Report as PDF document asp.net.
Posted by csgraham74 NO[at]SPAM hotmail.com at 11/17/2004 9:33:04 AM
Error when attempting to export Crystal Report as PDF document asp.net. I get the following error. Error in File C:\DOCUME~1\W2K-AD~1\ASPNET\LOCALS~1\Temp\temp_512d88ae-f721-4860-a57f-2eae219dc1c4.rpt: Invalid export DLL or export format. I have recently created an asp.net deployment appl...more >>

Newbie: Tree view help
Posted by clsmith66 at 11/17/2004 9:19:02 AM
Is there a click event for the tree view control or does any one know how to create one?...more >>

Conditional Row in Repeater
Posted by Wayne Wengert at 11/17/2004 8:20:04 AM
I am using VB with ASP.NET and I have a repeater control which displays a list of records from a dataset. The records are ordered by ZIP code. I want to insert an extra row containing the name of the current state (with a different background color) when the value of the "State" field changes. B...more >>

DataGrid extending with new/insert button
Posted by Manuel Trunk at 11/17/2004 5:35:05 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 >>

Microsoft.Web.UI.WebControls.TreeView Problem
Posted by Mrunal at 11/16/2004 10:19:17 PM
Hi, I am using TreeView Control to store data. The problem is that the code within the events is not fired.. i want to add the text of selected node to a list. -----------Code file---------------------- protected Microsoft.Web.UI.WebControls.TreeView TreeCtrl; public ListBox ListBox1; publi...more >>

Directing Domains
Posted by Andrew Bonney \(abweb\) at 11/16/2004 6:15:12 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 >>

ASP.NET1.1: Event sequence (Page vs. Control)?
Posted by Ole Hanson at 11/16/2004 6:03:15 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 eve...more >>

HOWTO: Disable TabStop For ImageButton
Posted by Dan Sikorsky at 11/16/2004 2:11:05 PM
How do you disable the tabstop for an imagebutton? I'm using an imagebutton for the Calendar control and don't want the user to tab onto the button; just bypass it and move to the next control. -- Thank you kindly, Dan Sikorsky BAB, BScE, MSC ...more >>

Checkbox Control not showing up?
Posted by jennifer1970 NO[at]SPAM hotmail.com at 11/16/2004 1:26:40 PM
I've got this ASP page that has been in production for a while. I recently had a request to add some checkboxes. I did so and ran the newly changed page and my checkboxes don't show up. I have no code behind the checkboxes yet. I just added them to the form to test the look of it for now. I...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 >>

DataGrid w/ ColSpan on Headers
Posted by Alex Maghen at 11/16/2004 10:15:06 AM
Hi. Is there a way to have a header span 2 columns in a .NET DataGraid control?...more >>

Unable to bind data to page from System Timer Event handler
Posted by StanD at 11/16/2004 9:09:08 AM
ASP.NET Server side System Timer setup as follows; Tmr.Elapsed += new System.Timers.ElapsedEventHandler(ServiceTimer); The event handler performs processing and posts status to a user control via properties and to prove a point, I am binding parameters dire...more >>

dynamic controls & viewstate
Posted by Lachlan James at 11/16/2004 9:05:55 AM
Hi, I am attempting to create a questionnaire dynamically in an asp.net webform. I have a repeater control which is bound to my datasource, the repeater has a placeholder in its itemtemplate which I use to add controls to dynamically inside the repeaters itemdatabound event. I do not k...more >>

Binding Directive "Not WELL FORMED???"
Posted by Alex Maghen at 11/16/2004 8:47:02 AM
Hi. In a DataGrid TemplateColumn, I'm trying to insert a data-binding directive and I'm getting a Parse Error - "The server tag is not well formed". The TemplateColumn Xml looks like: <ASP:TemplateColumn HeaderText="PA" SortExpression="PersianAudio"> <ItemStyle HorizontalAlign="...more >>

save functionality
Posted by lekshmi at 11/15/2004 3:45:01 PM
i have a 'Save' button in a asp page. when the user clicks the button, the page shpuld get saved. how to do this?? -- Thanks lekshmi S...more >>

Problem changing the selected index property on a dropdown control
Posted by Simon Harvey at 11/15/2004 2:56:53 PM
Hi all, Am I being really stupid here: myDropDown.SelectedIndex = 2 I think this line should set the dropdown control's selected item to 2. But nothing seems to be happening on the page. The dropdown just maintains its default value (element 0). Do I have to do something else to get ...more >>

Easiest way giving an XML file to a control
Posted by Ryan Ternier at 11/15/2004 1:21:11 PM
I've never created controls before, but am experimenting with em. I'm trying to create a listing control that displays a list of information, and indents them accordingly to a formated XML file, using the nodes of the xml file. What's the easiest way of passing an XML file to a control? I don...more >>

range validator not working correctly
Posted by Paul at 11/15/2004 12:54:05 PM
I have a range validator that only allows a value up to 100 but I have specified 1000. Here is the html code from the validator(created by .NET) I previously had a validator set to 100 but deleted it. Thanks. <asp:RangeValidator id="RangeValidator1" style="Z-INDEX: 136; LEFT: 552px; POSI...more >>

Sorting DataGrid after Row Data Changed
Posted by jdn at 11/15/2004 9:00:06 AM
After I get a DataSet, and before I bind it to a DataGrid, I search through the rows on a particular column, and if the column has certain data, I change it. The data change is reflected in the datagrid, so that's fine. However, when I sort on the column with the changed data, it sorts o...more >>


DevelopmentNow Blog